aspose file tools*
The moose likes Servlets and the fly likes HTTP Status 404 The requested resource () is not available Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "HTTP Status 404 The requested resource () is not available" Watch "HTTP Status 404 The requested resource () is not available" New topic
Author

HTTP Status 404 The requested resource () is not available

Ramaswamy Narayanan O.B
Greenhorn

Joined: Oct 19, 2009
Posts: 8
Hi I started learning servlets and ran into a road block right away,
I have Tomcat 5.5 installed [at port number 8081]at the following path
C:\Tomcat
My application folder name is ch1 and is placed in the following path
C:\Tomcat\webapps\ch1
I have classes folder and WEB-INF under ch1
C:\Tomcat\webapps\ch1\classes
C:\Tomcat\webapps\ch1\WEB-INF


My web.xml code:
I have the Ch1Servlet.class and web.xml in the respective folders
C:\Tomcat\webapps\ch1\classes
C:\Tomcat\webapps\ch1\WEB-INF
Now when i enter http://localhost:8081/ch1/Serv1
I am getting
HTTP Status 404 The requested resource () is not available
I did everything right I suppose ,any help would be greatly appreciated
Thanks and Regards
Ram
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61437
    
  67

This has been covered time and time again in this forum. Please SearchFirst.

Summary: All servlets must be in a package other than the default.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: HTTP Status 404 The requested resource () is not available