2 Replies Latest reply on May 13, 2009 2:25 AM by Ondrej Medek

    JBoss 5.0.1 and EARClassLoaderDeployer isolation

    Ondrej Medek Apprentice


      I want to turn on class loader isolation for all EAR deployed into the server. I have followed http://www.jboss.org/community/wiki/ClassLoadingConfiguration, but I cannot find the file deploy/ear-deployer.xml. I have found just the file deployers/ear-deployer-jboss-beans.xml and there I have set there:

      <bean name="EARClassLoaderDeployer" class="org.jboss.deployment.EarClassLoaderDeployer">
       <!-- A flag indicating if ear deployments should have their own scoped
       class loader to isolate their classes from other deployments.
       <property name="isolated">true</property>

      I have deployed two versions of my EAR (exploded), but the classes are still shared. When I check the class loader in the JMX console, then classloader loads only classes for one of those EARs, the list of classes for the other EAR is empty.

      Is this a bug or do I have set something wrong?