1 Reply Latest reply on May 23, 2008 12:53 AM by jaikiran pai

    problem with log4j in Jboss

    jinesh parikh Newbie

      Following is the error ia ma getting when i am deploying my war file in Jboss 4.04-GA.I have log4j 1.2.9-jar in my webapplication's lib and i am not able to fuigure out the cause of my problem.

      Following is the log4j.xml from Jboss
      ----------------------------------------------
      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">

      <!-- ===================================================================== -->
      <!-- -->
      <!-- Log4j Configuration -->
      <!-- -->
      <!-- ===================================================================== -->

      <!-- $Id: log4j.xml,v 1.26.2.10 2006/04/21 17:29:20 csuconic Exp $ -->

      <!--
      | For more configuration infromation and examples see the Jakarta Log4j
      | owebsite: http://jakarta.apache.org/log4j
      -->

      <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false">

      <!-- ================================= -->
      <!-- Preserve messages in a local file -->
      <!-- ================================= -->

      <!-- A time/date based rolling appender -->





      <!-- Rollover at midnight each day -->
      <param name="DatePattern" value="'.'yyyy-MM-dd"/>

      <!-- Rollover at the top of each hour
      <param name="DatePattern" value="'.'yyyy-MM-dd-HH"/>
      -->


      <!-- The default pattern: Date Priority [Category] Message\n -->


      <!-- The full pattern: Date MS Priority [Category] (Thread:NDC) Message\n

      -->



      <!-- A size based file rolling appender











      -->

      <!-- ============================== -->
      <!-- Append messages to the console -->
      <!-- ============================== -->







      <!-- The default pattern: Date Priority [Category] Message\n -->




      <!-- ====================== -->
      <!-- More Appender examples -->
      <!-- ====================== -->

      <!-- Buffer events and log them asynchronously


      <appender-ref ref="FILE"/>
      <appender-ref ref="CONSOLE"/>
      <appender-ref ref="SMTP"/>

      -->

      <!-- EMail events to an administrator












      -->

      <!-- Syslog events









      -->

      <!-- Log events to JMS (requires a topic to be created)






      -->

      <!-- Log events through SNMP


















      -->

      <!-- Emit events as JMX notifications










      -->

      <!-- ================ -->
      <!-- Limit categories -->
      <!-- ================ -->

      <!-- Limit the org.apache category to INFO as its DEBUG is verbose -->




      <!-- Limit the org.jboss.serial (jboss-serialization) to INFO as its DEBUG is verbose -->




      <!-- Limit the org.jgroups category to WARN as its INFO is verbose -->




      <!-- Limit the jacorb category to WARN as its INFO is verbose -->




      <!-- Limit JBoss categories



      -->

      <!-- Limit the JSR77 categories -->




      <!-- Limit Axis based webservice category -->







      <!-- Limit JBossWS webservice category



      -->

      <!-- Decrease the priority threshold for the org.jboss.varia category



      -->

      <!-- Show the evolution of the DataSource pool in the logs [inUse/Available/Max]



      -->

      <!--
      | An example of enabling the custom TRACE level priority that is used
      | by the JBoss internals to diagnose low level details. This example
      | turns on TRACE level msgs for the org.jboss.ejb.plugins package and its
      | subpackages. This will produce A LOT of logging output.






      -->

      <!--
      | Logs these events to SNMP:
      - server starts/stops
      - cluster evolution (node death/startup)
      - When an EJB archive is deployed (and associated verified messages)
      - When an EAR archive is deployed



      <appender-ref ref="TRAP_LOG"/>




      <appender-ref ref="TRAP_LOG"/>




      <appender-ref ref="TRAP_LOG"/>




      <appender-ref ref="TRAP_LOG"/>




      <appender-ref ref="TRAP_LOG"/>


      -->

      <!-- ======================= -->
      <!-- Setup the Root category -->
      <!-- ======================= -->


      <appender-ref ref="CONSOLE"/>
      <appender-ref ref="FILE"/>


      <!-- Clustering logging -->
      <!-- Uncomment the following to redirect the org.jgroups and
      org.jboss.ha categories to a cluster.log file.














      <appender-ref ref="CLUSTER"/>



      <appender-ref ref="CLUSTER"/>

      -->

      </log4j:configuration>


      Following is the Error Log
      ------------------------------------
      09:57:22,962 ERROR [STDERR] log4j:ERROR "org.jboss.logging.util.OnlyOnceErrorHandler" was loaded by [org.jboss.system.server.NoAnnotatio
      09:57:23,008 ERROR [STDERR] log4j:ERROR Could not create an Appender. Reported error follows.
      09:57:23,008 ERROR [STDERR] java.lang.ClassCastException: org.jboss.logging.appender.DailyRollingFileAppender
      09:57:23,008 ERROR [STDERR] at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:165)
      09:57:23,008 ERROR [STDERR] at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:140)
      09:57:23,008 ERROR [STDERR] at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.java:153)
      09:57:23,008 ERROR [STDERR] at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurator.java:415)
      09:57:23,008 ERROR [STDERR] at org.apache.log4j.xml.DOMConfigurator.parseRoot(DOMConfigurator.java:384)
      09:57:23,008 ERROR [STDERR] at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:783)
      09:57:23,008 ERROR [STDERR] at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:666)
      09:57:23,008 ERROR [STDERR] at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:616)
      09:57:23,008 ERROR [STDERR] at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:602)
      09:57:23,008 ERROR [STDERR] at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:460)
      09:57:23,024 ERROR [STDERR] at org.apache.log4j.LogManager.(LogManager.java:113)
      09:57:23,024 ERROR [STDERR] at org.apache.log4j.Logger.getLogger(Logger.java:94)
      09:57:23,024 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      09:57:23,024 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      09:57:23,024 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      09:57:23,024 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      09:57:23,024 ERROR [STDERR] at org.apache.commons.logging.impl.Log4jProxy.(Log4jProxy.java:132)
      09:57:23,024 ERROR [STDERR] at org.apache.commons.logging.impl.Log4JLogger.(Log4JLogger.java:39)
      09:57:23,024 ERROR [STDERR] at sun.reflect.GeneratedConstructorAccessor11.newInstance(Unknown Source)
      09:57:23,024 ERROR [STDERR] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      09:57:23,024 ERROR [STDERR] at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
      09:57:23,024 ERROR [STDERR] at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529)
      09:57:23,024 ERROR [STDERR] at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)
      09:57:23,040 ERROR [STDERR] at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:372)
      09:57:23,040 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.getLogger(ContainerBase.java:380)
      09:57:23,040 ERROR [STDERR] at org.apache.catalina.core.StandardContext.start(StandardContext.java:4090)
      09:57:23,040 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
      09:57:23,040 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
      09:57:23,040 ERROR [STDERR] at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
      09:57:23,040 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      09:57:23,040 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      09:57:23,040 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      09:57:23,040 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      09:57:23,040 ERROR [STDERR] at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
      09:57:23,040 ERROR [STDERR] at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
      09:57:23,040 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      09:57:23,055 ERROR [STDERR] at org.apache.catalina.core.StandardContext.init(StandardContext.java:5116)
      09:57:23,055 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      09:57:23,055 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      09:57:23,055 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      09:57:23,055 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      09:57:23,055 ERROR [STDERR] at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
      09:57:23,055 ERROR [STDERR] at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
      09:57:23,055 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      09:57:23,055 ERROR [STDERR] at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:297)
      09:57:23,055 ERROR [STDERR] at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:103)
      09:57:23,055 ERROR [STDERR] at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:371)
      09:57:23,055 ERROR [STDERR] at org.jboss.web.WebModule.startModule(WebModule.java:83)
      09:57:23,055 ERROR [STDERR] at org.jboss.web.WebModule.startService(WebModule.java:61)
      09:57:23,071 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
      09:57:23,071 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
      09:57:23,071 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
      09:57:23,071 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      09:57:23,071 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      09:57:23,071 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      09:57:23,071 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      09:57:23,071 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      09:57:23,071 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      09:57:23,071 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      09:57:23,071 ERROR [STDERR] at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
      09:57:23,071 ERROR [STDERR] at $Proxy0.start(Unknown Source)
      09:57:23,071 ERROR [STDERR] at org.jboss.system.ServiceController.start(ServiceController.java:417)
      09:57:23,087 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
      09:57:23,087 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      09:57:23,087 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      09:57:23,087 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      09:57:23,087 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      09:57:23,087 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      09:57:23,087 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      09:57:23,087 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      09:57:23,087 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      09:57:23,087 ERROR [STDERR] at $Proxy30.start(Unknown Source)
      09:57:23,087 ERROR [STDERR] at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
      09:57:23,087 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      09:57:23,087 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      09:57:23,087 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      09:57:23,102 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      09:57:23,102 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      09:57:23,102 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      09:57:23,102 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      09:57:23,102 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      09:57:23,102 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:14
      09:57:23,102 ERROR [STDERR] at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
      09:57:23,102 ERROR [STDERR] at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
      09:57:23,102 ERROR [STDERR] at org.jboss.ws.server.WebServiceDeployer.start(WebServiceDeployer.java:117)
      09:57:23,102 ERROR [STDERR] at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupp
      09:57:23,102 ERROR [STDERR] at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
      09:57:23,102 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      09:57:23,102 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      09:57:23,118 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      09:57:23,118 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      09:57:23,118 ERROR [STDERR] at $Proxy31.start(Unknown Source)
      09:57:23,118 ERROR [STDERR] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
      09:57:23,118 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
      09:57:23,118 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
      09:57:23,118 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor55.invoke(Unknown Source)
      09:57:23,118 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      09:57:23,118 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      09:57:23,118 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      09:57:23,118 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      09:57:23,118 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      09:57:23,118 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      09:57:23,133 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:14
      09:57:23,133 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      09:57:23,133 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      09:57:23,133 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      09:57:23,133 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      09:57:23,133 ERROR [STDERR] at $Proxy8.deploy(Unknown Source)
      09:57:23,133 ERROR [STDERR] at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
      09:57:23,133 ERROR [STDERR] at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
      09:57:23,133 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner
      09:57:23,133 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:33
      09:57:23,133 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
      09:57:23,133 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
      09:57:23,133 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
      09:57:23,133 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      09:57:23,149 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      09:57:23,149 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      09:57:23,149 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      09:57:23,149 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      09:57:23,149 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      09:57:23,149 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      09:57:23,149 ERROR [STDERR] at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
      09:57:23,149 ERROR [STDERR] at $Proxy0.start(Unknown Source)
      09:57:23,149 ERROR [STDERR] at org.jboss.system.ServiceController.start(ServiceController.java:417)
      09:57:23,149 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
      09:57:23,149 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      09:57:23,149 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      09:57:23,149 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      09:57:23,165 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      09:57:23,165 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      09:57:23,165 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      09:57:23,165 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      09:57:23,165 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      09:57:23,165 ERROR [STDERR] at $Proxy4.start(Unknown Source)
      09:57:23,165 ERROR [STDERR] at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
      09:57:23,165 ERROR [STDERR] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
      09:57:23,165 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
      09:57:23,165 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
      09:57:23,165 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:755)
      09:57:23,165 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      09:57:23,165 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      09:57:23,165 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      09:57:23,180 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      09:57:23,180 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      09:57:23,180 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      09:57:23,180 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      09:57:23,180 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      09:57:23,180 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:14
      09:57:23,180 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      09:57:23,180 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      09:57:23,180 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      09:57:23,180 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      09:57:23,180 ERROR [STDERR] at $Proxy5.deploy(Unknown Source)
      09:57:23,180 ERROR [STDERR] at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
      09:57:23,196 ERROR [STDERR] at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
      09:57:23,196 ERROR [STDERR] at org.jboss.Main.boot(Main.java:200)
      09:57:23,196 ERROR [STDERR] at org.jboss.Main$1.run(Main.java:464)
      09:57:23,196 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
      09:57:23,196 ERROR [STDERR] log4j:ERROR Could not parse input source [org.xml.sax.InputSource@1115a61].
      09:57:23,196 ERROR [STDERR] java.lang.NullPointerException
      09:57:23,196 ERROR [STDERR] at java.util.Hashtable.put(Hashtable.java:396)
      09:57:23,196 ERROR [STDERR] at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:141)
      09:57:23,196 ERROR [STDERR] at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.java:153)
      09:57:23,196 ERROR [STDERR] at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurator.java:415)
      09:57:23,196 ERROR [STDERR] at org.apache.log4j.xml.DOMConfigurator.parseRoot(DOMConfigurator.java:384)
      09:57:23,196 ERROR [STDERR] at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:783)
      09:57:23,196 ERROR [STDERR] at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:666)
      09:57:23,212 ERROR [STDERR] at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:616)
      09:57:23,212 ERROR [STDERR] at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:602)
      09:57:23,212 ERROR [STDERR] at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:460)
      09:57:23,212 ERROR [STDERR] at org.apache.log4j.LogManager.(LogManager.java:113)
      09:57:23,212 ERROR [STDERR] at org.apache.log4j.Logger.getLogger(Logger.java:94)
      09:57:23,212 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      09:57:23,212 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      09:57:23,212 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      09:57:23,212 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      09:57:23,212 ERROR [STDERR] at org.apache.commons.logging.impl.Log4jProxy.(Log4jProxy.java:132)
      09:57:23,212 ERROR [STDERR] at org.apache.commons.logging.impl.Log4JLogger.(Log4JLogger.java:39)
      09:57:23,212 ERROR [STDERR] at sun.reflect.GeneratedConstructorAccessor11.newInstance(Unknown Source)
      09:57:23,212 ERROR [STDERR] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      09:57:23,227 ERROR [STDERR] at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
      09:57:23,227 ERROR [STDERR] at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529)
      09:57:23,227 ERROR [STDERR] at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)
      09:57:23,227 ERROR [STDERR] at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:372)
      09:57:23,227 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.getLogger(ContainerBase.java:380)
      09:57:23,227 ERROR [STDERR] at org.apache.catalina.core.StandardContext.start(StandardContext.java:4090)
      09:57:23,227 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
      09:57:23,227 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
      09:57:23,227 ERROR [STDERR] at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
      09:57:23,227 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      09:57:23,227 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      09:57:23,227 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      09:57:23,227 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      09:57:23,243 ERROR [STDERR] at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
      09:57:23,243 ERROR [STDERR] at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
      09:57:23,243 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      09:57:23,243 ERROR [STDERR] at org.apache.catalina.core.StandardContext.init(StandardContext.java:5116)
      09:57:23,243 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      09:57:23,243 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      09:57:23,243 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      09:57:23,243 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      09:57:23,243 ERROR [STDERR] at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
      09:57:23,243 ERROR [STDERR] at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
      09:57:23,243 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      09:57:23,243 ERROR [STDERR] at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:297)
      09:57:23,243 ERROR [STDERR] at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:103)
      09:57:23,243 ERROR [STDERR] at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:371)
      09:57:23,258 ERROR [STDERR] at org.jboss.web.WebModule.startModule(WebModule.java:83)
      09:57:23,258 ERROR [STDERR] at org.jboss.web.WebModule.startService(WebModule.java:61)
      09:57:23,258 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
      09:57:23,258 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
      09:57:23,258 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
      09:57:23,258 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      09:57:23,258 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      09:57:23,258 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      09:57:23,258 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      09:57:23,258 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      09:57:23,258 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      09:57:23,258 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      09:57:23,258 ERROR [STDERR] at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
      09:57:23,258 ERROR [STDERR] at $Proxy0.start(Unknown Source)
      09:57:23,274 ERROR [STDERR] at org.jboss.system.ServiceController.start(ServiceController.java:417)
      09:57:23,274 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
      09:57:23,274 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      09:57:23,274 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      09:57:23,274 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      09:57:23,274 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      09:57:23,274 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      09:57:23,274 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      09:57:23,274 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      09:57:23,274 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      09:57:23,274 ERROR [STDERR] at $Proxy30.start(Unknown Source)
      09:57:23,274 ERROR [STDERR] at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
      09:57:23,274 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      09:57:23,290 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      09:57:23,290 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      09:57:23,290 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      09:57:23,290 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      09:57:23,290 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      09:57:23,290 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      09:57:23,290 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      09:57:23,290 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:14
      09:57:23,290 ERROR [STDERR] at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
      09:57:23,290 ERROR [STDERR] at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
      09:57:23,290 ERROR [STDERR] at org.jboss.ws.server.WebServiceDeployer.start(WebServiceDeployer.java:117)
      09:57:23,290 ERROR [STDERR] at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupp
      09:57:23,290 ERROR [STDERR] at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
      09:57:23,305 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      09:57:23,305 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      09:57:23,305 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      09:57:23,305 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      09:57:23,305 ERROR [STDERR] at $Proxy31.start(Unknown Source)
      09:57:23,305 ERROR [STDERR] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
      09:57:23,305 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
      09:57:23,305 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
      09:57:23,305 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor55.invoke(Unknown Source)
      09:57:23,305 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      09:57:23,305 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      09:57:23,305 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      09:57:23,305 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      09:57:23,305 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      09:57:23,321 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      09:57:23,321 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:14
      09:57:23,321 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      09:57:23,321 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      09:57:23,321 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      09:57:23,321 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      09:57:23,321 ERROR [STDERR] at $Proxy8.deploy(Unknown Source)
      09:57:23,321 ERROR [STDERR] at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
      09:57:23,321 ERROR [STDERR] at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
      09:57:23,321 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner
      09:57:23,321 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:33
      09:57:23,321 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
      09:57:23,321 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
      09:57:23,337 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
      09:57:23,337 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      09:57:23,337 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      09:57:23,337 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      09:57:23,337 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      09:57:23,337 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      09:57:23,337 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      09:57:23,337 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      09:57:23,337 ERROR [STDERR] at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
      09:57:23,337 ERROR [STDERR] at $Proxy0.start(Unknown Source)
      09:57:23,337 ERROR [STDERR] at org.jboss.system.ServiceController.start(ServiceController.java:417)
      09:57:23,337 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
      09:57:23,337 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      09:57:23,337 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      09:57:23,352 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      09:57:23,352 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      09:57:23,352 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      09:57:23,352 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      09:57:23,352 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      09:57:23,352 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      09:57:23,352 ERROR [STDERR] at $Proxy4.start(Unknown Source)
      09:57:23,352 ERROR [STDERR] at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
      09:57:23,352 ERROR [STDERR] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
      09:57:23,352 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
      09:57:23,352 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
      09:57:23,352 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:755)
      09:57:23,352 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      09:57:23,368 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      09:57:23,368 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      09:57:23,368 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      09:57:23,368 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      09:57:23,368 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      09:57:23,368 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      09:57:23,368 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      09:57:23,368 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:14
      09:57:23,368 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      09:57:23,368 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      09:57:23,368 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      09:57:23,368 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      09:57:23,368 ERROR [STDERR] at $Proxy5.deploy(Unknown Source)
      09:57:23,383 ERROR [STDERR] at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
      09:57:23,383 ERROR [STDERR] at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
      09:57:23,383 ERROR [STDERR] at org.jboss.Main.boot(Main.java:200)
      09:57:23,383 ERROR [STDERR] at org.jboss.Main$1.run(Main.java:464)
      09:57:23,383 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)

        • 1. Re: problem with log4j in Jboss
          jaikiran pai Master

           

          "jinesh.parikh1983" wrote:
          I have log4j 1.2.9-jar in my webapplication's lib and i am not able to fuigure out the cause of my problem.



          The easiest way to get rid of the error, is to remove the log4j jar from your web application. JBoss comes with its own version of log4j jar in %JBOSS_HOME%\server\< serverName>\lib folder which results in this classloading problem.