tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Hemingway" <dbh...@kooee.com.au>
Subject Re: configuring two servlets into my application
Date Tue, 07 Jan 2003 12:46:09 GMT
Dionisio,

The child <servlet> must be inside a <web-app> element. Is this the case in
your setup? You can verify your web.xml is of the correct type by looking at
the DTD, this can be found here:
http://java.sun.com/j2ee/dtds/web-app_2_2.dtd

regards,
Dave


----- Original Message -----
From: "Dionisio Ruiz de Zarate" <dionisio@tinieblas.com>
To: <tomcat-user@jakarta.apache.org>
Sent: Tuesday, January 07, 2003 11:31 PM
Subject: configuring two servlets into my application


> i am tryin of configuring two test servlets in mytomcat application but
when
> i try to declare them into the web.xml appears error:
> This file is not valid.
> unexpected child element 'servlet'
>
> the configuration is:
> <servlet>
> <servlet-name>HelloWorld</servlet-name>
> <servlet-class>HelloWorld</servlet-class>
> </servlet>
> <servlet-mapping>
> <servlet-name>HelloWorld</servlet-name>
> <url-pattern>HelloWorld</url-pattern>
> </servlet-mapping>
> <servlet>
> <servlet-name>HolasAlMundo</servlet-name>
> <servlet-class>HolasAlMundo</servlet-class>
> </servlet>
> <servlet-mapping>
> <servlet-name>HolasAlMundo</servlet-name>
> <url-pattern>HolasAlMundo</url-pattern>
> </servlet-mapping>
>
>
>
> --
> 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