• Post Reply Bookmark Topic Watch Topic
  • New Topic

Deploying Servlets in Tomcat 4.0  RSS feed

 
Arjun Anand
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys!!
I have installed Tomcat 4.0 and configured the server.xml and the web.xml of my application accordingly. My jsp pages are working properly, but the Servlets aren't working. It simply says the Servlet is not found. But the servlets in the examples directory are working.
Is there anything else that i need to configure.
Please help.
---------
Arjun

 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you explicitly defined the servlets in web.xml? Older Tomcats could pick them up implicitly, but IMHO that was a security risk and maybe it's been turned off now.
 
Arjun Anand
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Tim Holloway:
Have you explicitly defined the servlets in web.xml? Older Tomcats could pick them up implicitly, but IMHO that was a security risk and maybe it's been turned off now.


Hi Tim,
I could not understand what you exactly mean by defining the serlvets. If you are talking about registering the servlets in web.xml then yes I have done it using the <servlet></serlvet> tag and also i have given alias using the <url-pattern></url-pattern> tag for each and every serlvet. I'm currently breaking my head trying to figure out what could be the cause for this problem.
The following are the options i have tried till now:
1. I put my entire directory into the webapps directory under Tomcat home and change the context path. Still to no avail.
2. I copied the web.xml file found in the examples directory under Tomcat_Home/Webapps and changed the <servlet></servlet> tags to reflect my Servlet names. Not working.

--------
Arjun
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you defined a "web application" for your servlets in the server.xml file?
Bill
 
Arjun Anand
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by William Brogden:
Have you defined a "web application" for your servlets in the server.xml file?
Bill

I dont know. How do you do that?
------
Arjun
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!