title: Weblogic EJB deployement: classes in jar inside ear are not accessible
body: <p>I'm trying to deploy an ear containing an ejb application into a weblogic 9.2 server.</p>
  
  <p>This ear is created using maven (itself using the ear ant task). Maven produces the following structure:</p>
  
  <pre><code>myApp.ear
   - META-INF
     - application
     - MANIFEST.MF
   - dependency-1.jar
   - dependency-2.jar
   - ...
   - dependency-n.jar
   - myEjb.jar
  </code></pre>
  
  <p><em>The manifest contains a Class Path section that is looking good (all dependencies jar are listed)</em></p>
  
  <p><strong>When I try to deploy the ear I get a NoClassDefFoundError exception.</strong></p>
  
  <p>If I put all my jars in the lib dir of my domain, the ear is successfully deployed.</p>
  
  <p>If I put all my jars in a dir called APP-INF/lib (the weblogic standard), the ear is successfully deployed too.</p>
  
  <pre><code>myApp.ear
   - META-INF
     - application
     - MANIFEST.MF
   - APP-INF
     - lib
       - dependency-1.jar
       - dependency-2.jar
       - ...
       - dependency-n.jar
   - myEjb.jar
  </code></pre>
  
  <hr>
  
  <p>In the same project, I have others ears that does not use the APP-INF/lib dir that are working perfectly.</p>
  
  <p>Does someone has an idea of why weblogic is not able to deploy my ear ?</p>
  
  <hr>
  
  <p>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.</p>
  
  <p>Thanks a lot.</p>