This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JSP and the fly likes login leads to  j_security_check error page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "login leads to  j_security_check error page" Watch "login leads to  j_security_check error page" New topic
Author

login leads to j_security_check error page

Piotrus Kowalsky
Greenhorn

Joined: Apr 29, 2007
Posts: 6
I am working on jsp along with tomcat server.I am using container managed security and jdbcrealm configuration. In the login form, I am required to submit to j_security_check. I am able to successfully login.

After that, each time I logout using session.invalidate() and I try to access protected site again, application will show the login screen but after clicking login it just reloads the login page instead of sending me to the protected page. If I reload the login page it will give me access to the page I wanted. If i fill in user/pass and hit login a 2nd time it shows:

The requested resource (/WebApplication6/secureUser/j_security_check) is not available.

When I typed incorrect user and password everything works good, I'm always redirected to appropriate error page. I've even tried setting no cache headers - no results .
[ April 29, 2007: Message edited by: piotrus ]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61092
    
  66

"piotrus",

There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
bear
JavaRanch Sheriff


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Piotrus Kowalsky
Greenhorn

Joined: Apr 29, 2007
Posts: 6
I'm sorry - my mistake . I've just correct my display name. It should be good now!

Ok, let's back to the topic. What is wrong in my application??
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: login leads to j_security_check error page