web.xml for webapps/manager/WEB-INF below:

Thanks for the help in advance!


<?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>

  <!-- Define the Manager Servlet
       Change servlet-class to: org.apache.catalina.servlets.HTMLManagerServlet
       to get a Servlet with a more intuitive HTML interface, don't change if you
       have software that is expected to parse the output from ManagerServlet
       since they're not compatible.
   -->
  <servlet>
    <servlet-name>Manager</servlet-name>
    <servlet-class>org.apache.catalina.servlets.ManagerServlet</servlet-class>
    <init-param>
      <param-name>debug</param-name>
      <param-value>2</param-value>
    </init-param>
  </servlet>

  <!-- Define the Manager Servlet Mapping -->
  <servlet-mapping>
    <servlet-name>Manager</servlet-name>
    <url-pattern>/*</url-pattern>
  </servlet-mapping>

  <!-- Define a Security Constraint on this Application -->
  <security-constraint>
    <web-resource-collection>
      <web-resource-name>Entire Application</web-resource-name>
      <url-pattern>/*</url-pattern>
    </web-resource-collection>
    <auth-constraint>
       <!-- NOTE:  This role is not present in the default users file -->
       <role-name>manager</role-name>
    </auth-constraint>
  </security-constraint>

  <!-- Define the Login Configuration for this Application -->
  <login-config>
    <auth-method>BASIC</auth-method>
    <realm-name>Tomcat Manager Application</realm-name>
  </login-config>

</web-app>


-----Original Message-----
From: Ben Walding [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 27, 2002 6:41 PM
To: Tomcat Users List
Subject: Re: XML parsing error on file /WEB-INF/web.xml


Posting your web.xml would make it easier!

Jill Veronda wrote:

>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:[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>
>  
>




--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to