Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / August 2007

Tip: Looking for answers? Try searching our database.

how to use the Invoker Servlet in tomcat 6

Thread view: 
cong - 01 Aug 2007 10:26 GMT
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.
Manish Pandit - 01 Aug 2007 17:59 GMT
> Hi Everybody,
>
[quoted text clipped - 30 lines]
>
> 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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.