File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes tomcat4 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Reply locked New topic


prasad hagargi
Ranch Hand

Joined: Oct 21, 2002
Posts: 36
This is in reference with

below is the structure of the web.xml of the application,iam trying to deploy

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
while invoking iam using the url
the context tag in server.xml is
<Context path="/test" docBase="test" debug="0"
reloadable="true" crossContext="true"/>
i still am getting
The requested resource (/test/servlet/HelloWorldExample) is not available.
Andrea Gazzarini
Ranch Hand

Joined: Sep 09, 2002
Posts: 125
Try with http://localhost:8080/servlet/HelloWorldExample
all the servlets you deploy into tomcat by default doesn't need the <docbase> of your webapp in the url.
You can obviously override this behaviour (see conf/server.xml)

Regards,<br />Andrea<br /> <br /><a href="" target="_blank" rel="nofollow">Andrea Gazzarini</a><br />Skype ID : gazzax72<br />Google Talk ID :<br /><a href="" target="_blank" rel="nofollow">My Blog</a>
Sam Wang
Ranch Hand

Joined: Jul 17, 2001
Posts: 95
I try the url like http://localhost:8080/servlet/SomeServlet
,it's also not available.
I only succeed when like
<Context path="/test" docBase="test" debug="0" />
I also don't know why.
Some experience man can let me know why??

prasad hagargi
Ranch Hand

Joined: Oct 21, 2002
Posts: 36
my problem is solved ,thanks a lot folks,
i have one more query,like what is the configuration procedure ,if i want to enable cross context invocations
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

I agree. Here's the link:
subject: tomcat4
It's not a secret anymore!