1 Reply Latest reply on Oct 30, 2013 6:42 AM by Radim Hanus

    WAR delegating classloading to EAR

    Sergiu Pienar Apprentice

      Using JBoss 7.1.1. Final.

      Considering I have an EAR and a WAR, both deployed in standalone/deployments/ i.e. they are at the same level.

       

      The structure is as follows:

           testEAR

                -WAR1.war

                -WAR2.war

           testWAR

       

      Would it be possible that the testWAR to look into the testEAR's classloader for some classes (if it does not find them in his own classloader) ?

        • 1. Re: WAR delegating classloading to EAR
          Radim Hanus Expert

          try to place WEB-INF/jboss-deployment-structure.xml into testWAR with following content:

           

          <jboss-deployment-structure>

            <deployment>

            <dependencies>

            <module name="deployment.testEAR.ear"/> <!-- for classes in ear's lib -->

            <module name="deployment.testEAR.ear.WAR1.war"/> <!-- for classes in war -->

            <module name="deployment.testEAR.ear.WAR2.war"/>

            </dependencies>

            </deployment>

          </jboss-deployment-structure>