DeploymentDescriptorLoadException: 部署描述符加载异常

huangapple go评论72阅读模式
英文:

DeploymentDescriptorLoadException: Fragment merge failure

问题

我们有一个使用Java、Spring等的war文件。我正尝试在WebSphere 9中部署这个war文件。我已经设置了数据源。当我尝试部署war文件时,我遇到了以下奇怪的错误。我在互联网上没有找到太多关于这个错误的信息。有人有任何想法吗?
相同的war文件在JBOSS中运行良好,而且web.xml文件看起来也没有问题。

错误:EAR文件可能损坏和/或不完整。请确保应用程序在当前版本的WebSphere(R) Application Server的兼容Java(TM) Platform, Enterprise Edition (Java EE)级别。
com.ibm.websphere.management.application.client.AppDeploymentException: org.eclipse.jst.j2ee.commonarchivecore.internal.exception.DeploymentDescriptorLoadException: Fragment合并失败 [根本异常是org.eclipse.jst.j2ee.commonarchivecore.internal.exception.DeploymentDescriptorLoadException: Fragment合并失败]

英文:

We have a war file that uses java, spring etc. I am trying to deploy this war file in Websphere 9. I had setup datasource. I am getting the following weird error when I try to deploy the war file. I am not getting much info on internet about the error. Any one has any idea?
The same war is working fine in JBOSS and web.xml file looks fine.

ErrorThe EAR file could be corrupt and/or incomplete. Make sure that the application is at a compatible Java(TM) Platform, Enterprise Edition (Java EE) level for the current version of WebSphere(R) Application Server.
com.ibm.websphere.management.application.client.AppDeploymentException: org.eclipse.jst.j2ee.commonarchivecore.internal.exception.DeploymentDescriptorLoadException: Fragment merge failure [Root exception is org.eclipse.jst.j2ee.commonarchivecore.internal.exception.DeploymentDescriptorLoadException: Fragment merge failure]

答案1

得分: 0

在pom文件中有一个自定义依赖出现了问题,导致了上述错误。在我的情况下,移除了该依赖后问题得以解决。请查看日志文件,获取有关导致问题的依赖项的更多信息,识别问题源并将其从pom文件中移除。

英文:

There was some problem with one custom dependency in the pom file that resulted the above error. Removing that dependency fixed the issue in my case. Check the log file for more info on the dependency that is causing the issue, identify the culprit and remove it from the pom file.

huangapple
  • 本文由 发表于 2020年9月2日 17:42:05
  • 转载请务必保留本文链接:https://go.coder-hub.com/63702862.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定