tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Caldarale, Charles R" <Chuck.Caldar...@unisys.com>
Subject RE: DataSourceRealm failed to retrieve password after tomcat server being idle overnight
Date Fri, 09 Oct 2009 15:04:52 GMT
> From: pprun [mailto:runping_huang@hotmail.com]
> Subject: DataSourceRealm failed to retrieve password after tomcat
> server being idle overnight
> 
> When I left server idle overnight and tried to login 
> into the application the next day, DataSourceRealm 
> would fail in retrieving password.

Not uncommon - the DB server timed out the session.  Try adding this to your <Resource>:

testOnBorrow="true"
validationQuery="/* ping */ SELECT 1"

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus
for use only by the intended recipient. If you received this in error, please contact the
sender and delete the e-mail and its attachments from all computers.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message