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" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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:[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