tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Propes, Barry L " <barry.l.pro...@citi.com>
Subject RE: DB Connection error
Date Mon, 09 Jan 2012 17:03:59 GMT
Are you getting any kind of error in the logs?


-----Original Message-----
From: Anjib Mulepati [mailto:anjibcs@hotmail.com] 
Sent: Monday, January 09, 2012 9:22 AM
To: Tomcat Users List
Subject: Re: DB Connection error

I did change my config.xml to

<Context antiJARLocking="true" path="/myApp">
<Resource auth="Container"
             driverClassName="oracle.jdbc.driver.OracleDriver"
             maxActive="20"
             maxIdle="10"
             maxWait="-1"
             name="jdbc/myName"
             password="myPassword"
             testOnBorrow="true"
             type="javax.sql.DataSource"
             url="jdbc:oracle:thin:@//localhost:8080/MYDBS"
             username="myUsername"
             validationQuery="SELECT 1 FROM DUAL" />
</Context>

And this morning when DB restart I had to restart the tomcat to get 
connection. What can be other solutions?

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

Mime
View raw message