3 Replies Latest reply on Jun 9, 2005 1:48 PM by Ramon Grunder

    org.jboss.logging.util.OnlyOnceErrorHandler no longer implem

    first last Newbie

      As of 4.0.2, org.jboss.logging.util.OnlyOnceErrorHandler no longer implements org.apache.log4j.spi.ErrorHandler. Yet the log4j.xml assumes it does. Why is this?

        • 1. Re: org.jboss.logging.util.OnlyOnceErrorHandler no longer im
          Darran Lofthouse Master

          What makes you think it doesn't implement the interface?

          I have just looked at the history in CVS and every version does implement the ErrorHandler interface.

          • 2. Re: org.jboss.logging.util.OnlyOnceErrorHandler no longer im
            first last Newbie

            The javadoc didn't list it. I just looked at the code, which does implement it. I compiled from that code. I still get this when I deploy my .war (which works just fine in 4.0.1):

            13:22:01,436 INFO [STDOUT] log4j:ERROR A "org.jboss.logging.util.OnlyOnceErrorHandler" object is not
            assignable to a "org.apache.log4j.spi.ErrorHandler" variable.
            13:22:01,436 INFO [STDOUT] log4j:ERROR The class "org.apache.log4j.spi.ErrorHandler" was loaded by
            
            13:22:01,436 INFO [STDOUT] log4j:ERROR [WebappClassLoader
             delegate: false
             repositories:
             /WEB-INF/classes/
            ----------> Parent Classloader:
            java.net.FactoryURLClassLoader@18a62f6
            ] whereas object of type
            13:22:01,436 INFO [STDOUT] log4j:ERROR "org.jboss.logging.util.OnlyOnceErrorHandler" was loaded by
            [org.jboss.system.server.NoAnnotationURLClassLoader@1754ad2].
            13:22:01,546 INFO [STDOUT] log4j:ERROR Could not create an Appender. Reported error follows.
            13:22:01,546 INFO [STDOUT] java.lang.ClassCastException: org.jboss.logging.appender.DailyRollingFileAppender
            13:22:01,546 INFO [STDOUT] at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:165)
            13:22:01,546 INFO [STDOUT] at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:140)
            13:22:01,546 INFO [STDOUT] at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.java:153)
            13:22:01,546 INFO [STDOUT] at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurator.java:415)
            13:22:01,546 INFO [STDOUT] at org.apache.log4j.xml.DOMConfigurator.parseRoot(DOMConfigurator.java:384)
            13:22:01,546 INFO [STDOUT] at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:783)
            13:22:01,546 INFO [STDOUT] at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:666)
            13:22:01,546 INFO [STDOUT] at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:616)
            13:22:01,546 INFO [STDOUT] at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:602)
            13:22:01,546 INFO [STDOUT] at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:460)
            13:22:01,546 INFO [STDOUT] at org.apache.log4j.LogManager.<clinit>(LogManager.java:113)
            13:22:01,546 INFO [STDOUT] at org.apache.log4j.Logger.getLogger(Logger.java:94)
            


            • 3. Re: org.jboss.logging.util.OnlyOnceErrorHandler no longer im
              Ramon Grunder Newbie

              Do you have a log4j.jar included in your WAR file? This may be the cause of the trouble - try removing it and redeploy.

              See this for an article pointing in that direction: http://www.myeclipseide.com/index.php?name=PNphpBB2&file=viewtopic&p=35304

              cu
              Stefan