I am trying to set up
tomcat on my dev. server. I am having trouble getting my
servlets to work. I have tried to follow the directions for Tomcat 5 on its site, but they are kind of confusing. I also have a servlet book, but it talks about Tomcat 4. something. Is there a big difference between 4 and 5? Anyway, when I try to view a servlet, the server gives a HTTP 404 error, and says the resource is not available.
Here is what I have done:
1. linked apache and tomcat with mod_jk2. This is working fine for
jsp 2. created dir. structure tomcat\webapps\myApp\WEB-INF\classes.
3. saved and compiled servlet to classes subdirectory.
4. created web.xml descriptor in web-inf directory.
5. access the servlet at
http://localhost:8000/8080/myApp/servlet/Servlet port 8000 is the tomcat port, and 8080 is the apache port
This gives the 404 error everytime I try to access the servlet.
I am able to access the admin and management part of tomcat so I know it is working, and my .jsp pages also work, just not the servlets.
Can anyone help???
Thanks
[ October 25, 2004: Message edited by: Adam Dear ]