I have a blueprint file which I am deploying to deploy folder which creates datasource and registers it as a service . In the feature file I am wrapping ojdbc7 and ucp.jar (both versions 12.1.0.2) and deployin . I have another bundle which accesses the datasource and when inserting a record I get the ClassNotFoundException oracle.jdbc.pool.OracleDataSource at runtime. There is not problem deploying all bundles. I see both oracle jars export the proper packages.I am trying to create a connection pool as below in blueprint file
<bean id="dataSource" class="oracle.ucp.jdbc.PoolDataSourceFactory" factory-method="getPoolDataSource">
<property name="URL" value="${jdbc.url}" />
<property name="user" value="${jdbc.username}" />
<property name="password" value="${jdbc.pwd}" />
<property name="connectionFactoryClassName" value="oracle.jdbc.pool.OracleDataSource" />
<property name="connectionPoolName" value="oracle_pool" />
<property name="minPoolSize" value="5" />
<property name="maxPoolSize" value="20" />
<property name="initialPoolSize" value="5" />
</bean>