aspose file tools*
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


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Simple Error..404 Error..But no solution" Watch "Simple Error..404 Error..But no solution" New topic
Author

Simple Error..404 Error..But no solution

sameer khazi
Greenhorn

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
Greenhorn

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: http://aspose.com/file-tools
 
subject: Simple Error..404 Error..But no solution
 
Similar Threads
help, where to put servelet, html, jsp file
Cannot get Servlets Demystified Problem
Requested resource() not found
classpath issue
my first servlet please help.