aspose file tools*
The moose likes Tomcat and the fly likes HTTP Status 404 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "HTTP Status 404" Watch "HTTP Status 404" New topic
Author

HTTP Status 404

XinShou ShangLu
Greenhorn

Joined: Sep 26, 2008
Posts: 9
Hi, I am newbie to java. I am reading HeadFirst (Servlet &JSP).
I create a project Beer-v1 which i am following the book chapter 3.

I create a folder named Beer-v1 under directory $TOMCAT_HOME/webapps/.
Then, I create a html file named form.html, and complete the html code.

When I startup tomcat, i input http://localhost:8080/ in the address bar and
i can see the tomcat welcome page, but when i http://localhost:8080/Beer-v1/form.html,
it give me a http status 404 error.

HTTP Status 404 -

type Status report

message

description The requested resource () is not available.

Apache Tomcat/6.0.20


I know if the files is not available the error description should be "The requested resource (/Beer-v1/form.html) is not available."
It's weird.

I try to http://localhost:8080/eamples/index.html and i can see the tomcat example page.

I am so confused.

Help and Thanks!
XinShou ShangLu
Greenhorn

Joined: Sep 26, 2008
Posts: 9
I check catalina log file, and find the error.
The reason is i missed '/' in web.xml.

Now, it runs.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HTTP Status 404
 
Similar Threads
Status 404 - HTML, not available
Unable to run Servlets using Tomcat
Need ur Help
Tomcat 5.0.30 - 404 error with HTML file (Head First Beer example)
first program error, something is missing