i am preparing for scwcd.I was trying the first
servlet example.I made a
java file Ch1Servlet.java and DD web.xml.I performed all the steps written in the book.
project1 and
tomcat both are in d directory.I compiled the program using command
javac \apache-tomcat-5.5.33\tomcat\common\lib\servlet-api.jar -d classes src/Ch1Servlet.java.then i copied the class file to web-inf/classes and xml file to web-inf.
i did everything perfectly but when i type
http://localhost:8080/ch1/Serv1 Http status 404 error is coming.it says requested resource is not available.
Tomcat is running perfectly.when i point my browser to localhost:8080 home page of apahce is coming.
what could be the probelm?It is getting very frustrating.please help me.
BIG BIG Thanks in advance