• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Sarath Mohan
Ranch Hand
Posts: 213
  • Mark post as helpful
  • send pies
  • 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
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13071
6
  • Mark post as helpful
  • send pies
  • 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
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic