Hi Paul,

good catch.

I will create the Jira and fix that.

Thanks !
Regards
JB

On 05/04/2015 08:34 PM, Paul Spencer wrote:
Karaf 3.0.3

Creating a generic datasource with the command "jdbc:create --type generic ..."  fails with "Unable to 
find property descriptor user on class org.apache.commons.dbcp.BasicDataSource".  The property name is 
"username", not "user"
   jdbc:create  --type generic -url jdbc:ingres://localhost:II7/mydb --username 
foo --password bar -d com.ingres.jdbc.IngresDataSource mydb

When I correct the property name in the generated xml, 
"org.osgi.service.blueprint.container.ComponentDefinitionException: Unable to find a 
matching constructor on class org.apache.commons.pool.impl.GenericObjectPool..." 
exceptions are thrown.

***
* From deploy/datasource-mydb.xml
***
     <bean id="dataSource" destroy-method="close" 
class="org.apache.commons.dbcp.BasicDataSource">
         <property name="driverClassName" 
value="com.ingres.jdbc.IngresDataSource"/>
         <property name="url" value="jdbc:ingres://localhost:II/mydb"/>
         <property name="user" value="foo"/>
         <property name="password" value="bar"/>
         <property name="maxIdle" value="1"/>
     </bean>


Should I create a bug in issues.apache.org?

Paul Spencer


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

Reply via email to