You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Randy Layman <ra...@aswethink.com> on 2002/02/18 18:26:15 UTC

RE: Trouble with my web.xml?

	You have a servlet-mapping before the last servlet.  With Tomcat 4
(and maybe 3.3) you have to have the elements in the right order.

	Randy

> -----Original Message-----
> From: Greer, Darren (MED) [mailto:Darren.Greer@med.ge.com]
> Sent: Monday, February 18, 2002 1:09 PM
> To: 'tomcat-user@jakarta.apache.org'
> Subject: Trouble with my web.xml?
> 
> 
> Hey all.  While trying to run my application I am getting the 
> following
> err:
> #################
> org.xml.sax.SAXParseException: The content of element type "web-app"
> must match
> "(icon?,display-name?,description?,distributable?,context-para
> m*,filter*
> ,filter-mapping*,listener*,servlet*,servlet-mapping*,session-c
> onfig?,mim
> e-mapping*,welcome-file-list?,error-page*,taglib*,resource-env
> -ref*,reso
> urce-ref*,security-constraint*,login-config?,security-role*,en
> v-entry*,e
> jb-ref*,ejb-local-ref*)".
> #################
>  
> Here is my web.xml:
>  
> ##################
> <?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
> <http://java.sun.com/dtd/web-app_2_3.dtd> ">
>  
> <web-app>
>         <display-name>Nod.to</display-name>
>         <description>Individuality</description>
>         <context-param>
>                 <param-name>Webmaster</param-name>
>                 <param-value>Webmaster@nod.to</param-value>
>         </context-param>
>         <servlet>
>                 <servlet-name>dbConnect</servlet-name>
>                 
> <servlet-class>to.nod.servlets.dbConnect</servlet-class>
>                 <load-on-startup>1</load-on-startup>
>         </servlet>
>  
>         <servlet>
>                 <servlet-name>linksPortlet</servlet-name>
>  
> <servlet-class>to.nod.servlets.linksPortlet</servlet-class>
>         </servlet>
>         <servlet-mapping>
>                 <servlet-name>linksPortlet</servlet-name>
>                 <url-pattern>/links</url-pattern>
>         </servlet-mapping>
>  
>         <servlet>
>                 <servlet-name>Nod</servlet-name>
>                 <servlet-class>to.nod.servlets.Nod</servlet-class>
>         </servlet>
>         <servlet-mapping>
>                 <servlet-name>Nod</servlet-name>
>                 <url-pattern>/app</url-pattern>
>         </servlet-mapping>
> </web-app>
> ##################
>  
> As far as I know, everything I have in my web.xml is setup correctly.
> Any insight would be great,
>  
> Darren
> 

--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>