2 Replies Latest reply on Jul 31, 2012 7:31 AM by sergiu_pienar

    WAR dependecies to jar in EAR

    sergiu_pienar

      Hi,

       

      Using JBoss 7.1.1 Final.

       

      I have a structure similar to the following :

       

       

      axis.war

           ---WEB-INF/lib/

       

      myEar.ear

           ----myWar1.war

           ----myWar2.war

           ----myEjbs.jar

       

      The deployment works fine but when I try to call a web-service located in myEjbs.jar I can't because of class-path problems :

       

      Fault - ; nested exception is:

      java.lang.ClassNotFoundException: com.RuleExecutorRemote from [Module "deployment.axis.war:main" from Service Module Loader

       

      The EAR has a jboss-deployment-structure.xml as follows :

       

      <deployment>  

       

                <dependencies>

                          <module name="deployment.all-dev.ear" export="true"/>

                          <module name="deployment.all-dev.ear.myEjbs.jar" export="true" />

                </dependencies> 

       

      </deployment>

       

      How could I make the myEjbs.jar visible to the axis.war component ?

       

      Thank you .