Gerhard Munze created KARAF-7297:
------------------------------------
Summary: Datasource not created from configuration file
Key: KARAF-7297
URL: https://issues.apache.org/jira/browse/KARAF-7297
Project: Karaf
Issue Type: Bug
Components: karaf
Affects Versions: 4.3.3
Reporter: Gerhard Munze
Datasource is not created from configuration file.
There are no specific Log Information written in the logfile.
The only thing we recognized is that the service.pid changed from the previous
karaf versions. (from example:
org.ops4j.datasource.c002512d-6f2a-4a6d-b5ec-b6ace19d31f1 to
org.ops4j.datasource~camunda)
karaf@root()> config:list "(dataSourceName=camunda)"
{code:java}
Pid: org.ops4j.datasource~camunda
FactoryPid: org.ops4j.datasource
BundleLocation: ?
Properties:
dataSourceName = camunda
felix.fileinstall.filename =
file:/opt/karaf/karaf-4.3.3/etc/org.ops4j.datasource-camunda.cfg
jdbc.c3p0.acquireIncrement = 1
jdbc.c3p0.dataSourceName = camunda
jdbc.c3p0.initialPoolSize = 2
jdbc.c3p0.maxIdleTime = 1000
jdbc.c3p0.maxPoolSize = 10
jdbc.c3p0.minPoolSize = 2
osgi.jdbc.driver.class = org.postgresql.Driver
osgi.jdbc.driver.name = Postgresql Driver
password = secretpassword
pool = c3p0
service.factoryPid = org.ops4j.datasource
service.pid = org.ops4j.datasource~camunda
url = jdbc:postgresql://192.168.178.35:31011/mydb
user = dbuser
xa = false
{code}
{code:java}
karaf@root()> jdbc:ds-list
Name │ Service Id │ Product │ Version │ URL │ Status
─────┼────────────┼─────────┼─────────┼─────┼───────
karaf@root()> jdbc:ds-factories
Name
│ Class
│ Version │ Registration bundle
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼──────────────────────────────────────────────┼──────────────────────┼──────────────────────────────────────────────────────────────────────────────────────
───────────────────────────
H2 JDBC Driver
│ org.h2.Driver
│ 1.4.200 (2019-10-14) │ com.h2database [72]
Microsoft JDBC Driver for SQL Server
│
com.microsoft.sqlserver.jdbc.SQLServerDriver │ 9.4 │
com.microsoft.sqlserver.mssql-jdbc [75]
org.h2-native
│ org.h2.Driver
│ 1.3.168 │ org.h2 [318]
MariaDB Connector/J
│ org.mariadb.jdbc.Driver
│ 2.7.3 │ org.mariadb.jdbc [346]
jtds
│ net.sourceforge.jtds.jdbc.Driver
│ │ org.ops4j.pax.jdbc.jtds [354]
mariadb
│ org.mariadb.jdbc.Driver
│ │ org.ops4j.pax.jdbc.mariadb [355]
mysql
│ org.mariadb.jdbc.Driver
│ │ org.ops4j.pax.jdbc.mariadb [355]
PostgreSQL JDBC Driver
│ org.postgresql.Driver
│ 42.2.21 │ org.postgresql.jdbc [369]
{code}
--
This message was sent by Atlassian Jira
(v8.20.1#820001)