Le printemps de l'authentification de Sécurité de journalisation

Je suis en utilisant le Printemps de Sécurité 3.1 pour authentifier des utilisateurs pour un site web. Lorsqu'une connexion échoue parce que le printemps de sécurité est incapable de se connecter à la base de données, je reçois l'instruction suivante dans mon journal:

2012-07-12 11:42:45,419 [ajp-bio-8009-exec-1] DEBUG      org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter - Authentication request failed: org.springframework.security.authentication.AuthenticationServiceException: Could not get JDBC Connection; nested exception is java.sql.SQLException: Connections could not be acquired from the underlying database!

Ma question est, pourquoi est-ce une instruction de DÉBOGAGE au lieu d'une ERREUR? J'ai wade à travers tout un tas d'instructions de débogage juste pour trouver l'erreur.

MODIFIER

Voici mon gestionnaire d'authentification:

<bean id="securityDataSource" class="org.springframework.jndi.JndiObjectFactoryBean">
    <property name="jndiName" value="java:comp/env/securityDS"/>
    <property name="resourceRef" value="true"/>
</bean>

<bean id="encoder" class="org.springframework.security.crypto.password.StandardPasswordEncoder" />

<security:authentication-manager>
    <security:authentication-provider>
        <security:password-encoder ref="encoder" />
        <security:jdbc-user-service 
            data-source-ref="securityDataSource"
            authorities-by-username-query="SELECT username, authority FROM login WHERE username = ?"
            users-by-username-query="SELECT username, password, enabled FROM login WHERE username = ?"
        />        
    </security:authentication-provider>
</security:authentication-manager>

OriginalL'auteur Bryan Larson | 2012-07-12