File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes SEVERE: Parse error in application web.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "SEVERE: Parse error in application web.xml" Watch "SEVERE: Parse error in application web.xml" New topic

SEVERE: Parse error in application web.xml

Peter Matthews

Joined: Nov 07, 2005
Posts: 21
SEVERE: Parse error in application web.xml
org.xml.sax.SAXParseException: Attribute name "mapping" associated with an element type "servlet" must be followed by the ' = ' character.
at Source)
at org.apache.tomcat.util.digester.Digester.parse(
at org.apache.catalina.startup.ContextConfig.applicationWebConfig(
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.core.ContainerBase.addChildInternal(
at org.apache.catalina.core.ContainerBase.addChild(
at org.apache.catalina.core.StandardHost.addChild(
at org.apache.catalina.startup.HostConfig.deployDirectory(
at org.apache.catalina.startup.HostConfig.deployDirectories(
at org.apache.catalina.startup.HostConfig.deployApps(
at org.apache.catalina.startup.HostConfig.start(
at org.apache.catalina.startup.HostConfig.lifecycleEvent(
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(
at org.apache.catalina.core.ContainerBase.start(
at org.apache.catalina.core.StandardHost.start(
at org.apache.catalina.core.ContainerBase.start(
at org.apache.catalina.core.StandardEngine.start(
at org.apache.catalina.core.StandardService.start(
at org.apache.catalina.core.StandardServer.start(
at org.apache.catalina.startup.Catalina.start(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(
at org.apache.catalina.startup.Bootstrap.main(


Not sure what to do to cure this error - its in the catalina log file. I think this is the reason I am getting a Request error 404! Any help would be very appreciated. Thanks. Pete. Btw - I am following the Beer-v1 example in Head First - Servlets and JSP
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63548

I'd say that the message

org.xml.sax.SAXParseException: Attribute name "mapping" associated with an element type "servlet" must be followed by the ' = ' character.

is fairly clear. Inspect the servlet elements in your web.xml for syntax errors.
[ November 07, 2005: Message edited by: Bear Bibeault ]

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: SEVERE: Parse error in application web.xml
jQuery in Action, 3rd edition