tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Delbecq <>
Subject Re: AW: Executing Valve before Basic Authentication takes place
Date Tue, 04 Jul 2006 08:54:27 GMT
As it states, the authenticator valve must be attached to the context, 
not the host.
Just put your valve at host level and it should be called before the 
authentification valve which is automatically added to the context.xml 
at deployement.

Also, take a look at single sign-on valve which doe a similar job of 
injecting credentials.
Böhringer Jochen wrote:
> Caused by: java.lang.IllegalArgumentException: Configuration error:  Must be attached
to a Context
> 	at org.apache.catalina.authenticator.AuthenticatorBase.setContainer(
> 	at org.apache.catalina.core.StandardPipeline.addValve(
> 	at org.apache.catalina.core.ContainerBase.addValve(

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message