在 Websphere 应用程序服务器 6.1 中部署 .war 文件?
当我尝试在 WAS 6.1 中安装新应用程序时,我给出了为 SampleApplication 创建的 .war 文件。
SampleApplication.war 在 Tomcat 服务器中成功运行,但是当我尝试在 WAS 6.1 中部署它时,显示以下错误。
The exception **IWAE0022E** Exception occurred loading deployment descriptor for module `"SampleApplication.war" in EAR file "C:\Appllications\IBM\WebSphere\AppServer2\profiles\AppSrv01\wstemp\3506402\upload\SampleApplication_war.ear" ocurred. Check log for details.`
我给出的上下文根为 /SampleApplicaion。
那么会出现什么问题以及如何解决这个问题?
When i was trying to install new application in WAS 6.1, I have given the .war file i've created for SampleApplication.
The SampleApplication.war is successfully running in Tomcat server, but when i tried to deploy it in WAS 6.1, following error was shown.
The exception **IWAE0022E** Exception occurred loading deployment descriptor for module `"SampleApplication.war" in EAR file "C:\Appllications\IBM\WebSphere\AppServer2\profiles\AppSrv01\wstemp\3506402\upload\SampleApplication_war.ear" ocurred. Check log for details.`
The context root i've given as /SampleApplicaion.
So what would be the problem and how to resolve this??
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我会:
I would:
通过谷歌搜索 IWAE0022E
找到
display-name 标签应位于 servlet-name 标签之前。
解决问题
在开发人员工具中加载企业应用程序并查看 web.xml
从WebSphere应用程序资源(WAR)中的web.xml中,可以看到以下内容:
正确的顺序是:首先是“显示名称”,然后是“servlet 名称”,
就像下面的例子:
Found by googling IWAE0022E
Cause
The display-name tag should come before the servlet-name tag.
Resolving the problem
Load enterprise application in a developer tool and look at the web.xml
From web.xml in the WebSphere Application Resource (WAR) , the following is seen:
The correct order is: First "display-name" then "servlet-name",
like the example below: