File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes logout problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "logout problem" Watch "logout problem" New topic

logout problem

Bob Green
Ranch Hand

Joined: Feb 29, 2004
Posts: 93
I run into a problem with logout and it drives me crazy. Here's my problem, when I click on the Sign Out hyperlink, my application tries to call j_security_check and returns an error because it can not find this page. I have looked at this problem for a long time, can anyone help me with this.

Here's my SignOutAction, what did I do wrong?


[BPSouther: Added code tags]

[ July 02, 2007: Message edited by: Ben Souther ]
[ July 02, 2007: Message edited by: Ben Souther ]
Yogendra Joshi
Ranch Hand

Joined: Apr 04, 2006
Posts: 213
Hi ,

Just give a check to web.xml file i.e the deployment descriptor file.

It seems , there is an element configured there for <login-config>
as FORM..

whenever this is configured , it internally checks with j_security_check...

So , if you find an entry like

try removing it , restart the server and try again... I guess it should work.

Cheers ,

Yogendra N Joshi.

Meri Zindagi Hain Tab Tak.. Jab Tak Tera Sahara.... Har Taraf Tu Hi Tu Hain SAI Tera Hi Hain Nazara.....
Bob Green
Ranch Hand

Joined: Feb 29, 2004
Posts: 93
Yogendra, thank you so much for your response. I don't think it works for me if I remove the FORM; I need to use the form that I implemented instead of the default login form.

It is sorta covered in the JavaRanch Style Guide.
subject: logout problem
It's not a secret anymore!