Hi Steffi

As far as I remember, Tomcat 6 doesn't support to configure a custom Valve in 
META-INF/context.xml. If you configure the context in the server.xml it should 
get picked up. Have you tried this already?

Thanks
Oli


------

Oliver Wulff

Blog: http://owulff.blogspot.com
Solution Architect
http://coders.talend.com

Talend Application Integration Division http://www.talend.com

________________________________________
From: Stephanie Stroka [[email protected]]
Sent: 09 May 2012 15:46
To: [email protected]
Subject: Apache fediz with tomcat 6

Hello!

I tried to deploy the Apache fediz SimpleWebApp on Tomcat 6, but I got
the following exception:

INFO: Server startup in 1411 ms
May 9, 2012 3:29:30 PM
org.apache.catalina.authenticator.FormAuthenticator forwardToLoginPage
WARNING: Unexpected error forwarding to login page
java.lang.NullPointerException
     at
org.apache.catalina.authenticator.FormAuthenticator.forwardToLoginPage(FormAuthenticator.java:333)
     at
org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:245)
     at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:528)
     at
org.apache.cxf.fediz.tomcat.FederationAuthenticator.invoke(FederationAuthenticator.java:241)
     at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
     at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
     at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
     at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
     at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
     at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
     at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
     at java.lang.Thread.run(Thread.java:679)


I checked the code and I'm curious about this error:
AuthenticatorBase.invoke() should call
FederationAuthenticator.authenticate(), not
FormAuthenticator.authenticate(), right?

With tomcat 7, the redirect to the login page works just fine. The
methods of FederationAuthenticator, not FormAuthenticator are used.

Does anybody know how to fix the issue with tomcat 6?

Thanks!
Steffi

Reply via email to