Results 1 to 1 of 1

Thread: SimpleMappingExceptionResolver not catching exceptions from ActiveDirectoryLdapAuthen

  1. #1

    Default 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 at 08:52 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •