This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Page 30 example servlet showing 404 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Page 30 example servlet showing 404" Watch "Page 30 example servlet showing 404" New topic
Author

Page 30 example servlet showing 404

achuthan mukundarajan
Ranch Hand

Joined: May 30, 2012
Posts: 79
I am reading Head first JSP and servlets for SCWCD. I couldnt get the servlet example on page 30 to run.
The servlet:






The web.xml



The book tells you to to create a directory webapps in the tomcat directory and within which you have a directory called ch1 which has the WEB-INF directory. My tomcat port number is 9999 . When i try to run http://localhost:9999/ch1/Serv1 i get 404. Please help
Frits Walraven
Creator of Enthuware JWS+ V6
Bartender

Joined: Apr 07, 2010
Posts: 1629
    
  23

Did you check this thread?

Regards,
Frits
achuthan mukundarajan
Ranch Hand

Joined: May 30, 2012
Posts: 79
Changing the iso code to ISO-8859-1 helped...Error in the book
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Page 30 example servlet showing 404
 
Similar Threads
404 Error
1st servlet example
http status 404 servlet
new to tomcat
HTTP Status 404 The requested resource () is not available