At 11:17 PM 3/16/02 -0500, you wrote:
>Hello All!  I am a new to Tomcat and have a question.  I downloaded and 
>installed Tomcat 4.  I think it is working correctly.  I can see the 
>welcome page and I can execute the sample Servlets.  However, I can't 
>figure out where I should put my Servlet classes.  I tired 
>$CATALINA_HOME/web-apps, but I just got an error.  Where do I have to put 
>classes?  And how can I change the directory?
>
>Thanks in advance.

classes go in .../jakarta-tomcat-4.0.1/webapps/ROOT/WEB-INF/classes. try 
putting them there first. i.e. put Foo.class in the classes directory. 
access them by http://localhost:8080/servlet/Foo

look at the examples in webapps/examples and the web.xml file in 
webapps/examples/WEB_INF and the server.xml in 
.../jakarta-tomcat-4.0.1/conf to see how to put stuff in another directory.

hth

---
ray tayek http://home.attbi.com/~rtayek/
actively seeking telecommuting work
orange county java users group http://www.ocjug.org/
hate spam? http://samspade.org/ssw/


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

Reply via email to