LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   how can i run my helloworld servlet in apache-tomcat-mod_jk? (https://www.linuxquestions.org/questions/linux-software-2/how-can-i-run-my-helloworld-servlet-in-apache-tomcat-mod_jk-26571/)

doublefailure 07-26-2002 01:46 AM

how can i run my helloworld servlet in apache-tomcat-mod_jk?
 
i copied
helloworld.java helloworld.class
to
jakarta-tomcat-3.3.1/webapps/examples/WEB-INF/classes

i can use example servlets in that directory by accessing localhost/examples/servlets
and click links..(but if i type them in browser address bar, they dont' work either..404 not found error)

what setting am i missing?
thank you

gballsch 04-28-2003 08:33 AM

Servlets in Tomcat
 
I think that I have a related question - I have my apache/tomcat install working fine but would like to have various compiled servlets live in a directory like ~/webapps/servlets. When I add servlets there they do not work, but they do work if I put them in the ~/examples/WEB-INF/classes and access via /examples/servlets. Do I need to define this new directory so that Tomcat will recognize? Do I have to install and promote each new servlet application to the Tomcat container in something like server.xml?
Thanks -


All times are GMT -5. The time now is 07:32 AM.