0 Replies Latest reply on May 15, 2016 5:31 AM by Prashant Patil

    Axis2 jar conflict issue : Due to class loader in jboss-5.1

    Prashant Patil Newbie

      Hi

       

      I have war file containing Axis2 jars .Name of war file "test.war".

       

      In web-Inf lib folder jaxb-impl.jar is present and same jar is present in JBOSS-5.1.0.GA/lib folder also .

      So I am getting Warning while deployment :

       

      I tried to solve that by adding jboss-classloading.xml  :

       

      <classloading

       

        name="test.war"
        domain="test.war"
        export-all="NON_EMPTY"
        import-all="true"
        parent-first="false">
        </classloading>

       

      While deployment i am getting below exception :

       

      2016-05-15 04:15:53,884 INFO [org.apache.cxf.service.factory.ReflectionServiceFactoryBean] Creating Service {http://com.ge.b2ewebservice/B2EService/}B2EService from WSDL: WEB-INF/wsdl/B2EService.wsdl

      2016-05-15 04:15:54,142 WARN [org.jboss.detailed.classloader.ClassLoaderManager] Unexpected error during load of:com.sun.xml.bind.v2.model.core.TypeInfo

      java.lang.StackOverflowError

      at java.lang.ClassLoader.findLoadedClass(ClassLoader.java:949)

      at java.lang.ClassLoader.loadClass(ClassLoader.java:291)

      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)

      at java.lang.ClassLoader.loadClass(ClassLoader.java:295)

      at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

      at org.jboss.classloader.spi.base.ClassLoaderManager.nextTask(ClassLoaderManager.java:258)

      at org.jboss.classloader.spi.base.ClassLoaderManager.process(ClassLoaderManager.java:150)

      at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:265)

      at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:1119)

      at org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(BaseClassLoader.java:798)

      at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:441)

      at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

      at java.lang.ClassLoader.defineClass1(Native Method)

      at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)

      at java.lang.ClassLoader.defineClass(ClassLoader.java:615)

      at org.jboss.classloader.spi.base.BaseClassLoader.access$200(BaseClassLoader.java:63)

      at org.jboss.classloader.spi.base.BaseClassLoader$2.run(BaseClassLoader.java:572)

      at org.jboss.classloader.spi.base.BaseClassLoader$2.run(BaseClassLoader.java:532)

      at java.security.AccessController.doPrivileged(Native Method)

      at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:530)

      at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:507)

      at org.jboss.classloader.spi.base.BaseDelegateLoader.loadClass(BaseDelegateLoader.java:134)

      at org.jboss.classloader.spi.filter.FilteredDelegateLoader.loadClass(FilteredDelegateLoader.java:131)

      at org.jboss.classloader.spi.base.ClassLoadingTask$ThreadTask.run(ClassLoadingTask.java:452)

      at org.jboss.classloader.spi.base.ClassLoaderManager.nextTask(ClassLoaderManager.java:251)

      at org.jboss.classloader.spi.base.ClassLoaderManager.process(ClassLoaderManager.java:150)

      at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:265)

      at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:1119)

      at org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(BaseClassLoader.java:798)

      at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:441)

      at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

      at java.lang.ClassLoader.defineClass1(Native Method)

      at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)

      at java.lang.ClassLoader.defineClass(ClassLoader.java:615)

      at org.jboss.classloader.spi.base.BaseClassLoader.access$200(BaseClassLoader.java:63)

      at org.jboss.classloader.spi.base.BaseClassLoader$2.run(BaseClassLoader.java:572)

      at org.jboss.classloader.spi.base.BaseClassLoader$2.run(BaseClassLoader.java:532)

      at java.security.AccessController.doPrivileged(Native Method)

      at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:530)

      at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:507)

      at org.jboss.classloader.spi.base.BaseDelegateLoader.loadClass(BaseDelegateLoader.java:134)

      at org.jboss.classloader.spi.filter.FilteredDelegateLoader.loadClass(FilteredDelegateLoader.java:131)

      at org.jboss.classloader.spi.base.ClassLoadingTask$ThreadTask.run(ClassLoadingTask.java:452)

      at org.jboss.classloader.spi.base.ClassLoaderManager.nextTask(ClassLoaderManager.java:251)

      at org.jboss.classloader.spi.base.ClassLoaderManager.process(ClassLoaderManager.java:150)

       

      ---------------------------------------------------------------------------------------------------------------------------------

       

      Please let me know if any extra info needed .

      schaeferamarc.fleuryjasonmveitas robmacandrew