Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Turning on the Invoker Servlet

 
Raghav Aggarwala
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic