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

404 on http://localhost:8080

Harshal Akolkar

Joined: Feb 11, 2013
Posts: 1
Hey guys,
I am beginner in servlets & JSPs.
I have installed tomcat7.0, jdk1.7; everything is set & good to go.
there's a "form.html" in "webapps" and "web.xml" in WEB-INF
but, every single time I try to visit "http://localhost:8080/beverage/form.html"
ends with a screen with 404: unable to find the resource.
Can someone please tell me how to fix it?
It would be a big help
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13037
Probably Tomcat does not think that the /beverage/ directory contains a valid web application.

An invalid web.xml or incorrect directory layout is a common cause of this problem.

Have you looked at the log files?


Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63866

See the ServletsFaq for a list of things to check.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: 404 on http://localhost:8080
It's not a secret anymore!