1 Reply Latest reply on Apr 13, 2011 5:45 PM by Dipti Vaidya

    Jboss AS 6 and Class Loader Isolation

    Dipti Vaidya Newbie

      Hi,

      I'm using Jboss AS-6 and i've CXF libraries bundled in my war file.

      I've set up my jboss-app.xml and jboss-classloading.xml with parent-first="false".

       

      But I still see CXF libraries from Jboss getting pulled in my deployment which is cause the deployment to fail.

       

      How do I achieve isolation from Jboss supplied jars and use only the ones in my app?

       

      Here's what my jboss-classloading.xml looks like:

       

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

      <classloading

      xmlns="urn:jboss:classloading:1.0"

      domain="myapp:loader=myapp.war"

      export-all="NON_EMPTY"

      import-all="true"

      parent-first="false"

      >

      </classloading>

       

       

      jboss-app.xml

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

      <jboss-app>

      <loader-repository>
        myapp:loader=myapp.war
        <loader-repository-config>
         java2ParentDelegation=false
        </loader-repository-config>
      </loader-repository>
      </jboss-app>

       

       

      Am I missing something? Please help.

       

      Thanks,

      Dipti

        • 1. Jboss AS 6 and Class Loader Isolation
          Dipti Vaidya Newbie

          Can I add the jboss-classloading-domain.xml file and put a before-filter?

           

           

          <classloading-domain xmlns="urn:jboss:classloading-domain:1.0" name="myDomain">

             <parent-policy>

                <before-filter>org.jboss.classloader.spi.base</before-filter>

                <description>Qwert</description>

             </parent-policy>

          </classloading-domain>

           

          Does that work with Jboss 6?

           

          When I try to add this xml and deploy, I get weird and unclear errors.