0 Replies Latest reply on May 20, 2014 9:59 AM by Yuvaraj Venkatesan

    jboss7 deployment structure configuration for multiple WAR

    Yuvaraj Venkatesan Newbie



      We are trying to create a mapping between multiple WARs.

      Communication between the classes in myappMainWAR and (myappWAR1,2,3,4) are working as expected.

      But the Communication between myappWAR1 and myappWAR3 are failing with the below ClassNotFoundException exception,



      Note: com.org.util.ClassImpl is the class which is existing in myappWAR3.



      17:41:20,296 ERROR [stderr] (DRS Print Service Proxy Req=90269) Caused by: java.lang.ClassNotFoundException: com.org.util.ClassImpl from [Module "deployment.myapp EAR.ear.myappWAR1.war:main" from Service Module Loader]

      17:41:20,296 ERROR [stderr] (DRS Print Service Proxy Req=90269) at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:196)

      17:41:20,296 ERROR [stderr] (DRS Print Service Proxy Req=90269) at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:444)

      17:41:20,296 ERROR [stderr] (DRS Print Service Proxy Req=90269) at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:432)

      17:41:20,296 ERROR [stderr] (DRS Print Service Proxy Req=90269) at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:374)

      17:41:20,296 ERROR [stderr] (DRS Print Service Proxy Req=90269) at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:119)

      Please help us to resolve the issue.






      <?xml version="1.0" encoding="UTF-8"?> 


          <sub-deployment name="myappMainWAR.war"> 


                    <module name="deployment.myapp EAR.ear.myappWAR1.war" /> 

                    <module name="deployment.myapp EAR.ear.myappWAR2.war" />

                    <module name="deployment.myapp EAR.ear.myappWAR3.war" />

                    <module name="deployment.myapp EAR.ear.myappWAR4.war" />




        <!-- We tried another mapping to make a communication between WAR1 and WAR 3 and tried as below. But failed with the below exceptionon the server boot>



      Caused by: java.lang.LinkageError: loader constraint violation: loader (instance of org/jboss/modules/ModuleClassLoader) previously initiated loading for a different type with name "com.org.pckg.util.Properties"



      Properties is common ligrary package which is added for all the WAR's deployment assembly. (Using option priject right click -> properties-> Deployment Assem)


          <sub-deployment name="myappWAR1.war"> 


                    <module name="deployment.myapp EAR.ear.myappWAR3.war" />






      Do you guys have any suggestions to make this nested WAR communication in deployment structure?

      Please let us know for any inputs, Thanks in advance.



      Environment Details: JBOSS 6.1 and JDK 1.7 and IDE JBOSS Studio 7.1