Geronimo delegates filter handling to tomcat, and tomcat does not
support filtering on j_security_check.  See
http://marc2.theaimsgroup.com/?l=tomcat-user&m=107558949928823&w=2

Their recommendation is to use a valve, which Geronimo supports via
the <valve-chain> element in web deployment plan.  However, taking
that approach may not be totally straight forward since after taking a
quick look it seems that the class implementing the valve must be
available in the tomcat container's classloader.  i.e. just including
the class in your webapp is not enough since it's in a separate
classloader.  The reusable valves in the org.apache.catalina.valves
package should be accessible in the tomcat container's classloader.
And AccessLogValve, in particular, may provide what you need.

Best wishes,
Paul

On 1/31/07, Phani Madgula <[EMAIL PROTECTED]> wrote:
Hi
I have a web application that uses FORM login. I would like to have a filter
to be declared for j_security_check service so that I can perform some
loging tasks. Is it allowed in Geronimo/Tomcat?

I tried with the below tags but filter will not be called..! Any help on
this?

<filter>
<filter-name >Page Request Timer</filter-name>
 <filter-class>TimeTrackFilter</ filter-class>
</filter>
< filter-mapping>
<filter-name>Page Request Timer </filter-name>
<url-pattern >j_security_check</url-pattern>
</ filter-mapping>


Regards
Phani

Reply via email to