title: JBoss 6.1.1.EAP Module Deployment: Class not found
body: <p>The structure is as follows:
  Actually deployed module is EAR.
  EAR contains WAR module, and WAR module contains another JAR module.
  In this last JAR, there are some generated classes and their parent folder is also used as source folder. Its path is "target/generated-sources/java".
  The problem that is killing me, is that the deployed application throws ClassNotFoundException on server start, and the classes in question are the generated ones. </p>
  
  <p>Now the trick:
  if I explicitly change the Deployment Assembly in WAR project in Eclipse not to contain JAR project as "project", but as an archive from the JAR's project "target" folder, JBoss sees the generated classes and starts.</p>
  
  <p>This solution however works only until next eclipse maven project update, so manual edit of deployment assembly is not really a solution.</p>
  
  <p>Any ideas how to deploy or reorganise packages correctly?</p>