部署WAR文件时出错

发布于 2024-09-01 04:44:23 字数 328 浏览 1 评论 0原文

我有一个 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

£噩梦荏苒 2024-09-08 04:44:23

我遇到了同样的问题,经过多次搜索(甚至为此问题发布了赏金),我发现问题出在 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..

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文