• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

j_security_check error in Tomcat

 
Romulo Diniz
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser Redhat VI Editor
 
Romulo Diniz
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, just did and fixed my mistake
 
Saravanan Vijayappan
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am also getting the same problem, any suggestion to fix it? Thanks
 
Joe Ess
Bartender
Posts: 9320
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic