• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Tomcat servlet resource not available

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.





 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Checked both Manager and Catalina log files: no error messages found.



 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How did you deploy your app in Tomcat?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic