i am interested in the solution if this was fiwed!
Try with the below data source, it works:
Hi! I use SQL and MYSQL in my services and they work great!
You should install them into de OSGi container. MySQL provides a Bundle for the driver, but MySQL doesn't.
You need the features: jpa
And install thw drivers with this command
With this you should have the bundles with the correct export/import package inside your karaf context. So if you put inside your Import-package the classes you need, they will found it inside the OSGi register (this is with the maven-bundle-plugin)
<property name="URL" value="$" />
<property name="user" value="$" />
<property name="password" value="$" />
The class OSGiDataSource is an extension of com.microsoft.sqlserver.jdbc.SQLServerDataSource so I can export it in the OSGi register as a unique service
The export service
<osgi:service id="osgiDataSource" ref="dataSource"
And the import service
Hope this can help you!