• 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

Resource not allowed

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All ,

I am deploying a new web application[ashish_test] inside tomcats webapps directory .
Foll. is the entry that i have added to my server.xml for this context
=========================================
<Context path="/ashishTest" docBase="ashish_test" debug="0"
reloadable="true" crossContext="true">
</Context>
=========================================
My tomcat server[4.1.18] is listening at port 9090.

Now when i try to hit a servlet "AshishHelloWorld" [kept in classes dir under web-inf , also tried keeping this servlet in servlets dir.] using the url

http://localhost:9090/ashishTest/servlet/AshishHelloWorld
or
http://localhost:9090/ashishTest/AshishHelloWorld
or
http://localhost:9090/ashishTest/servlet/AshishHelloWorld


I get the foll. error
======================================================
message /ashishTest/servlet/AshishHelloWorld

description The requested resource (/ashishTest/servlet/AshishHelloWorld) is not available.
=======================================================


Thanks ....
 
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
See the Invoker servlet FAQ for this VERY common problem - or just browse in the last week or so of posts here.
Note that your /ashishTest path MUST have a WEB-INF directory and a web.xml file. Requirements for web.xml are laid out in the Servlet API - everybody should have a copy.
Bill
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic