You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Riaz, Bob" <Bo...@Pearson.com> on 2008/05/21 17:02:58 UTC

Tomcat Users List

Hi,

This is my web.xml file. Nothing special. I'm just getting started.

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">

<web-app xmlns="http://java.sun.com/xml/ns/j2ee"	
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd
http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd"
    version="2.4"/>
    
    <web-app>
    </web-app>

- when I start Tomcat, I get the following error
org.xml.sax.SAXParseException: The markup in the document following the
root element must be well-formed.
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unkno
wn Source)
	at
org.apache.tomcat.util.digester.Digester.parse(Digester.java:1644)
	at
org.apache.catalina.startup.ContextConfig.applicationWebConfig(ContextCo
nfig.java:369)
	at
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:1062)
	at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.j
ava:261)
	at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
pport.java:117)
	at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4252
)
	at
org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:11
14)
	at
org.apache.catalina.startup.HostConfig.check(HostConfig.java:1212)
	at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:29
3)
	at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
pport.java:117)
	at
org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.j
ava:1337)
	at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.proc
essChildren(ContainerBase.java:1601)
	at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.proc
essChildren(ContainerBase.java:1610)
	at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(
ContainerBase.java:1590)
	at java.lang.Thread.run(Unknown Source)
SEVERE: Occurred at line 11 column 6

Any thoughts would be deeply appreciated.
Many thanks.

Bob
**************************************************************************** 
This email may contain material confidential to
Pearson.  If you were not an intended recipient, 
please notify the sender and delete all copies. 
We may monitor email to and from our network. 
****************************************************************************

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Tomcat Users List

Posted by "Riaz, Bob" <Bo...@Pearson.com>.
Thanks, Antonio! 

-----Original Message-----
From: Antonio Petrelli [mailto:antonio.petrelli@gmail.com] 
Sent: Wednesday, May 21, 2008 10:08 AM
To: Tomcat Users List
Subject: Re: Tomcat Users List

2008/5/21 Riaz, Bob <Bo...@pearson.com>:
> <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
>    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
> http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd
> http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd"
>    version="2.4"/>
>
>    <web-app> <---- REMOVE THIS!!!! -->
>    </web-app>

Remove the extra "<web-app>" tag.

Antonio

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


**************************************************************************** 
This email may contain material confidential to
Pearson.  If you were not an intended recipient, 
please notify the sender and delete all copies. 
We may monitor email to and from our network. 
****************************************************************************

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat Users List

Posted by Antonio Petrelli <an...@gmail.com>.
2008/5/21 Riaz, Bob <Bo...@pearson.com>:
> <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
>    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
> http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd
> http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd"
>    version="2.4"/>
>
>    <web-app> <---- REMOVE THIS!!!! -->
>    </web-app>

Remove the extra "<web-app>" tag.

Antonio

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org