简体   繁体   English

是否可以将网络WebSphere服务器添加到Eclipse?

[英]Is it possible to add network WebSphere server to eclipse?

如果可能,我想将网络服务器添加到本地Eclipse。这样,热部署将可以正常工作。

Personally, I've always used Rational Application Developer which comes with this support built-in. 就个人而言,我一直使用内置此支持的Rational Application Developer。 From playing around some, I've found this is not the case for Eclipse. 通过反复试验,我发现Eclipse并非如此。 I found that you need to do two things before you can deploy applications to a remote WebSphere Application Server with Eclipse: 我发现您需要做两件事,然后才能使用Eclipse将应用程序部署到远程WebSphere Application Server:

  1. Install the WebSphere Developer Tools for Eclipse 安装用于Eclipse的WebSphere Developer Tools
  2. Install a WebSphere Application Server instance on your local workstation (you don't need a profile) 在本地工作站上安装WebSphere Application Server实例(不需要概要文件)

Here is information on how to add WDT to Eclipse: https://www.ibm.com/support/knowledgecenter/en/was_beta_devtools/com.ibm.websphere.wdt.doc/topics/t_install_wdt_sdk.htm 以下是有关如何将WDT添加到Eclipse的信息: https : //www.ibm.com/support/knowledgecenter/en/was_beta_devtools/com.ibm.websphere.wdt.doc/topics/t_install_wdt_sdk.htm

In summary: 综上所述:

  1. Go to the Eclipse marketplace: Help > Eclipse Marketplace... 转到Eclipse市场:帮助> Eclipse市场...
  2. Enter 'wdt' in the find field 在查找字段中输入“ wdt”
  3. Search for the WDT that matches your partner. 搜索与您的伙伴匹配的WDT。 For instance, I'm using Eclipse Oxygen and WAS 8.5, so I chose IBM WebSphere Application Server V8.5x Developer Tools for Oxygen 例如,我使用的是Eclipse Oxygen和WAS 8.5,因此我选择了IBM WebSphere Application Server V8.5x Developer Tools for Oxygen
  4. Click Install 点击安装

After you've installed WDT that matches your partner application server, you have to go one step farther and also install WebSphere on the local machine. 在安装了与伙伴应用程序服务器匹配的WDT之后,您必须进一步走一步,并且还要在本地计算机上安装WebSphere。 Why, I don't know. 为什么,我不知道。 It won't create the remote server if you don't do that. 如果不这样做,它将不会创建远程服务器。 When installing WebSphere, be sure that the Java version that you install matches the Java version that you have installed on your partner. 在安装WebSphere时,请确保您安装的Java版本与您在合作伙伴上安装的Java版本匹配。

After you have installed WDT into Eclipse and WebSphere onto your workstation, to add the remote application server, do the following in your eclipse workspace: 在将WDT安装到Eclipse中并将WebSphere安装到工作站上之后,要添加远程应用程序服务器,请在Eclipse工作区中执行以下操作:

  1. Window > Show view > servers 窗口>显示视图>服务器
  2. Right click in the servers pane > New > Server 右键单击服务器窗格>新建>服务器
  3. Expand IBM, then select the WebSphere application server version that matches your partner server (for example, WebSphere Application Server traditional V8.5) 展开IBM,然后选择与您的伙伴服务器匹配的WebSphere应用程序服务器版本(例如,WebSphere Application Server传统V8.5)
  4. In the server's hostname field, enter the fully-qualified hostname or ipaddress of your remote server machine. 在服务器的主机名字段中,输入远程服务器计算机的标准主机名或ip地址。
  5. Click Next 点击下一步
  6. For installation directory, enter the fully-qualified name for your local application server directory. 对于安装目录,请输入本地应用程序服务器目录的标准名称。 For example, c:\\was85512_base\\WebSphere\\AppServer 例如,c:\\ was85512_base \\ WebSphere \\ AppServer
  7. Click Next 点击下一步
  8. Check RMI and SOAP and enter your RMI and SOAP ports 检查RMI和SOAP,然后输入您的RMI和SOAP端口
  9. If security is enabled on your server, check the 'Security is enabled on this server' box, then enter your admin username and password. 如果您的服务器已启用安全性,请选中“此服务器已启用安全性”框,然后输入管理员用户名和密码。
  10. Click Next 点击下一步
  11. Fill out this next page as you like. 根据需要填写此下一页。 (I always uncheck the 'Enable the server to start remotely' box because I don't like letting Eclipse control my app server) (我总是取消选中“启用服务器远程启动”框,因为我不喜欢让Eclipse控制我的应用服务器)
  12. Click Finish 点击完成

I was able to do this using Eclipse Oxygen. 我能够使用Eclipse Oxygen做到这一点。 I have Indigo, Juno, Kepler, Luna, and Neon. 我有Indigo,Juno,Kepler,Luna和Neon。 I started with one of those (I can't remember which; probably an old one) and I was unable to get the WDT installed. 我从其中一个开始(我不记得是哪个;可能是一个旧的),但无法安装WDT。 I got the WDT installed on another one, but I wasn't having success, but that was before I figured out that you absolutely had to have a local WAS image. 我在另一个WDT上安装了WDT,但没有成功,但是那是在我确定您绝对必须拥有本地WAS映像之前。

Besides my move to Oxygen, I ran into the following problems: 除了迁移氧气以外,我还遇到以下问题:

  1. I put on a WebSphere install image with the wrong Java version. 我放置了带有错误Java版本的WebSphere安装映像。 I had to install another one and create a new server runtime. 我必须安装另一个服务器并创建一个新的服务器运行时。
  2. java.security.cert.CertPathValidatorException: The certificate issued by CN=wsx6, OU=Root Certificate, OU=wsx6Cell, OU=wsx6Node is not trusted; java.security.cert.CertPathValidatorException:不信任CN = wsx6,OU = Root证书,OU = wsx6Cell,OU = wsx6Node颁发的证书; internal cause is:, java.security.cert.CertPathValidatorException: Certificate chaining error . 内部原因是:java.security.cert.CertPathValidatorException:证书链接错误 This is bananas because this is a self-signed certificate. 这是香蕉,因为这是自签名证书。 I went back and checked the server definition and security is enabled on this server was somehow unchecked. 我返回并检查了服务器定义,并以某种方式未选中此服务器上的安全性 I re-checked it and made sure that automatically trust server certificate during SSL handshake was checked. 我重新检查了它,并确保检查了SSL握手期间自动信任服务器证书

If you mess up, you can create new WebSphere runtime environments in Eclipse: 如果搞砸了,可以在Eclipse中创建新的WebSphere运行时环境:

  1. Window > Preferences > Runtime Environments > Add > IBM 窗口>首选项>运行时环境>添加> IBM
  2. Choose the Application Server version. 选择应用服务器版本。 You should have one listed for each WDT you have installed. 您应该为每个已安装的WDT列出一个。
  3. Enter your local installation directory (so Eclipse can find tools) 输入本地安装目录(以便Eclipse可以找到工具)
  4. Finish

If you have more than one WebSphere runtime environment, make sure that you choose the correct matching one when creating your remote server. 如果您有多个WebSphere运行时环境,请确保在创建远程服务器时选择正确的匹配环境。

I've used remote application servers in an assembly tool for a long time; 我已经在组装工具中使用了远程应用程序服务器很长时间了。 I understand the appeal of it. 我了解它的吸引力。 I like to do it because it keeps the memory-intensive application server off of the Eclipse machine. 我喜欢这样做,因为它使内存密集型应用程序服务器脱离了Eclipse计算机。 Deploying apps is way faster this way. 这样部署应用程序的速度更快。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Websphere Application Server 7 和 Eclipse - Websphere Applicatin Server 7 and Eclipse 在Eclipse juno中将项目添加到Websphere Server需要做些什么? - What needs to be done to add a project to a Websphere Server in Eclipse juno? 如何将Websphere 6.1服务器/运行时添加到Eclipse? - How can I add Websphere 6.1 server/runtime to Eclipse? 如何在 websphere 应用服务器(WAS)中添加 java 14 - how to add java 14 in websphere app server(WAS) WebSphere Developer Tools 8.0无法在现代Eclipse中启动服务器 - WebSphere Developer Tools 8.0 Not able to start server in modern Eclipse 如何通过Eclipse为Websphere Application Server构建EAR / WAR? - How to build EAR/WAR for Websphere Application Server by Eclipse? WebSphere Server V.8.5与Eclipse项目的麻烦 - WebSphere Server V.8.5 troubles with Eclipse project websphere 8.5.5.6服务器有java 6和7但我需要java 8如何将java sdk添加到现有的websphere服务器 - websphere 8.5.5.6 server having java 6 and 7 but i need java 8 how to add java sdk to existing websphere server 是否可以在IBM Websphere Application Server上部署Angular应用程序? - Is it possible to deploy Angular app on IBM Websphere Application Server? 是否可以在WebSphere Application Server上自动运行Java应用程序? - Is it possible to run automatically a Java application on WebSphere Application Server?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM