4 Replies Latest reply on Jul 29, 2009 10:54 AM by Margot Media

    EAR file with Utility Module

    Margot Media Newbie

      I have an application with a single MDB .jar file and 3 Utility Module .jar files. The utility projects are set up to appear in the EAR under the /lib directory. The first time the EAR file is deployed to the server, the /lib directory is populated correctly. However, if I change my source code and republish to the server, the /lib directory is not present! If I remove the EAR file from the server, then re-add it, the /lib directory is created properly.

      The first time, it looks like this:

      MyEar.ear
       |- /lib
       | |- Utility1.jar
       | |- Utility2.jar
       | |- Utility3.jar
       |- /META-INF
       | |- MANIFEST.MF
       |- MyMDB.jar
      


      If I change the code in MyMDB.jar, the EAR file is generated like:
      MyEar.ear
       |- /META-INF
       | |- MANIFEST.MF
       |- MyMDB.jar
      


      with the obvious class path problems by not having the utility jar files present. I am using a fresh install of Eclipse 3.5 and JBoss Tools 3.1.0 M2. Has anyone else seen this problem?