-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
karaf - Multiple dbcp2 DataSource created when creating a DataSource #369
Comments
Thanks for the report.
|
Thanks, I edited the issue with what you asked |
In my case, I have only:
However in your case, I see that
Something's wrong with your runtime... I'd need to (or you'd need to) debug how/when the |
Ok thanks, I'm reinstalling the runtime in a clean environment to see where the issue might come from |
Hi, so I reinstalled the runtime in a clean environment. The issue for Oracle Datasources that were replicated is gone, but now I have a different but similar issue.
When I run the This is the result of the command This is the result of the command More information about the runtime : |
Just by checking
|
Hi yes, sorry it was an old version of the file I replaced it with a new one (in the previous comment), there is only two with the file path as : file:/data/Talend/Runtime_ESBSE/container/etc |
Is it fine now? I checked the
So you have 3 bundles providing |
Hi,
I'm new to pax-jdbc and karaf and I'm working on an evolution a route that has to use two different datasources (one postgresql and one oracle).
I'm facing an issue with Karaf (version 4.2.11) and creating jdbc datasources. I first created a DataSource pool connection for PostgreSQL and everything went fine I used this configuration file :
And I tried to create another one for Oracle using the same template :
But after I put the file in the container it creates duplicates of the object :
The drivers versions are :
Postgresql : 42.2.2
Oracle : ojdbc8/19.13.0.0.1
And the features installed on karaf :
jdbc : 4.2.11
pax-jdbc-pool-dbcp2 : 1.4.4
jndi : 4.2.11
logs when putting the cfg file in the etc folder :
(the logs are cropped, there are like 800 lines that are repeated)
After the command
ls org.osgi.service.jdbc.DataSourceFactory
I had like 300 objects all with the osgi.jdbc.driver.class = oracle.jdbc.OracleDriver and each one had a different osgi.jdbc.driver.name like org.apache.servicemix.bundles.jasypt-spring31-native and org.apache.karaf.jaas.jasypt-nativeIs there something missing on my configuration file specific for Oracle db or something on my karaf installation that might cause this issue ?
Thanks
stackoverflow post : https://stackoverflow.com/questions/79338900/karaf-multiple-dbcp2-datasource-created-when-creating-a-datasource
output of
ls org.osgi.service.jdbc.DataSourceFactory
:ls_org_osgi_service_jdbc_DataSourceFactory_output.txt
output of
ls javax.sql.DataSource
(I removed sensistive elements password and urls) :ls_javax_sql_DataSource_output.txt
The text was updated successfully, but these errors were encountered: