This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Servlets and the fly likes configuring servlets on 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

configuring servlets on tomcat4

prasad hagargi
Ranch Hand

Joined: Oct 21, 2002
Posts: 36
Can anybody guide me in configuring servlets in a new context other than the examples context ,
on tomcat4.
when i try to invoke a servlet, file not found
exception is occurring.
the structure of the web.xml is like this
prasad hagargi
Ranch Hand

Joined: Oct 21, 2002
Posts: 36
the servlet mapping for "invoker" servlet in web.xml in tomcat/conf directory is uncommented
and should i add a new context tag in the server.xml,if yes where and what should be its syntax
Dinesh Ramaswamy

Joined: Oct 05, 2001
Posts: 13
If u give the url as
then the <servlet> tag is enough.
There is no need for <servlet-mapping>.
Important thing is we must give in the url :
prasad hagargi
Ranch Hand

Joined: Oct 21, 2002
Posts: 36
i have tried that
but it still gives me
description The requested resource (/test/servlet/HelloWorldExample) is not available.
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

Please don't cross post

And also.. *don't* use the /servlet/* mapping.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: configuring servlets on tomcat4
It's not a secret anymore!