tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Fowler <jjfaus...@yahoo.com>
Subject Error starting Embedded.main() in 4.1.27
Date Fri, 08 Aug 2003 17:06:28 GMT
Hi all,

I've been having trouble tracking down a problem using
the org.apache.catalina.startup.Embedded class in
4.1.27. Whenever I try to start it I get the following
stack trace.

I've been having no trouble using Embedded under
4.0.6; but I'd like to move up to 4.1 to get the
latest fixes.   In any case, I went back to try the
main method of the Embedded class to see if that still
worked and I get the same trace when running it under
4.1.27 (Embedded.main() works fine in 4.0.6). It
appears to be failing when it reads the conf/web.xml
page. It's as if the parser is configured differently
from Embedded than when running standalone Catalina (I
have no problem running Catalina standalone).

java.lang.NullPointerException
        at
org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.j
ava:252)
        at
org.apache.commons.digester.Rule.begin(Rule.java:200)
        at
org.apache.commons.digester.Digester.startElement(Digester.java:1273)

        at
org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
Sour
ce)
        at
org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown
Sourc
e)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElemen
t(Unknown Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
Dispatcher.dispatch(Unknown Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
known Source)
        at
org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
        at
org.apache.xerces.parsers.DTDConfiguration.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:1548)
        at
org.apache.catalina.startup.ContextConfig.applicationConfig(ContextCo
nfig.java:282)
        at
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:63
9)
        at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfi
g.java:243)
        at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:166)
        at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3
568)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)

        at
org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)

        at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347
)
        at
org.apache.catalina.startup.Embedded.addEngine(Embedded.java:464)
        at
org.apache.catalina.startup.Embedded.main(Embedded.java:1109)

I just can't make any sense of it. Any help would be
appreciated. If it's a config problem, the I apologize
in advance for polluting this list with that type of
issue.

Thanks,  John

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

Mime
View raw message