2/26/02 3:45:17 PM,     "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:

>Hi.
>
>I would like to serve my servlets in another directory
>(not in $TOMCAT_HOME/webapps/examples/WEB-INF/classes).
>
>+ I created a directory called '/myfoo'.
>+ I changed $TOMCAT_HOME/conf/server.xml:
><Context path="" docBase="/myfoo" debug="0" reloadable="true" >
>+ I compiled 'HelloWorld.java' into '/myfoo'
>+ I changed startup:
>set CLASSPATH=%CLASSPATH%;/myfoo
>
>But when trying to access: http://localhost:8080/HelloWorld ,
>I get a '404 Error'.
>
>What am I doing wrong?
>

You are asking Tomcat to deploy the web app located at /myfoo as the ROOT application. 
This is the application that's accesible at http://localhost/
Instead, replace the path="" with path="/foobar" and start Tomcat again.

Your app should now be accessible at http://localhost:8080/foobar/

If HelloWorld is a servlet, then it must be listed in the file at /foo/WEB-INF/web.xml


>Regards and thank you very much.
>

Sriram


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to