Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

Invoker Not Invoking in 5.5.9

W Strater

2007-07-26

Replies:

I know that the servlet invoker is not popular but that is what I have to deal with.

All of the servlets are invoked as http://localhost:8080/servlets/com.domain.servlets.ServletName where the /servlets is the web app name.

I would like to acheive to things.

1) Ensure that only servlets within a package get invoked.
2) Provide a catch all servlet.

Here are my servlet mappings:


<servlet-mapping>

  <servlet-name>invoker</servlet-name>

  <url-pattern>/com.domain.servlets.*</url-pattern>

</servlet-mapping>





<servlet-mapping>

  <servlet-name>catchAll</servlet-name>

  <url-pattern>/*</url-pattern>

</servlet-mapping>




The problem is that the catchAll is getting every request despite being defined after the invoker. I have even defined a new servlet name, xxxxxxxx, with the invoker class, org.apache.catalina.servlets.InvokerServlet, still the catchAll gets all requests.

Any suggestions?


Wes.

©2008 junlu.com - Jax Systems, LLC, U.S.A.