It's not a secret anymore!*
The moose likes Servlets and the fly likes j_security_check and weblogic Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "j_security_check and weblogic" Watch "j_security_check and weblogic" New topic
Author

j_security_check and weblogic

Aleksey Matiychenko
Ranch Hand

Joined: Apr 03, 2001
Posts: 178
I am writing an application using Weblogic 6.1 with LDAP for security. I am also using FORM based authentication. So here is my problem:
When a user logs in everything works fine. When a user mistypes a password less than three times, everything again works as expected. However when a user mistypes a password for the 4th tume the LDAP throws an exception saying that the maximum number of retry attempts exceeded. That is the behavior that I would like to get by the problem is that the exception is thrown in j_security_check and I have no way of catching it and dealing with it myself so I get the ugly Error 500 in browser.
Any ideas?
Simon Brown
sharp shooter, and author
Ranch Hand

Joined: May 10, 2000
Posts: 1913
    
    6
The error page stuff in the web.xml file might be of some use here as it allows you to forward to a page when a specific error or exception occurs. (not sure if it works 100% in WebLogic though - we've certainly had some problems with 500's still appearing in the browser :roll: )
Simon
Manohar Karamballi
Ranch Hand

Joined: Jul 17, 2001
Posts: 227
As simon told u can use error page or u can set an error page for form based login just like u set login page for that.
see WLS doc for further details.
Simon Brown
sharp shooter, and author
Ranch Hand

Joined: May 10, 2000
Posts: 1913
    
    6
We also have an LDAP server that we are authenicatnig against and I've just had exactly the same error!
As a "catchall", you can use something like the following in the your web.xml file:

Since this is more Servlet related, I'll move this over to the Servlets forum
Simon
[ May 02, 2002: Message edited by: Simon Brown ]
Aleksey Matiychenko
Ranch Hand

Joined: Apr 03, 2001
Posts: 178
Thanks. That works.
A follow up question though:
Is there a way to see the message of the thrown exception?
Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: j_security_check and weblogic