[
https://issues.apache.org/jira/browse/KARAF-7297?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17460523#comment-17460523
]
Gerhard Munze commented on KARAF-7297:
--------------------------------------
i have the following features installed:
{code:java}
jpa │ 2.7.3 │ x │ Started │
aries-jpa-2.7.3 │ OSGi Persistence Container
camunda-commons │ 1.6.1 │ │ Started │
│
camunda-models │ 7.10.0 │ │ Started │
│
camunda-spin │ 1.6.3 │ x │ Started │
│
camunda-dmn │ 7.10.0 │ │ Started │
│
camunda-core │ 7.10.0 │ x │ Started │
│
pax-transx-tm-api │ 0.5.0 │ │ Started │
pax-transx-0.5.0 │
pax-transx-tm-geronimo │ 0.5.0 │ │ Started │
pax-transx-0.5.0 │
pax-jdbc-spec │ 1.5.1 │ │ Started │
org.ops4j.pax.jdbc-1.5.1 │ Provides OSGi JDBC Service spec
pax-jdbc │ 1.5.1 │ │ Started │
org.ops4j.pax.jdbc-1.5.1 │ Provides JDBC Service support
pax-jdbc-config │ 1.5.1 │ │ Started │
org.ops4j.pax.jdbc-1.5.1 │ Provides JDBC Config support
pax-jdbc-h2 │ 1.5.1 │ x │ Started │
org.ops4j.pax.jdbc-1.5.1 │ Provides JDBC H2 DataSourceFactory
pax-jdbc-mariadb │ 1.5.1 │ x │ Started │
org.ops4j.pax.jdbc-1.5.1 │ Provides JDBC Mariadb DataSourceFactory
pax-jdbc-jtds │ 1.5.1 │ x │ Started │
org.ops4j.pax.jdbc-1.5.1 │ Provides JDBC jTDS DataSourceFactory
pax-jdbc-pool-c3p0 │ 1.5.1 │ x │ Started │
org.ops4j.pax.jdbc-1.5.1 │ Provides JDBC Pooling using C3P0
transaction-api │ 1.2.0 │ │ Started │
enterprise-4.3.3 │
transaction-manager-geronimo │ 3.1.3 │ │ Started │
enterprise-4.3.3 │ Geronimo Transaction Manager
transaction │ 2.0.0 │ x │ Started │
enterprise-4.3.3 │ OSGi Transaction Manager
hibernate │ 5.4.32.Final │ x │ Started │
enterprise-4.3.3 │ Hibernate JPA engine support
jndi │ 4.3.3 │ x │ Started │
enterprise-4.3.3 │ OSGi Service Registry JNDI access
jdbc │ 4.3.3 │ x │ Started │
enterprise-4.3.3 │ JDBC service and commands
pax-web-core │ 7.3.19 │ │ Started │
org.ops4j.pax.web-7.3.19 │ Provide Core pax-web bundles
pax-jetty │ 9.4.43.v20210629 │ x │ Started │
org.ops4j.pax.web-7.3.19 │ Provide Jetty engine support
pax-http-jetty │ 7.3.19 │ │ Started │
org.ops4j.pax.web-7.3.19 │
pax-http │ 7.3.19 │ │ Started │
org.ops4j.pax.web-7.3.19 │ Implementation of the OSGI HTTP Service
pax-http-whiteboard │ 7.3.19 │ x │ Started │
org.ops4j.pax.web-7.3.19 │ Provide HTTP Whiteboard pattern support
pax-war │ 7.3.19 │ x │ Started │
org.ops4j.pax.web-7.3.19 │ Provide support of a full WebContainer
pax-jsf-support │ 7.3.19 │ x │ Started │
org.ops4j.pax.web-7.3.19 │
aries-proxy │ 4.3.3 │ │ Started │
standard-4.3.3 │ Aries Proxy
aries-blueprint │ 4.3.3 │ │ Started │
standard-4.3.3 │ Aries Blueprint
feature │ 4.3.3 │ │ Started │
standard-4.3.3 │ Features Support
shell │ 4.3.3 │ │ Started │
standard-4.3.3 │ Karaf Shell
shell-compat │ 4.3.3 │ │ Started │
standard-4.3.3 │ Karaf Shell Compatibility
deployer │ 4.3.3 │ │ Started │
standard-4.3.3 │ Karaf Deployer
bundle │ 4.3.3 │ │ Started │
standard-4.3.3 │ Provide Bundle support
config │ 4.3.3 │ │ Started │
standard-4.3.3 │ Provide OSGi ConfigAdmin support
diagnostic │ 4.3.3 │ │ Started │
standard-4.3.3 │ Provide Diagnostic support
instance │ 4.3.3 │ │ Started │
standard-4.3.3 │ Provide Instance support
jaas │ 4.3.3 │ │ Started │
standard-4.3.3 │ Provide JAAS support
log │ 4.3.3 │ │ Started │
standard-4.3.3 │ Provide Log support
package │ 4.3.3 │ │ Started │
standard-4.3.3 │ Package commands and mbeans
service │ 4.3.3 │ │ Started │
standard-4.3.3 │ Provide Service support
system │ 4.3.3 │ │ Started │
standard-4.3.3 │ Provide System support
pax-web-http │ 7.3.19 │ │ Started │
standard-4.3.3 │ Pax Web OSGi HTTP Service
http │ 7.3.19 │ │ Started │
standard-4.3.3 │ Transition feature for backward
compatibility
pax-web-war │ 4.3.3 │ │ Started │
standard-4.3.3 │ Turn Karaf as a full WebContainer
war │ 4.3.3 │ x │ Started │
standard-4.3.3 │ Transition feature for backward
compatibility
kar │ 4.3.3 │ │ Started │
standard-4.3.3 │ Provide KAR (KARaf archive) support
ssh │ 4.3.3 │ │ Started │
standard-4.3.3 │ Provide a SSHd server on Karaf
management │ 4.3.3 │ │ Started │
standard-4.3.3 │ Provide a JMX MBeanServer and a set of
MBeans in
jasypt-encryption │ 4.3.3 │ x │ Started │
standard-4.3.3 │ Advanced encryption support for Karaf
security
scr │ 4.3.3 │ │ Started │
standard-4.3.3 │ Declarative Service support
pax-url-wrap │ 2.6.7 │ │ Started │
standard-4.3.3 │ Wrap URL handler
wrap │ 2.6.7 │ x │ Started │
standard-4.3.3 │ Transition feature to pax-url-wrap
standard │ 4.3.3 │ x │ Started │
standard-4.3.3 │ Wrap feature describing all features part
of a st
cxf-specs │ 3.3.4 │ │ Started │
cxf-3.3.4 │
cxf-core │ 3.3.4 │ │ Started │
cxf-3.3.4 │
cxf-commands │ 3.3.4 │ x │ Started │
cxf-3.3.4 │
cxf-wsdl │ 3.3.4 │ │ Started │
cxf-3.3.4 │
cxf-rt-security │ 3.3.4 │ │ Started │
cxf-3.3.4 │
cxf-http │ 3.3.4 │ │ Started │
cxf-3.3.4 │
cxf-bindings-soap │ 3.3.4 │ │ Started │
cxf-3.3.4 │
cxf-jaxws │ 3.3.4 │ x │ Started │
cxf-3.3.4 │
cxf-jaxrs │ 3.3.4 │ x │ Started │
cxf-3.3.4 │
cxf-jackson │ 3.3.4 │ │ Started │
cxf-3.3.4 │
cxf-rs-description-openapi-v3 │ 3.3.4 │ x │ Started │
cxf-3.3.4 │
cxf-databinding-jaxb │ 3.3.4 │ │ Started │
cxf-3.3.4 │
{code}
> 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
> Assignee: Jean-Baptiste Onofré
> Priority: Critical
>
> 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)