tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Bucanek <>
Subject Re: Parser Errors on startup
Date Sun, 18 Apr 2004 05:54:41 GMT
James Bucanek wrote on Saturday, April 17, 2004:
>Tomcat 4.1.xx/Mac OS X Server (BSD)
>I'm getting the following errors when I startup Tomcat, and I can't
>for the life of me figure out what to do about it:

Well, I've managed to narrow the problem down.  The <Host> I defined in server.xml isn't
the problem.  The problem is that the <Host> I defined caused other webapp's to be deployed
automatically, and it is apparently the web.xml file that is throwing the SAXParseExceptions.

I kept taking things out of the web.xml file to try and zero in on the problem.  Unfortunately,
I'm now left with the following web.xml:


Whenever I start Tomcat, or reload the web application, the following gets written to ${catalina-home}/logs/catalina.out:

Apr 17, 2004 10:45:01 PM org.apache.commons.digester.Digester error
SEVERE: Parse Error at line 1 column -1: Element type "web-app" is not declared.
org.xml.sax.SAXParseException: Element type "web-app" is not declared.
        at org.apache.crimson.parser.Parser2.error(
        at org.apache.crimson.parser.Parser2.maybeElement(
        at org.apache.crimson.parser.Parser2.parseInternal(
        at org.apache.crimson.parser.Parser2.parse(
        at org.apache.crimson.parser.XMLReaderImpl.parse(
        at org.apache.commons.digester.Digester.parse(
        at org.apache.catalina.startup.ContextConfig.applicationConfig(
        at org.apache.catalina.startup.ContextConfig.start(
        at org.apache.catalina.startup.ContextConfig.lifecycleEvent(
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(
        at org.apache.catalina.core.StandardContext.start(
        at org.apache.catalina.startup.HostConfig.checkWebXmlLastModified(

Note: If I have other declarations in web.xml, I get a SAX Exception for (basically) every
tag in the file.

They only way to eliminate this Exception is to remove the web.xml file altogether.  This
just doesn't make any sense to me.  Any insight would be appreciated.

James Bucanek       <>

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message