• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

j_security_check and weblogic

 
Ranch Hand
Posts: 178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
sharp shooter, and author
Posts: 1913
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 227
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1913
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic