• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat servlet resource not available

 
Mull Sheriff
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13064
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Checked both Manager and Catalina log files: no error messages found.



 
Maneesh Godbole
Saloon Keeper
Posts: 11064
13
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How did you deploy your app in Tomcat?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic