jQuery in Action, 2nd edition*
The moose likes Tomcat and the fly likes j_security_check error in Tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "j_security_check error in Tomcat" Watch "j_security_check error in Tomcat" New topic
Author

j_security_check error in Tomcat

Romulo Diniz
Greenhorn

Joined: Mar 10, 2008
Posts: 2
Hello all,
I got a problem here using JAAS to log in an application. When I have one single instance (browser window) opened everything works great. The problem comes when I have more than one window (or tab) opened in the login page. Is this case, the first login I make, still works fine but on the second window I get this error:



Any clues?

Thanks in advance
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

"Java BrBh",
Please check your private messages.
-Ben


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Romulo Diniz
Greenhorn

Joined: Mar 10, 2008
Posts: 2
Sorry, just did and fixed my mistake
Saravanan Vijayappan
Ranch Hand

Joined: Jan 02, 2007
Posts: 47
I am also getting the same problem, any suggestion to fix it? Thanks


Cheers,<br />Sarav
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8843
    
    7

The way I understand it, this is working as designed.
You only get forwarded to j_security_check if you do not have an authenticated session. If one authenticates in one tab, every tab shares that authenticated session. j_security_check is not accessible on the second tab because you are already logged in.
Try entering a URL for a protected resource and you should be able to view it in the second tab.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: j_security_check error in Tomcat
 
Similar Threads
j_security_check question
j_security_check not working with flash
j_security_check - How to pass parameters in the URL
Ldap error(ldap_add: Operations error) while installation
j_security_check - How to pass parameters in the URL