Hi Jochen,

thanks for the update.

Can you check if you don't have multiple dbcp/pools bundles installed (different versions) ?

Especially, the jdbc:create command can install bundles for you (you have an option to avoid this).

Regards
JB

On 10/08/2014 10:39 AM, jkraushaar wrote:
Hi JB,

when I try to use the generic data source, I get the following exception
from blueprint:

org.osgi.service.blueprint.container.ComponentDefinitionException: Unable to
find a matching constructor on class
org.apache.commons.pool.impl.GenericObjectPool for arguments [null, 8,
WHEN_EXHAUSTED_BLOCK, -1, 8, 2, false, false, -1, 3, 5000, false, -1, true]
when instanciating bean connectionPool

The data source is installed as bundle. We use Commons DBCP 1.4 and Commons
Pool 1.6. According to the javadoc, there should be a constructor with this
arguments:
http://commons.apache.org/proper/commons-pool/api-1.6/org/apache/commons/pool/impl/GenericObjectPool.html

Regards
Jochen



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Pooling-with-PostgreSQL-and-Karaf-tp4035692p4035705.html
Sent from the Karaf - User mailing list archive at Nabble.com.


--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to