0 Replies Latest reply on Nov 23, 2005 8:19 AM by chaitanya

    log4j errors(org.jboss.logging.util.OnlyOnceErrorHandler)

    chaitanya Novice

      i am GETTING THIS ERROR wehen i deploy ear in jboss-4.0.2


      Calling the context initialized method org.apache.catalina.core.ApplicationContextFacade@f32dde
      log4j:ERROR A "org.jboss.logging.util.OnlyOnceErrorHandler" object is not assignable to a "org.apache.log4j.spi.ErrorHandler" variable.
      log4j:ERROR The class "org.apache.log4j.spi.ErrorHandler" was loaded by
      log4j:ERROR [org.jboss.mx.loading.UnifiedClassLoader3@138847d{ url=file:/C:/jboss-4.0.2/server/all/tmp/deploy/tmp27051ex.ear ,addedOrder=40}] whereas object of type
      log4j:ERROR "org.jboss.logging.util.OnlyOnceErrorHandler" was loaded by [org.jboss.system.server.NoAnnotationURLClassLoader@ab95e6].
      log4j:ERROR Could not create an Appender. Reported error follows.
      java.lang.ClassCastException: org.jboss.logging.appender.DailyRollingFileAppender
      at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:165)
      at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:140)
      at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.java:153)
      at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurator.java:415)
      at org.apache.log4j.xml.DOMConfigurator.parseRoot(DOMConfigurator.java:384)
      at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:783)
      at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:666)
      at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:616)
      at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:602)
      at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:460)
      at org.apache.log4j.LogManager.(LogManager.java:113)
      at org.apache.log4j.Category.getInstance(Category.java:514)
      at org.apache.commons.logging.impl.Log4JCategoryLog.(Log4JCategoryLog.java:97)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
      at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:487)
      at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:285)
      at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:255)
      at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:381)
      at com.foursoft.esupply.integration.scheduler.ScheduleConfig.(ScheduleConfig.java:55)
      at com.foursoft.esupply.integration.scheduler.SchedulerLauncher.contextInitialized(SchedulerLauncher.java:64)
      at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3669)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4104)
      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
      at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:150)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)