wood burning stoves 2.0*
The moose likes Tomcat and the fly likes Tomcat servlet resource not available Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat servlet resource not available" Watch "Tomcat servlet resource not available" New topic

Tomcat servlet resource not available

Mull Sheriff

Joined: Aug 19, 2009
Posts: 11
Hi to all,
I'm trying for the first to time to set up a servlet on tomcat 6.0.20.

I'm getting the error:

type Status report

message /test

description The requested resource (/test) is not available.

Maybe I'm doing it wrong.
That's what I did:

1)I have succerfully compiled the code of the servlet and put the .class file inside the /my-app/WEB-INF/classes/ directory.
2)I have created the web.xml file and copied it into /my-app/WEB-INF/ directory.
3)I have all the libs inside the /my-app/WEB-INF/lib/ directory

Here is the web.xml

Am I missing other steps in order to get a servlet working? Or is the xml code wrong?

thanks in advance for your precious answers.

William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12761
As I recall, thats the error message you get if the servlet container trys to create the servlet instance and fails. Some more details should appear in the log files.

Mull Sheriff

Joined: Aug 19, 2009
Posts: 11
Checked both Manager and Catalina log files: no error messages found.

Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10175

How did you deploy your app in Tomcat?

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
subject: Tomcat servlet resource not available
Similar Threads
Why is my jsp not available?
applet and servlet not communicating... any ideas?
Executing Servlet File using Tomcat
1st servlet example
Status 404 Error when launch my servlet