tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <Craig.McClana...@eng.sun.com>
Subject Re: I can not set the web.xml of a new conext in jakarta-tomcat-4.0-b1
Date Sat, 03 Feb 2001 19:24:37 GMT
INTEGRITY Ügyfélszolgálat wrote:

> I don't known why don't work cause I tried to copy examples context
>  to an another name, but it not worked.
> I tried to create a context in tomcat 3.2.1 (it works), and copy
>  to tomcat 4.0b1 (it doesn't work, is is the owntest context).
>
> Anybody knows why?
>

Did you restart Tomcat 4.0 after setting this application up?  What URL
did you try?  What response did you get?  What response did you expect?

Craig McClanahan


>
> Here my owntest (It works in 3.2.1 but it doesn't in 4.0b1!):
>
> I create a new context in server.xml:
>         <Context path="/owntest"
>                  docBase="owntest"
>                  crossContext="false"
>                  debug="0"
>                  reloadable="true" >
>         </Context>
>
> I set webapps/owntest/:
>
> Web-inf/
>  classes/SnoopServlet.class
>  web.xml
>
> 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>
>             snoop
>         </servlet-name>
>         <servlet-class>
>             SnoopServlet
>         </servlet-class>
>     </servlet>
>     <servlet-mapping>
>         <servlet-name>
>             snoop
>         </servlet-name>
>         <url-pattern>
>             /snoop
>         </url-pattern>
>     </servlet-mapping>
> </web-app>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, email: tomcat-user-help@jakarta.apache.org


Mime
View raw message