1 Reply Latest reply on Feb 19, 2006 1:03 PM by Scott Stark

    JB 4.0 - Deploying Dependent Classes in EAR File

    Mike Thomason Newbie

      I have read through the documentation on packaging EAR files for JBoss and it seems pretty straight forward.

      I have specified the dependent JAR file in the application.xml as a java module as follows:

      <module>
       <java>MyJar.jar</java>
      </module>


      And I have included MyJar.jar in the root of my EAR file.


      It says in the documentation I'm reading that these are shared across the entire application, but I have a Message-Driven bean deployed also in the EAR and I get a NoClassDef found error when it tries to access those classes. If I put the JAR file in the ../lib folder of my server, then everything works.

      Is there another step that I need to take for the EJB to have it access those classes?