geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul McMahan" <>
Subject Re: Can we create a filter for j_security_check service in Geronimo Tomcat?
Date Fri, 02 Feb 2007 04:47:39 GMT
Geronimo delegates filter handling to tomcat, and tomcat does not
support filtering on j_security_check.  See

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,

On 1/31/07, Phani Madgula <> 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

View raw message