File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "j_security_check error in Tomcat" Watch "j_security_check error in Tomcat" New topic

j_security_check error in Tomcat

Romulo Diniz

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

Joined: Dec 11, 2004
Posts: 13410

"Java BrBh",
Please check your private messages.

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

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

Joined: Oct 29, 2001
Posts: 9191

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.

[How To Ask Questions On JavaRanch]
I agree. Here's the link:
subject: j_security_check error in Tomcat
It's not a secret anymore!