Websphere 8.5: Root exception is org.eclipse.jst.j2ee.commonarchivecore.internal.exception.DeploymentDescriptorLoadException: WEB-INF/web.xml

James Oravec picture James Oravec · Dec 18, 2012 · Viewed 34.9k times · Source

I'm getting the following error when trying to deploy an ear with websphere from an ant ask with jacl:

[wsadmin] WASX7017E: Exception received while running file "C:\...\AppData\Local\Temp\wsant6857788060872488512jacl"; exception information: com.ibm.websphere.management.application.client.AppDeploymentException: com.ibm.websphere.management.application.client.AppDeploymentException:  [Root exception is org.eclipse.jst.j2ee.commonarchivecore.internal.exception.DeploymentDescriptorLoadException: WEB-INF/web.xml]

When I try to deploy the ear from the websphere console I get:

The following exception occurred. Check log for details. 
com.ibm.websphere.management.application.client.AppDeploymentException: [Root exception is org.eclipse.jst.j2ee.commonarchivecore.internal.exception.DeploymentDescriptorLoadException: WEB-INF/web.xml]

Machine details: Win7x64, WebSphere 8.5 x86, using oracle jdk 6u30 x86 (Tested with x64 too).

Others have been able to get the installer to work for them. The WebSphere connection information is correct, as other scripts properly update shared libraries. I'm baffled why it works on other machines and not this one.

Answer

James Oravec picture James Oravec · Dec 19, 2012

After much searching (even posted a bounty on a similar problem), I found the issue was comments in the 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 was broke. Different installers from different branches is what allowed the installers to work on some machines, and this other branch installer breaking on my machine.

Removing the comments allowed WebSphere's validator to get past that error... fun stuff... will report it to the WebSphere guys.