Announcement Announcement Module
Collapse
No announcement yet.
SimpleMappingExceptionResolver not catching exceptions from ActiveDirectoryLdapAuthen Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • SimpleMappingExceptionResolver not catching exceptions from ActiveDirectoryLdapAuthen

    Hi,

    I have spring security set up to use the ActiveDirectoryLdapAuthenticationProvider to authenticate users.

    While testing I stops the AD server and tried to log into my web app. The web app shows a HTTP 500 page with the following exception

    Code:
    javax.naming.CommunicationException: adserver.com:389 [Root exception is java.net.ConnectException: Connection refused]
    How do I make the SimpleMappingExceptionResolver catch this exception and show my custom error page?
    Last edited by jamin; Dec 10th, 2012, 08:52 AM.
Working...
X