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

Servlets HTTP Status 404

pavankumar varanasi

Joined: Sep 30, 2012
Posts: 2
HTTP Status 404 -

type Status report


description The requested resource () is not available.

I created a folder named "First" here C:\Tomcat 6.0\webapps

so, C:\Tomcat 6.0\webapps\First

Here i created "WEB-INF" folder

under that "web.xml" file and "classes" folder

I wrote and compiled it

I placed HelloServlet.class file under classes folder

my web.xml looks like this

I started tomact, there i found folder named "First" and clicked on that

then URL is


I found 404 error

then i typed


even then it is showing same error

Can any one help me.

[Thumbnail for 1.jpg]

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63866

Did you read the ServletsFaq (⇐ click this link) on this issue? It points out a number of errors that you've made.

[Asking smart questions] [About Bear] [Books by Bear]
pavankumar varanasi

Joined: Sep 30, 2012
Posts: 2
Tried creating package. still getting error
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13037
Did you place the compiled class file under classes according to the package name?

Note that the server must be restarted after changes to web.xml and class files.

Double-check that Tomcat is recognizing "First" as holding a web application by placing a plain index.html file there. If you can't open http://localhost:7777/First/index.html then there is probably something wrong with your directory structure.

I agree. Here's the link:
subject: Servlets HTTP Status 404
It's not a secret anymore!