0 Replies Latest reply on Aug 23, 2006 10:51 AM by Todd Gould

    Isolated ClassLoading in JBoss 4.0.4.GA

    Todd Gould Novice


      I'm not sure if this is the right forum for this question ... I also tried the Tomcat forum without success ... please let me know if there is a better forum for this question.

      Anyway, I'm attemtping to achieve isolated classloading for individual war based applications (without much success) in a JBoss 4.0.4GA environment. I understand that these issues have changed since at least the 3.x days as well as perhaps yet again since the 4.0.2 days from what I have found in the wiki at http://wiki.jboss.org/wiki/Wiki.jsp?page=ClassLoadingConfiguration.

      Anyway, I am hoping to have entirely self sufficient (they use ONLY the classes they contain in WEB-INF/classes and WEB-INF/lib and do not or conflict with anything else on the parent classloaders) war applications that do not use anything such as the MyFaces and log4j libs from the parent classloaders. From the wiki, I have tried the following. Here is what I have in my:


      <attribute "FilteredPackages">org.apache.commons.logging

      In each war I have added a WEB-INF/jboss-web.xml with the following content:

      <class-loading java2ClassLoadingCompliance="false">

      However, this is not providing isolation for me (as adding MyFaces and/or log4j jars of different versions to my WEB-INF/lib causes conflicts symptomatic of non-isolated class loading).

      Am I missing something unique in 4.0.4 or otherwise missing something? How can this desired behavior be achieved?