Two Laptop Bag*
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 Murach's Java Servlets and JSP this week in the Servlets forum!
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: 12756
    
    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: 10167
    
    8

How did you deploy your app in Tomcat?


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