I am trying to run my first servlet program from Professional JAVA XML book by Wrox. It is from page 471-473 and is named MyServlet.
It gives me an error:
type Status report
message /projavaxml/chapter12/hello/servlet/MyServlet
description The requested resource (/projavaxml/chapter12/hello/servlet/MyServlet) is not available.
I have made some changes..Like,
changing the DTD file from web.xml to:
http://java.sun.com/dtd/web-app_2_3.dtd
Also I have added the following in the server.xml in TOMCAT HOME directory.
<Context path="/projavaxml/chapter12/hello"
docBase="C:/projavaxml/Chapter12/webapps/hello"
debug="1"
reloadable="true">
</Context>
Also, I added the servlet-api.jar in the TOMCAT HOME / common/lib directory..Still I m getting the same error..Please help
thanks for your help