0 Replies Latest reply on Mar 15, 2006 7:22 AM by ibuchh

    Issue with JBoss 4.02 and log4j.

    ibuchh Newbie


      We have just upgraded an application to work on JBoss 4.0.2, but we get the following error at the JBoss startup. Can anyone of you help with this problem. Is there an issue with log4j/commons-logging with JBoss 4.x. We have log4j.jar and commons-logging.jar present in WEB-INF/lib directory. When we remove log4j.jar from lib directory, there is no error, but application logging does not work.


      Irshad A. Buchh
      Managing Principal.

      21:33:04,734 INFO [TomcatDeployer] deploy, ctxPath=/eLoadSheet-war, warUrl=file:/C:/JBoss/jboss-4.0.2/server/all/deploy/eLoadSheet-war.war/
      21:33:05,765 INFO [STDOUT] log4j:ERROR A "org.jboss.logging.util.OnlyOnceErrorHandler" object is not assignable to a "org.apache.log4j.spi.ErrorHandler" variable.
      21:33:05,765 INFO [STDOUT] log4j:ERROR The class "org.apache.log4j.spi.ErrorHandler" was loaded by
      21:33:05,765 INFO [STDOUT] log4j:ERROR [WebappClassLoader
      delegate: false
      ----------> Parent Classloader:
      ] whereas object of type
      21:33:05,765 INFO [STDOUT] log4j:ERROR "org.jboss.logging.util.OnlyOnceErrorHandler" was loaded by [org.jboss.system.server.NoAnnotationURLClassLoader@c68c3].
      21:33:05,875 INFO [STDOUT] log4j:ERROR Could not create an Appender. Reported error follows.
      21:33:05,875 INFO [STDOUT] java.lang.ClassCastException: org.jboss.logging.appender.DailyRollingFileAppender
      21:33:05,875 INFO [STDOUT] at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:165)