tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Dunn" <rob...@insfin.com>
Subject RE: XML parsing error on file /WEB-INF/web.xml
Date Wed, 28 Aug 2002 02:08:03 GMT
Jill you are probably missing the DOCTYPE entry. Basic web.xml should look
as follows:

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

<web-app>
    <!-- .... put your entries here. The order is important - refer to DTD
url above -->
</web-app>

-----Original Message-----
From: Jill Veronda [mailto:jav@decisiondesign.com]
Sent: Wednesday, 28 August 2002 11:29 AM
To: tomcat-user@jakarta.apache.org
Subject: XML parsing error on file /WEB-INF/web.xml


On starting tomcat 4.0.4 I get the error:

2002-08-27 18:10:54 Exception initializing TldLocationsCache: XML parsing
error on file /WEB-INF/web.xml: (line 7, col 10):
Document root element "web-app", must match DOCTYPE root "web-app".

Can anyone tell me what two places the error is referring to?  I am using
Tomcat 4.0.4, Apache 1.3.12 connected using mod_jk, JDK 1.3.1 on Windows
2000 Server.


Full log file below:



2002-08-27 18:10:54 WebappLoader[/manager]: Deploying class repositories to
work directory C:\tomcat\work\Standalone\rack2\manager
2002-08-27 18:10:54 StandardManager[/manager]: Seeding random number
generator class java.security.SecureRandom
2002-08-27 18:10:54 StandardManager[/manager]: Seeding of random number
generator has been completed
2002-08-27 18:10:54 ContextConfig[/manager]: Added certificates -> request
attribute Valve
2002-08-27 18:10:54 ContextConfig[/manager]: Configured an authenticator for
method BASIC
2002-08-27 18:10:54 StandardWrapper[/manager:default]: Loading container
servlet default
2002-08-27 18:10:54 org.apache.catalina.servlets.DefaultServlet: init
2002-08-27 18:10:54 StandardWrapper[/manager:invoker]: Loading container
servlet invoker
2002-08-27 18:10:54 org.apache.catalina.servlets.InvokerServlet: init
2002-08-27 18:10:54 org.apache.jasper.servlet.JspServlet: init
2002-08-27 18:10:54 Exception initializing TldLocationsCache: XML parsing
error on file /WEB-INF/web.xml: (line 7, col 10): Document root element
"web-app", must match DOCTYPE root "web-app".
2002-08-27 18:10:54 StandardHost[rack2]: Installing web application at
context path  from URL file:C:\tomcat\webapps\ROOT
2002-08-27 18:10:54 WebappLoader[]: Deploying class repositories to work
directory C:\tomcat\work\Standalone\rack2\_
2002-08-27 18:10:54 StandardManager[]: Seeding random number generator class
java.security.SecureRandom
2002-08-27 18:10:54 StandardManager[]: Seeding of random number generator
has been completed
2002-08-27 18:10:54 ContextConfig[]: Added certificates -> request attribute
Valve
2002-08-27 18:10:54 StandardWrapper[:default]: Loading container servlet
default
2002-08-27 18:10:54 org.apache.catalina.servlets.DefaultServlet: init
2002-08-27 18:10:54 StandardWrapper[:invoker]: Loading container servlet
invoker
2002-08-27 18:10:54 org.apache.catalina.servlets.InvokerServlet: init
2002-08-27 18:10:54 org.apache.jasper.servlet.JspServlet: init
2002-08-27 18:10:54 Exception initializing TldLocationsCache: XML parsing
error on file /WEB-INF/web.xml: (line 7, col 10): Document root element
"web-app", must match DOCTYPE root "web-app".
2002-08-27 18:10:54 StandardHost[rack2]: Installing web application at
context path /tomcat-docs from URL file:C:\tomcat\webapps\tomcat-docs
2002-08-27 18:10:54 WebappLoader[/tomcat-docs]: Deploying class repositories
to work directory C:\tomcat\work\Standalone\rack2\tomcat-docs
2002-08-27 18:10:54 StandardManager[/tomcat-docs]: Seeding random number
generator class java.security.SecureRandom
2002-08-27 18:10:54 StandardManager[/tomcat-docs]: Seeding of random number
generator has been completed
2002-08-27 18:10:54 ContextConfig[/tomcat-docs]: Added certificates ->
request attribute Valve
2002-08-27 18:10:54 StandardWrapper[/tomcat-docs:default]: Loading container
servlet default
2002-08-27 18:10:54 org.apache.catalina.servlets.DefaultServlet: init
2002-08-27 18:10:54 StandardWrapper[/tomcat-docs:invoker]: Loading container
servlet invoker
2002-08-27 18:10:54 org.apache.catalina.servlets.InvokerServlet: init
2002-08-27 18:10:54 org.apache.jasper.servlet.JspServlet: init
2002-08-27 18:10:54 Exception initializing TldLocationsCache: XML parsing
error on file /WEB-INF/web.xml: (line 7, col 10): Document root element
"web-app", must match DOCTYPE root "web-app".
2002-08-27 18:10:54 StandardHost[rack2]: Installing web application at
context path /webdav from URL file:C:\tomcat\webapps\webdav
2002-08-27 18:10:54 WebappLoader[/webdav]: Deploying class repositories to
work directory C:\tomcat\work\Standalone\rack2\webdav
2002-08-27 18:10:54 StandardManager[/webdav]: Seeding random number
generator class java.security.SecureRandom
2002-08-27 18:10:54 StandardManager[/webdav]: Seeding of random number
generator has been completed
2002-08-27 18:10:55 ContextConfig[/webdav]: Added certificates -> request
attribute Valve
2002-08-27 18:10:55 StandardWrapper[/webdav:default]: Loading container
servlet default
2002-08-27 18:10:55 org.apache.catalina.servlets.DefaultServlet: init
2002-08-27 18:10:55 StandardWrapper[/webdav:invoker]: Loading container
servlet invoker
2002-08-27 18:10:55 org.apache.catalina.servlets.InvokerServlet: init
2002-08-27 18:10:55 org.apache.jasper.servlet.JspServlet: init
2002-08-27 18:10:55 Exception initializing TldLocationsCache: XML parsing
error on file /WEB-INF/web.xml: (line 7, col 10): Document root element
"web-app", must match DOCTYPE root "web-app".

--
To unsubscribe, e-mail:
<mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:tomcat-user-help@jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message