0 Replies Latest reply on Jun 14, 2005 11:39 PM by just_a_w

    OnlyOnceErrorHandler from log4j call

    just_a_w Newbie

      I'm getting the following error when starting my app-server (4.0.2). It happens when calling java.util.logging.LogManager.exists("mylogger"); What's strange is that it only happens on Linux...on WinXP it starts fine. And after the error, everything works fine - my logging with log4j works fine.


      19:37:01,002 INFO [TomcatDeployer] deploy, ctxPath=/Chat, warUrl=file:/opt/jboss-4.0.2/server/minimal/tmp/deploy/tmp53096Chat.war/
      19:37:01,813 INFO [STDOUT] log4j:ERROR A "org.jboss.logging.util.OnlyOnceErrorHandler" object is not assignable to a "org.apache.log4j.spi.ErrorHandler" variable.
      19:37:01,814 INFO [STDOUT] log4j:ERROR The class "org.apache.log4j.spi.ErrorHandler" was loaded by
      19:37:01,815 INFO [STDOUT] log4j:ERROR [WebappClassLoader
      delegate: false
      repositories:
      /WEB-INF/classes/
      ----------> Parent Classloader:
      java.net.FactoryURLClassLoader@19f9d2
      ] whereas object of type
      19:37:01,816 INFO [STDOUT] log4j:ERROR "org.jboss.logging.util.OnlyOnceErrorHandler" was loaded by [org.jboss.system.server.NoAnnotationURLClassLoader@f72617].
      19:37:01,854 INFO [STDOUT] log4j:ERROR Could not create an Appender. Reported error follows.
      19:37:01,855 INFO [STDOUT] java.lang.ClassCastException
      19:37:01,857 INFO [STDOUT] at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:165)
      19:37:01,858 INFO [STDOUT] at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:140)
      19:37:01,859 INFO [STDOUT] at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.java:153)
      19:37:01,860 INFO [STDOUT] at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurator.java:415)
      19:37:01,860 INFO [STDOUT] at org.apache.log4j.xml.DOMConfigurator.parseRoot(DOMConfigurator.java:384)
      19:37:01,861 INFO [STDOUT] at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:783)
      19:37:01,862 INFO [STDOUT] at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:666)
      19:37:01,862 INFO [STDOUT] at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:616)
      19:37:01,863 INFO [STDOUT] at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:602)
      19:37:01,864 INFO [STDOUT] at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:460)
      19:37:01,865 INFO [STDOUT] at org.apache.log4j.LogManager.(LogManager.java:113)



      The stack trace is actually quite a bit longer, but the next line in the stack trace is where I'm calling LogManager.exists("mylogger");

      Any ideas what's wrong?

      Thanks.