The .war file contains a META-INF/MANIFEST.MF with a Class-Path attribute:
We have some known issues with Class-Path attributes in MANIFEST.MF. Remove that entry from the MANIFEST.MF
you have a JavaEE5 app I assume? I ask because your "EJB3Test.jar" contains a web.xml AND Entity beans. But the feature of bundling EJBs in a WAR file is a feature of JavaEE6.
So, either split EJB3Test.jar to an EJB jar and a WAR file, or (if you didn't intend to build a web module) clean it up: remove the "web.xml" folder, and your application.xml points to a web module.
Wolfgang Knauf wrote:
Ah, that's a good point! I did not notice that the .jar was containing web.xml and .war related contents.
Thank you very much for pointing me at this. It was a stupid mistake: I have simple overlooked the WEB-INF folder containing the web.xml.
Now that I have removed that folder everything works as expected.