File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes Resource not allowed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Resource not allowed" Watch "Resource not allowed" New topic

Resource not allowed

Ashish Patel

Joined: Jan 30, 2004
Posts: 20
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">
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


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

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

Thanks ....

Thanks ,<br />Ashish
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13037
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.
I agree. Here's the link:
subject: Resource not allowed
It's not a secret anymore!