Below is a diff from the generated datasource xml and a working datasource xml.
[deploy]$ diff datasource-joe1.xml datasource-joe2.xml 23c23 < <property name="user" value="foo"/> --- > <property name="username" value="foo"/> 54c54 < <argument value="WHEN_EXHAUSTED_BLOCK" /> <!-- whenExhaustedAction --> --- > <argument value="1" /> <!-- whenExhaustedAction --> 137c137 *** * Source file in git *** master - https://git-wip-us.apache.org/repos/asf?p=karaf.git;a=blob;f=jdbc/src/main/resources/org/apache/karaf/jdbc/internal/datasource-generic.xml;h=090daeeb4fd296dfc4bc4c6649270333101e8618;hb=a4c19f3195c6099d4d7cca526c5b5894758cffc8 karaf-3.0.x - https://git-wip-us.apache.org/repos/asf?p=karaf.git;a=blob;f=jdbc/core/src/main/resources/org/apache/karaf/jdbc/internal/datasource-generic.xml;h=090daeeb4fd296dfc4bc4c6649270333101e8618;hb=refs/heads/karaf-3.0.x Paul Spencer > On May 4, 2015, at 2:34 PM, Paul Spencer <[email protected]> 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 >
