tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Delbecq <david.delb...@oma.be>
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(AuthenticatorBase.java:258)
> 	at org.apache.catalina.core.StandardPipeline.addValve(StandardPipeline.java:435)
> 	at org.apache.catalina.core.ContainerBase.addValve(ContainerBase.java:1184)
>   
>


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message