Editing the classpath isn't advisable. Leads to various problems. Also are
you using unix or windows? Check your docBase. Is "myfoo" under the webapps
directory? If it is, then you do not require the leading "/". Also check
the web.xml for mappings to HelloWorld.
Thanks.
RS





tomcat on 02/26/2002 04:15:17 AM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:   "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
cc:

Subject:  Tomcat: Servlets in another directory

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?

Regards and thank you very much.

---------------------------------------------------------
This mail was sent through TJGROUP Webmail: http://webmail.tjgroup.dk


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









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

Reply via email to