https://issues.apache.org/bugzilla/show_bug.cgi?id=54235
Konstantin Kolinko <knst.koli...@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- OS| |All --- Comment #1 from Konstantin Kolinko <knst.koli...@gmail.com> --- 1. The call to ConnectionPool.borrowConnection( ) is caused by setting <property name="initialSize" value="5"/> which causes ConnectionPool.init() to create 5 connections. 2. The call to PooledConnection.connectUsingDataSource() is seriously wrong. It should have called PooledConnection.connectUsingDriver() instead. This can happen only if poolProperties.getDataSource() is not null. I do not see how this could have happened. Did Spring injected a recursive reference by calling DataSource.setDataSource()? 3. When you define the pool via <Resource>, it is created using org.apache.tomcat.jdbc.pool.DataSourceFactory. The factory calls dataSource.createPool(). So it might be better to add init-method="createPool". -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org