File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes Simple Error..404 Error..But no solution Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Simple Error..404 Error..But no solution" Watch "Simple Error..404 Error..But no solution" New topic

Simple Error..404 Error..But no solution

sameer khazi

Joined: Sep 05, 2008
Posts: 28
Hi All, I am working on Servlet and JSP using the HF SERVLET AND JSP book. I have almost followed the same way as described in the book to configure tomcat and the required PATH and CLASSPATH variables.

When i get to run the simple 'form.html' page on the browser. i always get the 404 error.
i am using tomcat 5.5 and jdk 1.5.0_16. Even worked out the same example using tomcat 6 and jdk 1.6.0_06 the problem remains the same.

I know the answer is simple but i don't know as where it lies. i have no one either with me to help me out.

Please if this works out, then the entire path becomes easy.

Thank you
mark walter

Joined: Jun 20, 2008
Posts: 15
Could be any number of reasons. Did you:
a.) Startup tomcat properly so no errors are shown in the logs or console?
b.) Check the port tomcat is listening on? Usually this would be 8080 and the line on the console would be --> Starting Coyote HTTP/1.1 on http-8080
c.) Check that the webapp the form.html is in is deployed properly?

You can test if tomcat is running by checking http://localhost:8080
I agree. Here's the link:
subject: Simple Error..404 Error..But no solution
It's not a secret anymore!