I am having trouble getting started with my own Servlets on my own Tomcat installation. I can get the Tomcat Welcome Page, the Tomcat Manager page and the examples that come with the Tomcat distribution, but if I try do some simple examples from any of the books, for instance Head First Servlets & JSP, I get resource not found.
Specifically
http://localhost:8080/ch1/Serv1
produces
HTTP Status 404
The requested resource (/ch1/Serv1) is not available.
Some specifics.
I have Tomcat 5.5
Here is my implementation of the very first example in Head First.
I deployed this without using a .war
This is the structure under webapps
ch1/
WEB-INF/
web.xml classes/
Ch1Servlet.class
my java class:
Here is my web.xml
I haven't done anything to the Tomcat setup. I believe the server is correctly set-up to deploy .wars Here is the section of the server.xml
I also tried the "SimpleServlet" example offered from a link on the forum page http://simple.souther.us/index.html
The Tomcat Manager shows that for the ch1 and SimpleSrevlet Running is false
I have gone over every aspect I could think of and I am obviously missing something basic.
Any help will be appreciated.
[ February 21, 2007: Message edited by: Michael Zellmann ]
Specifically
http://localhost:8080/ch1/Serv1
produces
HTTP Status 404
The requested resource (/ch1/Serv1) is not available.
Some specifics.
I have Tomcat 5.5
Here is my implementation of the very first example in Head First.
I deployed this without using a .war
This is the structure under webapps
ch1/
WEB-INF/
web.xml classes/
Ch1Servlet.class
my java class:
Here is my web.xml
I haven't done anything to the Tomcat setup. I believe the server is correctly set-up to deploy .wars Here is the section of the server.xml
I also tried the "SimpleServlet" example offered from a link on the forum page http://simple.souther.us/index.html
The Tomcat Manager shows that for the ch1 and SimpleSrevlet Running is false
I have gone over every aspect I could think of and I am obviously missing something basic.
Any help will be appreciated.
[ February 21, 2007: Message edited by: Michael Zellmann ]