tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [Bug 54235] tomcat jdbc pool stackoverflow error used with spring
Date Tue, 04 Dec 2012 20:32:24 GMT

Konstantin Kolinko <> changed:

           What    |Removed                     |Added
                 OS|                            |All

--- Comment #1 from Konstantin Kolinko <> ---
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

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:
For additional commands, e-mail:

View raw message