3 Replies Latest reply on Nov 22, 2005 5:32 PM by starksm64

    How to use latest release of log4j in JBoss

    weisse

      Hello. I am fairly new to JBoss. I would like to know what I have to do to use the latest release of log4j (1.2.12) in JBoss. If I replace the log4j.jar file located in my server/default/lib directory by the log4j-1.2.12 file - I'm not sure this is the right thing to do - I get the following error (logging works though):

      12:50:54,799 INFO [STDOUT] log4j:ERROR A "org.jboss.logging.util.OnlyOnceErrorHandler" object is not assignable to a "org.apache.log4j.spi.ErrorHandler" variable.
      12:50:54,799 INFO [STDOUT] log4j:ERROR The class "org.apache.log4j.spi.ErrorHandler" was loaded by
      12:50:54,799 INFO [STDOUT] log4j:ERROR [WebappClassLoader
      delegate: false
      repositories:
      /WEB-INF/classes/
      ----------> Parent Classloader:
      java.net.FactoryURLClassLoader@17193fc
      ] whereas object of type
      12:50:54,799 INFO [STDOUT] log4j:ERROR "org.jboss.logging.util.OnlyOnceErrorHandler" was loaded by [org.jboss.system.server.NoAnnotationURLClassLoader@1a33d48].
      12:50:54,809 INFO [STDOUT] log4j:ERROR Could not create an Appender. Reported error follows.

      Kind regards.