无法使用 IBM Rational Application Developer 将 WAR 文件部署到 Websphere
我正在使用 IBM RAD IDE 并构建一个动态 Web 项目。当我构建项目并尝试通过选择“添加或删除项目”将其添加到服务器时,我得到的响应是没有要添加或删除的项目。
这是否意味着我必须创建一个 EAR 文件(J2EE 项目)并向其中添加我的 Web 项目才能部署到本地 WAS?我可能缺少一些必要的配置吗?
I am using the IBM RAD IDE and building a dynamic web project. When I build the project and attempt to add it to the server by selecting 'add or remove projects' I get the response that there are no projects to add or remove.
Does this mean I will have to create a EAR file (J2EE Project) and add my web project to it in order to deploy to the local WAS? Might I be missing some essential configuration?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
WAS 需要 EAR 文件,这不是 RAD 问题。
实际上,我从 http://dev-answers.blogspot.com/2006/07/cant-deploy-war-on-websphere-6.html 但尚未尝试
创建您的 WAR。
在您的 WEB-INF\web.xml 中。 WebSphere 根据 web.xml 的模式对此进行验证,但不灵活。将此详细信息添加到 web.xml 中的打开节点中,并确保它根据架构有效:
您可能只想将 WAR 打包到 EAR 中,这就是每个人都会做的事情。
WAS requires EAR files, this is not a RAD issue.
Actually there is a work-around that I got from http://dev-answers.blogspot.com/2006/07/cant-deploy-war-on-websphere-6.html but have not tried
Create your WAR.
In your WEB-INF\web.xml. WebSphere validates this against the schema for the web.xml and is not flexible. Add this detail to you opening node in your web.xml and make sure it is valid according to the schema:
You might just want to package your WAR in an EAR which is what everybody does.
根据我非常有限的 RAD 经验,您确实需要 EAR 来部署。做起来非常轻松...您在部署时遇到特殊问题吗?
From my very limited RAD experience, you will indeed need an EAR to deploy. Its pretty painless to do... Are you having a particular problem deploying?