Forums Register Login

Help! Using Container-managed authentication with JSF

+Pie Number of slices to send: Send
I'm just getting started with JSF, and want to use it in an existing login form (mostly for localization), under Tomcat 5.

Everything works fine, until I try to use JSF.

My web.xml looks like:


I've left some stuff out (realm and all that is defined elsewhere, it's not the problem), but you get the idea. If I change the form-login-page to /login.jsp, and remove all the JSF stuff from that page, everything works fine. As soon as I switch over to JSF, I get the following exception in the tomcat logs:



I've tried gradually stripping out stuff from my login.jsp page, thinking maybe there was som un-serializable element in there, to the point where it now looks like this:


But I continue to receive the aforementioned Exception. If I comment out the forms authentication in web.xml, and try to use this page as a regular JSF page, everything works fine. Can anyone help me? I'm going crazy!
[ June 29, 2007: Message edited by: Philippe Desrosiers ]
+Pie Number of slices to send: Send
I always make my login and loginfail pages be straight JSPs. When you use Container-based authentication in JSF, the "hijack" operation that diverts you to the hello (login) page doesn't carry all the required freight needed to support JSF. In fact, I originally was having problems even using CSS and images in login pages, though hopefully that's fixed now.
Any sufficiently advanced technology will be used as a cat toy. And this tiny ad contains a very small cat:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 2779 times.
Similar Threads
help regarding url-pattern in jsf
error occured while deploying JSF portlet in Jboss Portal server
security constraint with jsp forward
NullPointerException in AutoScrollPhaseListener
Not Session Timeout, but throw javax.faces.application.ViewExpiredException
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 16:35:34.