7 Replies Latest reply on Jun 22, 2006 12:14 PM by trautw

    log4j within a WAR broke on 4.0.4.GA?

    Alexander Sack Novice

      My war that worked perfectly fine on 4.0.4.CR2 loads but spews the following error on the GA release:

      17:00:17,876 ERROR [STDERR] log4j:ERROR A "org.jboss.logging.util.OnlyOnceErrorHandler" object is not assignable to a "org.apache.log4j.spi.ErrorHandler" variable.
      17:00:17,876 ERROR [STDERR] log4j:ERROR The class "org.apache.log4j.spi.ErrorHandler" was loaded by
      17:00:17,876 ERROR [STDERR] log4j:ERROR [WebappClassLoader
      delegate: false
      ----------> Parent Classloader:
      ] whereas object of type
      17:00:17,876 ERROR [STDERR] log4j:ERROR "org.jboss.logging.util.OnlyOnceErrorHandler" was loaded by [org.jboss.system.server.NoAnnotationURLClassLoader@1b4fad5].
      17:00:17,976 ERROR [STDERR] log4j:ERROR Could not create an Appender. Reported error follows.
      17:00:17,976 ERROR [STDERR] java.lang.ClassCastException: org.jboss.logging.appender.DailyRollingFileAppender

      My war does ship commons-logging and log4j in its WEB-INF/lib directory. Can someone give me a clue on what's changed?