如何通过 Eclipse 为 Websphere Application Server 构建 EAR/WAR?
IBM Rational Application Developer 速度非常慢并且存在很多问题。
我尝试使用 ant 脚本为 Websphere Application Server 构建 EAR/WAR 文件 但它不起作用。
IBM Rational Application Developer is very slow and has many problems.
I tried to use ant scripts to build EAR/WAR files for Websphere Application Server
but it did not work.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
如果 Ant 找不到 WAS 任务,则可能是 Ant 类路径中缺少 WAS API。
请参阅 此问题获取其他示例脚本和建议。
If Ant can't find the WAS tasks, then it is likely that the WAS API's are missing from the Ant classpath.
See this question for other sample scripts and suggestions.
您需要确保包含
com.ibm.websphere.ant.tasks.WSDL2Java
的 jar 文件位于您的lib.path
类路径中。如果您使用的是 UNIX,则可以使用类似于以下的代码来扫描此类:
You need to make sure the jar file containing the
com.ibm.websphere.ant.tasks.WSDL2Java
is in yourlib.path
classpath.If you're on UNIX, you can scan for this class using code similar to:
如果 RAD 很慢,
- 尝试升级到最新的可用修复包。
- 阅读以下文章 https://www .ibm.com/developerworks/wikis/download/attachments/113606723/radtipsv754.pdf?version=1
或者联系支持人员并更具体地解释问题。
If RAD is slow,
- try to upgrade to the latest FixPack available.
- read the following article https://www.ibm.com/developerworks/wikis/download/attachments/113606723/radtipsv754.pdf?version=1
Or contact support and explain more specifically the problem.
我的理解是,您构建 EAR/WAR,然后打开浏览器,登录管理控制台,然后部署您的应用程序。
如果我的理解是正确的,只需将 WAS 服务器的实例添加到您的工作区,然后右键单击该服务器,选择“添加/删除项目”并添加您的项目。 这样,您根本不必构建 EAR/WAR 文件...构建您的项目就足够了。 如果构建成功,RAD 会自动构建 EAR/WAR 并将文件发布到服务器。
至少我们就是这样做的。
My understanding is that you build the EAR/WAR, then open your browser, login to the admin console, then deploy your application.
If my understanding is correct, just add an instance of the WAS server to your workspace, and then right click on the server, select Add/Remove Projects and add your project. This way, you don't have to build the EAR/WAR file at all... Building your project is enough. If the build is successful, then RAD automatically builds the EAR/WAR and publishes the file to the server.
Atleast that's the way we do it.
如果您使用的是具有 Marketplace 的全新版本 Eclipse(例如 Helios 或 Indigo),则可以直接部署到 Websphere。 这是一个关于它的链接:
宣布推出新的适用于 Eclipse V8.0.4 的 WebSphere Application Server Developer Tools
If you're using a brand new version of Eclipse (like Helios or Indigo) that has the Marketplace, then there is the possibility of deploying directly to Websphere. Here's a link about it:
Announcing the new WebSphere Application Server Developer Tools for Eclipse V8.0.4