#34 Error starting with Tomcat 5.0.28

open
nobody
None
5
2014-08-26
2006-08-16
Cord Awtry
No

I get the following error when starting my app using
Tomcat 5.0.28 from the commandline.

I have an infrared-log4j.xml in the classpath.

INFO: Processing Context configuration file URL
file:C:\dev\Tomcat5_0_28
\conf\Catalina\localhost\infrared.xml
log4j:ERROR Could not create an Appender. Reported
error follows.
java.lang.ClassCastException
at
net.sf.infrared.org.apache.log4j.xml.DOMConfigurator.p
arseAppender(DOMConfigurator.java:165)
at
net.sf.infrared.org.apache.log4j.xml.DOMConfigurator.f
indAppenderByName(DOMConfigurator.java:140)
at
net.sf.infrared.org.apache.log4j.xml.DOMConfigurator.f
indAppenderByReference(DOMConfigurator.java:153)
at
net.sf.infrared.org.apache.log4j.xml.DOMConfigurator.p
arseChildrenOfLoggerElement(DOMConfigurator.java:415)
at
net.sf.infrared.org.apache.log4j.xml.DOMConfigurator.p
arseCategory(DOMConfigurator.java:335)
at
net.sf.infrared.org.apache.log4j.xml.DOMConfigurator.p
arse(DOMConfigurator.java:781)
at
net.sf.infrared.org.apache.log4j.xml.DOMConfigurator.d
oConfigure(DOMConfigurator.java:666)
at
net.sf.infrared.org.apache.log4j.xml.DOMConfigurator.d
oConfigure(DOMConfigurator.java:616)
at
net.sf.infrared.org.apache.log4j.xml.DOMConfigurator.d
oConfigure(DOMConfigurator.java:602)
at
net.sf.infrared.org.apache.log4j.xml.DOMConfigurator.c
onfigure(DOMConfigurator.java:697)
at
net.sf.infrared.base.util.LoggingFactory.<clinit>
(LoggingFactory.java:70)
at net.sf.infrared.agent.MonitorFactory.init
(MonitorFactory.java:119)
at
net.sf.infrared.agent.MonitorFactory.<clinit>
(MonitorFactory.java:52)
at
net.sf.infrared.aspects.aj.InfraREDBaseAspect.ajc$arou
nd$net_sf_infrared_aspects_aj_InfraREDBaseAspect$1
$4802
975c(InfraREDBaseAspect.aj:57)
at org.apache.struts.action.ActionServlet.init
(ActionServlet.java:1)
at javax.servlet.GenericServlet.init
(GenericServlet.java:211)
at
org.apache.catalina.core.StandardWrapper.loadServlet
(StandardWrapper.java:1029)
at
org.apache.catalina.core.StandardWrapper.load
(StandardWrapper.java:862)
at
org.apache.catalina.core.StandardContext.loadOnStartup
(StandardContext.java:4013)
at
org.apache.catalina.core.StandardContext.start
(StandardContext.java:4357)
at
org.apache.catalina.core.ContainerBase.addChildInterna
l(ContainerBase.java:823)
at
org.apache.catalina.core.ContainerBase.addChild
(ContainerBase.java:807)
at
org.apache.catalina.core.StandardHost.addChild
(StandardHost.java:595)
at
org.apache.catalina.core.StandardHostDeployer.addChild
(StandardHostDeployer.java:903)
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:324)
at
org.apache.commons.beanutils.MethodUtils.invokeMethod
(MethodUtils.java:216)
at org.apache.commons.digester.SetNextRule.end
(SetNextRule.java:256)
at org.apache.commons.digester.Rule.end
(Rule.java:276)
at
org.apache.commons.digester.Digester.endElement
(Digester.java:1058)
at
org.apache.catalina.util.CatalinaDigester.endElement
(CatalinaDigester.java:76)
at
org.apache.xerces.parsers.AbstractSAXParser.endElement
(Unknown Source)
at
org.apache.xerces.parsers.AbstractXMLDocumentParser.em
ptyElement(Unknown Source)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElemen
t(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.
scanStartElement(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentScannerImpl$ContentD
ispatcher.scanRootElementHook(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$
FragmentContentDispatcher.dispatch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.
scanDocument(Unknown Source)
at
org.apache.xerces.parsers.XML11Configuration.parse
(Unknown Source)
at
org.apache.xerces.parsers.XML11Configuration.parse
(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse
(Unknown Source)
at
org.apache.xerces.parsers.AbstractSAXParser.parse
(Unknown Source)
at org.apache.commons.digester.Digester.parse
(Digester.java:1567)
at
org.apache.catalina.core.StandardHostDeployer.install
(StandardHostDeployer.java:488)
at
org.apache.catalina.core.StandardHost.install
(StandardHost.java:863)
at
org.apache.catalina.startup.HostConfig.deployDescripto
rs(HostConfig.java:483)
at
org.apache.catalina.startup.HostConfig.deployApps
(HostConfig.java:427)
at
org.apache.catalina.startup.HostConfig.start
(HostConfig.java:983)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent
(HostConfig.java:349)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycl
eEvent(LifecycleSupport.java:119)
at
org.apache.catalina.core.ContainerBase.start
(ContainerBase.java:1091)
at org.apache.catalina.core.StandardHost.start
(StandardHost.java:789)
at
org.apache.catalina.core.ContainerBase.start
(ContainerBase.java:1083)
at
org.apache.catalina.core.StandardEngine.start
(StandardEngine.java:478)
at
org.apache.catalina.core.StandardService.start
(StandardService.java:480)
at
org.apache.catalina.core.StandardServer.start
(StandardServer.java:2313)
at org.apache.catalina.startup.Catalina.start
(Catalina.java:556)
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:324)
at org.apache.catalina.startup.Bootstrap.start
(Bootstrap.java:287)
at org.apache.catalina.startup.Bootstrap.main
(Bootstrap.java:425)
log4j:ERROR Could not parse input source
[org.xml.sax.InputSource@12a6e85].
java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:393)
at
net.sf.infrared.org.apache.log4j.xml.DOMConfigurator.f
indAppenderByName(DOMConfigurator.java:141)
at
net.sf.infrared.org.apache.log4j.xml.DOMConfigurator.f
indAppenderByReference(DOMConfigurator.java:153)
at
net.sf.infrared.org.apache.log4j.xml.DOMConfigurator.p
arseChildrenOfLoggerElement(DOMConfigurator.java:415)
at
net.sf.infrared.org.apache.log4j.xml.DOMConfigurator.p
arseCategory(DOMConfigurator.java:335)
at
net.sf.infrared.org.apache.log4j.xml.DOMConfigurator.p
arse(DOMConfigurator.java:781)
at
net.sf.infrared.org.apache.log4j.xml.DOMConfigurator.d
oConfigure(DOMConfigurator.java:666)
at
net.sf.infrared.org.apache.log4j.xml.DOMConfigurator.d
oConfigure(DOMConfigurator.java:616)
at
net.sf.infrared.org.apache.log4j.xml.DOMConfigurator.d
oConfigure(DOMConfigurator.java:602)
at
net.sf.infrared.org.apache.log4j.xml.DOMConfigurator.c
onfigure(DOMConfigurator.java:697)
at
net.sf.infrared.base.util.LoggingFactory.<clinit>
(LoggingFactory.java:70)
at net.sf.infrared.agent.MonitorFactory.init
(MonitorFactory.java:119)
at
net.sf.infrared.agent.MonitorFactory.<clinit>
(MonitorFactory.java:52)
at
net.sf.infrared.aspects.aj.InfraREDBaseAspect.ajc$arou
nd$net_sf_infrared_aspects_aj_InfraREDBaseAspect$1
$4802
975c(InfraREDBaseAspect.aj:57)
at org.apache.struts.action.ActionServlet.init
(ActionServlet.java:1)
at javax.servlet.GenericServlet.init
(GenericServlet.java:211)
at
org.apache.catalina.core.StandardWrapper.loadServlet
(StandardWrapper.java:1029)
at
org.apache.catalina.core.StandardWrapper.load
(StandardWrapper.java:862)
at
org.apache.catalina.core.StandardContext.loadOnStartup
(StandardContext.java:4013)
at
org.apache.catalina.core.StandardContext.start
(StandardContext.java:4357)
at
org.apache.catalina.core.ContainerBase.addChildInterna
l(ContainerBase.java:823)
at
org.apache.catalina.core.ContainerBase.addChild
(ContainerBase.java:807)
at
org.apache.catalina.core.StandardHost.addChild
(StandardHost.java:595)
at
org.apache.catalina.core.StandardHostDeployer.addChild
(StandardHostDeployer.java:903)
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:324)
at
org.apache.commons.beanutils.MethodUtils.invokeMethod
(MethodUtils.java:216)
at org.apache.commons.digester.SetNextRule.end
(SetNextRule.java:256)
at org.apache.commons.digester.Rule.end
(Rule.java:276)
at
org.apache.commons.digester.Digester.endElement
(Digester.java:1058)
at
org.apache.catalina.util.CatalinaDigester.endElement
(CatalinaDigester.java:76)
at
org.apache.xerces.parsers.AbstractSAXParser.endElement
(Unknown Source)
at
org.apache.xerces.parsers.AbstractXMLDocumentParser.em
ptyElement(Unknown Source)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElemen
t(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.
scanStartElement(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentScannerImpl$ContentD
ispatcher.scanRootElementHook(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$
FragmentContentDispatcher.dispatch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.
scanDocument(Unknown Source)
at
org.apache.xerces.parsers.XML11Configuration.parse
(Unknown Source)
at
org.apache.xerces.parsers.XML11Configuration.parse
(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse
(Unknown Source)
at
org.apache.xerces.parsers.AbstractSAXParser.parse
(Unknown Source)
at org.apache.commons.digester.Digester.parse
(Digester.java:1567)
at
org.apache.catalina.core.StandardHostDeployer.install
(StandardHostDeployer.java:488)
at
org.apache.catalina.core.StandardHost.install
(StandardHost.java:863)
at
org.apache.catalina.startup.HostConfig.deployDescripto
rs(HostConfig.java:483)
at
org.apache.catalina.startup.HostConfig.deployApps
(HostConfig.java:427)
at
org.apache.catalina.startup.HostConfig.start
(HostConfig.java:983)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent
(HostConfig.java:349)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycl
eEvent(LifecycleSupport.java:119)
at
org.apache.catalina.core.ContainerBase.start
(ContainerBase.java:1091)
at org.apache.catalina.core.StandardHost.start
(StandardHost.java:789)
at
org.apache.catalina.core.ContainerBase.start
(ContainerBase.java:1083)
at
org.apache.catalina.core.StandardEngine.start
(StandardEngine.java:478)
at
org.apache.catalina.core.StandardService.start
(StandardService.java:480)
at
org.apache.catalina.core.StandardServer.start
(StandardServer.java:2313)
at org.apache.catalina.startup.Catalina.start
(Catalina.java:556)
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:324)
at org.apache.catalina.startup.Bootstrap.start
(Bootstrap.java:287)
at org.apache.catalina.startup.Bootstrap.main
(Bootstrap.java:425)

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks