This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 41049
    
  43
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Turning on the Invoker Servlet
 
Similar Threads
unable to run webapplications in tomcat
Force URL redirect from http to https?
Error 404
HTTP Status 404 - Servlet Not Found
Access servlet from subdirectory