0 Replies Latest reply on Oct 18, 2004 5:37 AM by erezharari

    WAR level classloader within EARs

    erezharari

      i'm using jboss 3.2.5 and deploy an EAR with multiple WARs.

      i need to have a separate classloader for each WAR.

      if i was not using an EAR, i would use jboss-web.xml:

      <class-loading java2ClassLoadingCompliance='false'>
      <loader-repository>
      some.dot.com:loader=$site-name$.war>
      </loader-repository>
      </class-loading>
      


      that way i have an isolation and i also control classloader name so i can filter my logs based on it using org.apache.log4j.spi.Filter.

      however, since i'm using an EAR, i can only use jbossweb-tomcat50.sar/META-INF/jboss-service.xml:
      <attribute name="UseJBossWebLoader">false</attribute>


      when using this option:
      i do not have control of the classloader name

      i get many exceptions logged to the console


      any ideas?