This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds and have James Denton on-line!
See this thread for details.
Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Setting up Tomcat to recognize /servlet/  RSS feed

 
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!
 
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).]
 
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!