Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HTTP Status 404 The requested resource () is not available

 
Ramaswamy Narayanan O.B
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64700
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic