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

    deployment of ear containing jars + sar

    Marco Zanker Newbie

      Hi together.

      I try to deploy an ear containg 1 sar and multible jars.
      I try the follwing structure of the 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:


      My application.xml:
      <?xml version="1.0" encoding="UTF-8"?>
      <application xmlns="http://java.sun.com/xml/ns/j2ee" version="1.4"
       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>

      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:

      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..