I'm trying to deploy an ear containing an ejb application into a weblogic 9.2 server.
This ear is created using maven (itself using the ear ant task). Maven produces the following structure:
myApp.ear
- META-INF
- application
- MANIFEST.MF
- dependency-1.jar
- dependency-2.jar
- ...
- dependency-n.jar
- myEjb.jar
The manifest contains a Class Path section that is looking good (all dependencies jar are listed)
When I try to deploy the ear I get a NoClassDefFoundError exception.
If I put all my jars in the lib dir of my domain, the ear is successfully deployed.
If I put all my jars in a dir called APP-INF/lib (the weblogic standard), the ear is successfully deployed too.
myApp.ear
- META-INF
- application
- MANIFEST.MF
- APP-INF
- lib
- dependency-1.jar
- dependency-2.jar
- ...
- dependency-n.jar
- myEjb.jar
In the same project, I have others ears that does not use the APP-INF/lib dir that are working perfectly.
Does someone has an idea of why weblogic is not able to deploy my ear ?
After some investigation I've found the problem source: it was the manifest class-path of the myEjb.jar module. See comment in accepted response.
Thanks a lot.