0 Replies Latest reply on Jul 27, 2002 1:21 PM by Dorothy Gantenbein

    Ear ClassLoader with Log4j

    Dorothy Gantenbein Newbie

      Hi -

      I am trying to configure log4j separately from the JBoss log4j service. I am using JBoss 3.0.0 with Tomcat.

      I have tried many permutation of putting log4j.jar into the ear with an ear manifest.mf. Also, I put log4j.jar into the war's lib directory. Set the class-path in the manifest files of all my jars to point to log4j.jar.

      However when I try to intialize log4j, I end up reconfiguring JBoss log4j configuration. What I wanted is to have a separate log4j set of classes that I can configure independently. Dumping the class loader of org.apache.log4j.Logger from my log4j init code always shows the log4j found in /server/default/lib. However, dumping my log initialization code class loader shows log4j.jar from my war's lib.

      This is making me pull out my hair. I would be grateful for any pointers on this subject.

      Thanks!!!
      Dorothy