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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to