3 Replies Latest reply on Jan 20, 2012 6:07 AM by Sailaja Yedugundla

    Class loader isolation for WAR

    Sailaja Yedugundla Newbie

      I am migrating my application from JBOSS 4.2.3 to JBOSS 6.1. My app ear contains axis war. Deployment is failing with the following error.


      Caused by: java.lang.RuntimeException: Error visiting resource: VFSResourceContext @ 1.0/com/sun/codemodel/JBreak.class / BaseClassLoader@1ec68e9{vfs:///E:/Jboss6/jboss-6.1.0.Final/server/default/deploy/GSS-EAR-JBoss.ear/axis2.war/}, visitor: org.jboss.scanning.hierarchy.plugins.HierarchyTypeVisitor@503710

                at org.jboss.scanning.plugins.visitor.IgnoreSetErrorHandler.handleError(IgnoreSetErrorHandler.java:56) [:1.0.0.GA]


      I tried added jboss-classloading.xml with the following


      <classloading xmlns="urn:jboss:classloading:1.0"








      But not able to fix the problem.  I tried various changes to this configuration. But no use.


      How to make JBoss use the libraries included in my war file. I read in some post that deleting will solve the problem. I tried that. I got classcastexception.

      Can any one please help me in solving this issue.