部署WAR文件时出错
我有一个 war 文件,当通过 websphere 中的管理控制台部署它时,在指定 war 文件位置和上下文根目录后,我收到以下错误。
EAR 文件可能已损坏或不完整。 org.eclipse.jst.j2ee.commonarchivecore.internal.exception.DeploymentDescriptorLoadException:WEB-INF/web.xml
有解决此问题的建议吗?
我还解压了 war 文件并检查了 web.xml 文件是否存在于 web-inf 文件夹中。
干杯, 迪娜
I have a war file and when deploying it thro the admin console in websphere i am getting the following error after specifying the war file location and the context-root.
The EAR file might be corrupt or incomplete.
org.eclipse.jst.j2ee.commonarchivecore.internal.exception.DeploymentDescriptorLoadException: WEB-INF/web.xml
Any suggesstions to resolve this issue?
I also unpacked the war file and checked that the web.xml file is present in the web-inf folder.
Cheers,
Deena
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我遇到了同样的问题,经过多次搜索(甚至为此问题发布了赏金),我发现问题出在 web.xml 中的注释。
我很幸运,有一个没有评论并且可以工作的源分支,而另一个有评论并且崩溃的分支。
删除注释使得 WebSphere 的验证器能够克服该错误......有趣的东西......
I had the same problem and after much searching (and even posting a bounty for this problem), I found the issue was comments in web.xml.
I was lucky enough to have a source branch that didn't have the comments and worked and this other branch that did have the comments and broke.
Removing the comments allowed WebSphere's validator to get past that error... fun stuff..