i have a webapp that doesn't start when i start tomcat 4.0.3.  when i look 
at the catalina.out log i get a:

org.xml.sax.SAXParseException: The content of element type "web-app" must 
match 
"(icon?,display-name?,description?,distributable?,context-param*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*)".

this is the web.xml

<?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>
       <servlet>
          <servlet-name>
              NetworkStatus
          </servlet-name>
          <servlet-class>
              network.NetworkStatus
          </servlet-class>
        </servlet>
        <servlet-mapping>
            <servlet-name>
               NetworkStatus
            </servlet-name>
            <url-pattern>
                /NetworkStatus
            </url-pattern>
    </servlet-mapping>
     <security-constraint>
       <web-resource-collection>
          <web-resource-name>Protected Area</web-resource-name>
          <!-- Define the context-relative URL(s) to be protected -->
          <url-pattern>/statusmenu.html</url-pattern>
          <!-- If you list http methods, only those methods are protected -->
          <http-method>DELETE</http-method>
          <http-method>GET</http-method>
          <http-method>POST</http-method>
          <http-method>PUT</http-method>
       </web-resource-collection>
       <auth-constraint>
          <!-- Anyone with one of the listed roles may access this area -->
          <role-name>user1</role-name>
          <role-name>user1</role-name>
       </auth-constraint>
     </security-constraint>
   <!-- Default login configuration uses BASIC authentication -->
     <login-config>
       <auth-method>BASIC</auth-method>
       <realm-name>Example Basic Authentication Area</realm-name>
     </login-config>
</web-app>

Peter


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to