tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Godwin Orakwue" <gorak...@msn.com>
Subject web.xml Validation Error on tomcat3.3.1
Date Wed, 21 Aug 2002 16:33:32 GMT
Hi,

            I tested my web apps with tomcat 3.2 but when I deploy my
application with tomcat 3.3.1, I got the following error on startup:

 

[“web.xml: Error org.xml.sax.SAXParseException: Element “web-app” does
not allow “servlet” here]

 

Any idea on what is causing this error message?  My web.xml file
follows:

 

Thanks,

Godwin

 

 

<?xml version="1.0" encoding="ISO-8859-1"?>

 

<!DOCTYPE web-app

    PUBLIC "-//Sun Microsystems, Inc.//DTD WebApplication 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">

 

 

 

<web-app>

  <display-name>

    UPU Web Application

  </display-name>

 

  <description>

    This is a simple web application with a source code organization 

    based on the recommendations of the Application Developer's Guide.

  </description>

 

    <context-param>

      <param-name>driver</param-name>

      <param-value>org.gjt.mm.mysql.Driver</param-value>

    </context-param>

 

    <context-param>

      <param-name>db</param-name>

      <param-value>upu-usa-canada_org_1</param-value>

    </context-param>

 

     <context-param>

      <param-name>host</param-name>

      <param-value>mysql1.dca1.superb.net</param-value>

    </context-param>

 

     <context-param>

      <param-name>strUrl</param-name>

       <param-value>

       jdbc:mysql://mysql1.dca1.superb.net/upu-usa-canada_org_1

      </param-value>

     </context-param>

 

     <context-param>

      <param-name>username</param-name>

      <param-value>upu-usa-canada_1</param-value>

     </context-param>

 

     <context-param>

      <param-name>CodeFile</param-name>

      <param-value>/opt3/home4/upu-usa-canada/</param-value>

    </context-param> 

 

     <context-param>

      <param-name>Debug</param-name>

      <param-value>0</param-value>

    </context-param> 

 

 

 

 <servlet>

 

    <servlet-name>

      myMemberInfo

    </servlet-name>

 

    <servlet-class>

      MemberInfo

    </servlet-class>

 

  </servlet>

 

  <servlet>

    <servlet-name>

      myMember

    </servlet-name>

 

    <servlet-class>

      Member

    </servlet-class>

 

  </servlet>

 

 

 

 <servlet>

 

    <servlet-name>

      myFinancialInfo

    </servlet-name>

 

    <servlet-class>

      FinancialInfo

    </servlet-class>

 

  </servlet>

 

 

 <servlet>

 

    <servlet-name>

      myFinancial

    </servlet-name>

 

    <servlet-class>

      Financial

    </servlet-class>

 

  </servlet>

 

 

 <servlet>

 

    <servlet-name>

      Login

    </servlet-name>

 

    <servlet-class>

      Login

    </servlet-class>

 

  </servlet>

 

 <servlet>

 

    <servlet-name>

      LoginHandler

    </servlet-name>

 

    <servlet-class>

      LoginHandler

    </servlet-class>

 

  </servlet>

 

 <servlet> 

 <servlet-name>ChangePassword</servlet-name>

 <servlet-class>ChangePassword</servlet-class>

 </servlet>

 

 <servlet> 

 <servlet-name>PwdHandler</servlet-name>

 <servlet-class>PwdHandler</servlet-class>

 </servlet>

 

 

 

 

   <servlet>

    <servlet-name>

      JoinUPU

    </servlet-name>

 

    <servlet-class>

      JoinUPU

    </servlet-class> 

 

    <init-param>

      <param-name>driver</param-name>

      <param-value>org.gjt.mm.mysql.Driver</param-value>

      <description>The JDBC Driver</description>

    </init-param>

 

    <init-param>

      <param-name>db</param-name>

      <param-value>upu</param-value>

      <description>Database</description>

    </init-param>

 

     <init-param>

      <param-name>host</param-name>

      <param-value>localhost</param-value>

      <description>The database host</description>

    </init-param>

 

     <init-param>

      <param-name>strUrl</param-name>

      <param-value>jdbc:mysql://localhost/upu</param-value>

      <description>The URL String</description>

     </init-param>

 

     <init-param>

      <param-name>username</param-name>

      <param-value>godwin</param-value>

      <description>The username</description>

     </init-param>

 

     <init-param>

      <param-name>Code</param-name>

      <param-value>upu</param-value>

      <description>The password</description>

    </init-param> 

  </servlet>

 

 <servlet-mapping>

 

    <servlet-name>

      JoinUPU

    </servlet-name>

 

  <url-pattern>

    /join

  </url-pattern>

 

  </servlet-mapping>

 

 

 

</web-app>


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message