I extracted tomcat-6.0.36 zip file to c:\tomcat, now root of my
tomcat installation is c:\tomcat. I have set the CLASSPATH to
".;C:\tomcat\lib\servlet-api.jar;C:\Program Files\Java\jdk1.7.0_10"
Tomcat-6.0.36 is now running and the Home page is displayed
I created the below
Servlet
The above Servlet was successfully compiled and the resulting .class file was placed in the directory /webapps/ROOT/WEB-INF/classes The classes directory was not created when the tomcat zip file was extraxted so I created it my self.Inside WEB-INF/ directory there is a web.xml file and I didn't do anything with it.
When I tried to access the Servlet HelloWorld through the url /servlet/HelloWorld the response is HTTP Status 404 - /servlet/HelloWorld
type Status report
message /servlet/HelloWorld
description The requested resource is not available. Apache Tomcat/6.0.36
trying with the url /servlets/servlet/HelloWorld resulted in the same response as above
What must be done to get the Servlets deployed? Please tell me How to modify web.xml file in the WEB-INF directory.I have referred many questions posted even on javaranch But found no solution
Thanks