5 Replies Latest reply on Sep 25, 2008 7:23 AM by demarco

    deployment of ear containing jars + sar

      Hi together.

      I try to deploy an ear containg 1 sar and multible jars.
      I try the follwing structure of the ear:

      app.ear
      |
      |--- META-INF
      | |
      | |--- application.xml
      | |
      | |--- jboss-app.xml
      |
      |--- lib
      | |
      | |--- lib1.jar
      | |--- lib2.jar
      | |--- .....
      |
      |--- service.sar

      The MBean Interface of the sar package using classes of f.e. lib1.jar.
      During deployment I got a ClassNotFoundException of this class.

      My jboss-app.xml:

      <jboss-app>
       <loader-repository>com.example:archive=app.ear</loader-repository>
       <module>
       <service>service.sar</service>
       </module>
      </jboss-app>
      


      My application.xml:
      <?xml version="1.0" encoding="UTF-8"?>
      <application xmlns="http://java.sun.com/xml/ns/j2ee" version="1.4"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application_1_4.xsd">
       <display-name>my ear application</display-name>
      
       <library-directory>lib</library-directory>
      </application>
      


      Then I appended all libs to the manifest of the service.sar
      Classpath lib1.jar lib2.jar ...
      

      The same error...

      Then I added the following settings to my application.xml:
       <module>
       <connector>service.sar</connector>
       </module>
      

      Always the same...

      The only way it works I found is to append all jar-files directry to the sar-file.
      But that is not exactly what I want, because the jars should be later shared by other modules in the ear.
      So, is there a common way to do that. Thanks for help..