It's not a secret anymore!
The moose likes JSF and the fly likes Login Filter is not invoked Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "Login Filter is not invoked" Watch "Login Filter is not invoked" New topic
Author

Login Filter is not invoked

Thorsten Mueller
Greenhorn

Joined: Dec 19, 2010
Posts: 5
Hi all,

I want to implement a filter that redirects the user after she authenticated herself. The resultpage depends on the users security role (here: subject or supervisor).
When I start my application, you are prompted to identify yourself by an authentication dialog (I'm using BASIC authentication). Afterwards the welcome-page "index.xhtml" is rendered, which is located directly under the root directory.

The filter should apply for "index.xhtml", however the filter is never invoked. In my web.xml there are no further filter-settings. I also tried to remove the annotations and place the filter-rule and mapping in the web.xml but i did not help.

When I replace the urlPattern with "/*" it is invoked but throws an exception because after the forward it seems to be invoked endlessly (?)). However, I only want to apply the filter to index.xhtml (also tried index.jsf and /faces/index.xhtml without success).

do you see the error?




 
I agree. Here's the link: http://zeroturnaround.com/jrebel/download
 
subject: Login Filter is not invoked
 
Similar Threads
Servlet Filter problems
how to redirect to success page in tomcat using its lapd configuration
LoginFilter & j_security_check
Struts 1.1 forward mapping problem
Filter URL mappings