• 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

What is invoker servlet in Tomcat Container? How can we disable it

 
Ranch Hand
Posts: 213
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am new to Tomcat JSP/servlet container. I just created a simple Servlet and deployed and invoked
http://localhost:8080/myapp/servlet/HelloServet
Tomcat says resource not Found!. Why does it say like this?
I heard one invoker servlet handles all request which is having /servlet/
I don't want this feature, what should I do?

Regards
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Like all servlets, the invoker is configured in a web.xml file. Look in the TOMCAT_HOME/conf/web.xml file - the default for all applications.
Turning off the invoker and configuring your application's web.xml according to the servlet API is highly recommended.
Bill
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well for one, the invoker is *off* by default in Tomcat versions 4.1.12 and above.

Which is *why* it said "resource not found".

More info: InvokerServlet FAQ
 
reply
    Bookmark Topic Watch Topic
  • New Topic