aspose file tools*
The moose likes Tomcat and the fly likes WARNING: Unexpected error forwarding to login page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "WARNING: Unexpected error forwarding to login page" Watch "WARNING: Unexpected error forwarding to login page" New topic
Author

WARNING: Unexpected error forwarding to login page

David Wilson
Greenhorn

Joined: May 07, 2004
Posts: 6
I am trying to use FORM based authentication but I am getting this error in the tomcat console...


When I try to goto my web page (http://localhost:8080/E3/common/CustomerInq/index.faces) I get a blank screen.
However, if after getting the blank screen I goto the login page (http://localhost:8080/E3/login2.jsp) and type in a correct login page then I will get redirected to the CustomerInq/index.faces page correctly.
[ June 25, 2004: Message edited by: David Wilson ]
David Wilson
Greenhorn

Joined: May 07, 2004
Posts: 6
This is a snippit of my web.xml...


and here is the login from the Orielly JSF book that I am trying to use as a starting point...


Any ideas are will be greatly appreciated.

-David
Sameer Raza Ali
Greenhorn

Joined: Oct 15, 2009
Posts: 20
Hi David ,

i just bumped into this problem. well in my case it was easy to fix
i was using <login-page>/login.html</login-page>(wrong) instead of <form-login-page>/login.html</form-login-page> form some reason the parser didnt threw me an error
This error occurs when the container is unbale to pick up the login page at runtime. I would check that i have the right mapping in web.xml and the page is there in the right directory ect.


SCJP 1.4 , SCWCD 5.0
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: WARNING: Unexpected error forwarding to login page