aspose file tools*
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
Marshal

Joined: Mar 22, 2005
Posts: 42289
    
  64
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.


Ping & DNS - my free Android networking tools app
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Turning on the Invoker Servlet