[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - JBOSS and log4j 1.2.13

giusarno do-not-reply at jboss.com
Wed Oct 11 07:14:05 EDT 2006


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 at 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 at 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 ?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3977491#3977491

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3977491



More information about the jboss-user mailing list