tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Felix Schumacher <>
Subject Re: JDBCRealm conection timeout failure on getPassword
Date Sun, 07 Oct 2012 13:36:24 GMT

Aladin Dajani <> schrieb:

>Hello List,
>My application is configured for JDBCRealm authentication uses a MySQL
>For my own use inside the application, I have setup a connection pool
>access the database,  However, the configuration of JDBCRealm in
>uses astand-alone connection.  Since MySQL times-out connections after
>hours, I get the following error in tomcat logs as I try to log-in
>the connection times out:
>Oct 7, 2012 8:36:51 AM org.apache.catalina.realm.JDBCRealm getPassword
>SEVERE: Exception performing authentication
>operations allowed after connection closed.Connection was implicitly
>by the driver.
>Users do not notice this error (I presume tomcat's JDBCRealm will
>create a
>new connection), but it US disconcerting to have all these exceptions
>tomcat logs, especially that when the server goes into production mode,
>fear this will have adverse effects.
>Is it possible to have JDBDRealm use the same connection pool which my
>application uses (which is setup in tomcat's context.xml so it should
>be accessible to all applications in tomcat).

Have a look at DatasourceRealm.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message