1 Reply Latest reply on May 23, 2013 8:33 PM by Stephen Coy

    Classloader in war project

    Juan Burgos Newbie

      Hello everyone

       

      I have the following situation: I created a project. WAR which invokes 2 module dependency in the MANIFEST.MF:

       

      moduloA: contains a pojo classes

      moduloB: contains some helper classes to transform a xml to pojo's moduloA

       

       

      But if the project war moduloB use the Helper of the pojo to build dynamically generates the following error moduloA

       

       

      09:23:42,014 ERROR [org.apache.commons.digester.Digester] (Thread-1 (HornetQ-client-global-threads-744425448)) Begin event threw exception: java.lang.ClassNotFoundException: moduloA.Requerimiento from [Module "moduloB:main" from local module loader @54281d4b (roots: /home/java/servidores/jboss/7.1.3/modules)]
                at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
                at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)
                at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)
                at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
                at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)
                at org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java:210) [commons-digester-2.1.jar:2.1]
                at org.apache.commons.digester.Rule.begin(Rule.java:177) [commons-digester-2.1.jar:2.1]
                at org.apache.commons.digester.Digester.startElement(Digester.java:1583) [commons-digester-2.1.jar:2.1]
                at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
                at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
                at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
                at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
                at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
                at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
                at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
                at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
                at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
                at org.apache.commons.digester.Digester.parse(Digester.java:1916) [commons-digester-2.1.jar:2.1]