This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Turning on the Invoker Servlet

 
Raghav Aggarwala
Greenhorn
Posts: 26
  • 0
  • 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
Pie
Posts: 42966
73
  • 0
  • 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.
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic