Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error 404: Using Tomcat

 
Madhu SK
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there!
try this one http://localhost:8080/servlet/YOUR SERVLET NAME HERE
hope it work
Bashir
 
Bosun Bello
Ranch Hand
Posts: 1511
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if it's in a package, try this http://localhost:8080/servlet/yourpackagename.yourservletname
------------------
Bosun
SCJP for the Java� 2 Platform
 
Madhu SK
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic