• Post Reply Bookmark Topic Watch Topic
  • New Topic

Help! Using Container-managed authentication with JSF  RSS feed

 
Philippe Desrosiers
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!