This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes Error 404:  Using Tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Error 404:  Using Tomcat" Watch "Error 404:  Using Tomcat" New topic
Author

Error 404: Using Tomcat

Madhu SK
Greenhorn

Joined: May 07, 2001
Posts: 12
Hi,
I have Tomcat installed on my machine. When I try to run the BookStore application given in Sun's tutorial, it gives No Found (404) error. The command I used to invoke the servlet is: http://localhost:8080/bookstore/enter
I am able to see the Tomcat's home page when I type http://localhost:8080. But when I try to run any other application, I get the 404 error. What should I do?
Thanks,
Madhu
Bashir Mirzad
Greenhorn

Joined: Nov 28, 2001
Posts: 25
Hi there!
try this one http://localhost:8080/servlet/YOUR SERVLET NAME HERE
hope it work
Bashir
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
if it's in a package, try this http://localhost:8080/servlet/yourpackagename.yourservletname
------------------
Bosun
SCJP for the Java� 2 Platform


Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
Madhu SK
Greenhorn

Joined: May 07, 2001
Posts: 12
Hi,
I am able to run the example now. Earlier the problem was, I put the .war file in the webapps directory AFTER starting the Tomcat.
Thanks
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Error 404: Using Tomcat
 
Similar Threads
Tomcat deployment environment
newbie: troubleshooting apache/tomcat win98 environment
Dynamic content problem with Tomcat 6.x
error with jakarta tomcat connector
How to set up JSDK2.1 server