0 Replies Latest reply on Feb 21, 2011 10:01 PM by azahra

    Classloader Isolation in JBoss AS6

    azahra

      I am trying to deploy a war file with class loader isolation following these instructions:

      http://community.jboss.org/wiki/ClassLoadingConfiguration

       

      In my case I have a war file and I am getting class cast exceptions for hibernate because of a conflict with the AS jars.

       

      I tried doing:

      <jboss-web>
         <class-loading>
            <loader-repository>com.example:archive=unique-archive-name</loader-repository>
         </class-loading>
      </jboss-web>

       

      but it made zero difference.

       

      I also tried leaving out the class-loading tag as suggested but then got errors.

       

      Can anyone advise the correct way to do class loader isolation with AS 6.0.0?

       

      thanks