tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rseque...@transentric.com
Subject Re: Tomcat: Servlets in another directory
Date Tue, 26 Feb 2002 14:40:30 GMT

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" <tomcat-user@jakarta.apache.org>

To:   "tomcat-user@jakarta.apache.org" <tomcat-user@jakarta.apache.org>
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:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>









--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message