0 Replies Latest reply on Oct 11, 2006 7:14 AM by giusarno

    JBOSS and log4j 1.2.13

    giusarno

      Hi I'm using latest opensaml software and JBOSS 4.0.4GA.

      When my war file gets loaded I get the following error:

      11:56:39,296 ERROR [[/Security]] StandardWrapper.Throwable
      java.lang.NoSuchMethodError: org.apache.log4j.Logger.isTraceEnabled()Z
       at org.opensaml.xml.XMLConfigurator.load(XMLConfigurator.java:122)
       at org.opensaml.Configuration.init(Configuration.java:49)
      


      opensaml needs log4j 1.2.13. I'm not too sure of what version of log4j JBOSS includes.

      I also tried to include the log4j.1.2.13.jar in my WEB-INF/lib directory but I got the following error:

      11:35:05,868 ERROR [STDERR] log4j:ERROR A "org.jboss.logging.util.OnlyOnceErrorHandler" object is not assignable to a "org.apache.log4j.spi.ErrorHandler" variable.
      11:35:05,868 ERROR [STDERR] log4j:ERROR The class "org.apache.log4j.spi.ErrorHandler" was loaded by
      11:35:05,869 ERROR [STDERR] log4j:ERROR [WebappClassLoader
       delegate: false
       repositories:
       /WEB-INF/classes/
      ----------> Parent Classloader:
      java.net.FactoryURLClassLoader@1735602
      ] whereas object of type
      11:35:05,869 ERROR [STDERR] log4j:ERROR "org.jboss.logging.util.OnlyOnceErrorHandler" was loaded by [org.jboss.system.server.NoAnnotationURLClassLoader@cdfc9c].
      11:35:05,965 ERROR [STDERR] log4j:ERROR Could not create an Appender. Reported error follows.
      11:35:05,966 ERROR [STDERR] java.lang.ClassCastException: org.jboss.logging.appender.DailyRollingFileAppender
      
      


      similar to the one here:
      http://www.jboss.com/?module=bb&op=viewtopic&t=70054

      Can anyone please help me to find a solution to the problem ?