Servlets are not accessible but jsps are accessible
Narasimha Rao B.
posted 11 years ago
Please help me out resolving the below issues - Just now i have installed tomcat 5.0, through the url i couldn't access any of my own servlets and also examples that were installed through tomcat installation but through the url i could access the jsps. Here is the tree structure of my servlet class file, Installation_directory/webapps/ch1/WEB-INF/classes/Ch1Servlet.class In the URL i am giving the path as, http://localhost:8080/ch1/Ch1Servlet I am getting the error as "The requested resource (/ch1/Ch1Servlet) is not available." Even this problem persist with the tomcat examples, One of the servlet class is located at -- instal_directoty\webapps\servlets-examples\WEB-INF\classes\HelloWorldExample I am trying to access this servlet through - http://localhost:8080/servlets-examples/HelloWorldExample but i am getting the error - "The requested resource (/servlets-examples/HelloWorldExample) is not available." But i could access successfully jsps, please help me out in resolving the issue. Thanks in Advance,