Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Setting up Tomcat to recognize /servlet/  RSS feed

 
DC Dalton
Ranch Hand
Posts: 287
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ive been using tomcat for quite a few weeks now & although I really like it I never got around to setting up the defaults so that /sevlet/servletName in a URI will correctly direct to the /examples/web-inf/classes folder (or another I choose) to find the servlet. I looked at this mess of xml today & don't have a clue where this stuff is done.I understand XML I just don't have time right now for a crash course in it again. On my server setup (Resin) I just change the user.config & restart the engine. Can someone point me to the right file to edit. Now that Im testing on both the local machine & the server changing the paths between the two is a real pain! Thanks for any help you can give!
 
Parag Kale
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can try opening the server.xml file and enter the following values against the RequestInterceptor variable :
<RequestInterceptor
className="org.apache.tomcat.request.InvokerInterceptor"
debug="0" prefix="/servlet/" />
 
DC Dalton
Ranch Hand
Posts: 287
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I looked thru the server.xml ....I already have that tag in there. Is there something else Im missing? When I use a link that has /servlet/[servletname] I get a 404 so there must be something else I have to change
[This message has been edited by DC Dalton (edited July 07, 2001).]
 
ayman Ab
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Parag Kale:
You can try opening the server.xml file and enter the following values against the RequestInterceptor variable :
<RequestInterceptor
className="org.apache.tomcat.request.InvokerInterceptor"
debug="0" prefix="/servlet/" />

does this method works for tomcat version 4.0 beta 5 ?
i am facing the same problem ?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!