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
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat servlet resource not available" Watch "Tomcat servlet resource not available" New topic
Author

Tomcat servlet resource not available

Mull Sheriff
Greenhorn

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
Rancher

Joined: Mar 22, 2000
Posts: 12769
    
    5
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.

Bill
Mull Sheriff
Greenhorn

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: 10268
    
    8

How did you deploy your app in Tomcat?


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Tomcat servlet resource not available