This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Tomcat and the fly likes What is invoker servlet in Tomcat Container? How can we disable it Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "What is invoker servlet in Tomcat Container? How can we disable it" Watch "What is invoker servlet in Tomcat Container? How can we disable it" New topic
Author

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

Sarath Mohan
Ranch Hand

Joined: Mar 17, 2001
Posts: 213
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


Sarath Mohan
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12682
    
    5
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


Java Resources at www.wbrogden.com
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What is invoker servlet in Tomcat Container? How can we disable it
 
Similar Threads
deployement of a simple servlet
Unable to call Servlet
Tomcat 4.0 problem
problem in running first servlet
Tomcat 404 Error - Still not working