how to use the Invoker Servlet in tomcat 6

C

cong

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.

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.
 
M

Manish Pandit

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.

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.

Hi,

You also need to turn on privileged in context.xml's context element.

$TOMCAT_HOME/conf/context.xml, replace <Context> with <Context
privileged="true">.

Bounce and see if it works. If it does not, add reloadable="true" in
the above element as well.

-cheers,
Manish
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,968
Messages
2,570,154
Members
46,702
Latest member
LukasConde

Latest Threads

Top