• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Setting up Tomcat to recognize /servlet/

 
Ranch Hand
Posts: 287
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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).]
 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ?
 
reply
    Bookmark Topic Watch Topic
  • New Topic