title: Server can not find class in .ear
body: <p>I have some problems with my .ear file. The structure of the file is:</p>
  
  <pre><code>app.ear
  |-xxx.jar
   -yyy.jar
   -zzz.jar
   -ektorp.jar
   -app-ejb.jar
   -app-web.war
    |-WEB-INF
      |-lib
        |-xxx.jar
        |-yyy.jar
        |-zzz.jar
        |-ektorp.jar
  </code></pre>
  
  <p>When I try to deploy my application, I get ClassNotFoundException, with class wihch is in ektorp.jar. This file is used by ejb module.</p>
  
  <p>I also don't know why these jars are doubled? In ear and in war module are the same .jar files.</p>
  
  <p>Ear is built by maven2. </p>