This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Servlets and the fly likes Turning on the Invoker Servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Servlets
Bookmark "Turning on the Invoker Servlet" Watch "Turning on the Invoker Servlet" New topic
Author

Turning on the Invoker Servlet

Raghav Aggarwala
Greenhorn

Joined: Jul 21, 2005
Posts: 26
Hi Everybody,

I am trying to turn on the invoker servlet on Tomcat 6.0.13. I have tried uncommenting invoker servlet mapping



<servlet>
<servlet-name>invoker</servlet-name>
<servlet-class>
org.apache.catalina.servlets.InvokerServlet
</servlet-class>
<init-param>
<param-name>debug</param-name>
<param-value>0</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>

AND

<servlet-mapping>

<servlet-name>invoker</servlet-name>
<url-pattern>/servlet/*</url-pattern>

</servlet-mapping>



After uncommenting, the container/browser does not give error "HTTP Status 404 - requested resource is not avaliable". But it does not show the results.

When I comment the above two, it shows the "HTTP status 404- requested resource is not availble".

Is there any way it can be fixed? It's time consuming to make changes in web.xml everytime to add a servlet.

Thank you for your help.

Raghav


-----------------<br />SCJP 1.4<br />Target SCWCD by December 2007
Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42958
    
  73
Which URL are you trying to access? What is the package and class name of your servlet?

Also, before you get too far down the road using InvokerServlet, be sure to read this to understand why that's not such a good idea.
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Turning on the Invoker Servlet
 
It's not a secret anymore!