• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

404 Error - running servlet on tomcat4.0.1

 
suresh pillai
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
Iam trying to run the first example in SCWCD book by deshmukh.
Iam getting error 404 with message that
---The requested resource (/chapter01/servlet/HelloWorldServlet) is not available.
The default tomcat page gets loaded correctly. So if the tomcat is able to load the default page when I type in URL :-http://localhost:8080/index.html
Why is it not running my chapter01 example. Did any one face this problem.
I even downloaded the example from the jdiscuss.com which had additional lines in the web.xml file which were for URL mapping.
Right now the directory structure is:-
-jakarta-tomcat-4.0.1
-webapps
-chapter01
-web-inf
-classes
-HelloWorldServlet.class
Please advice me if Iam doing anything wrong.
thanks in advance
surJava
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic