Hello,
I’ve tried migrating our application from Karaf 4.3.x to 4.4.x.
Application doesn’t start. After reading timeouts, I’ve noticed, that javax.sql.DataSource were not created.
Were there any breaking changes in configuration file formats?
I have pax-jdbc-config installed in console, it’s starting, running, but it doesn’t produce any data sources…
Example configuration
File:
etc/org.ops4j.datasource-main.cfg
Content:
osgi.jdbc.driver.class=org.postgresql.Driver
url=jdbc:postgresql://pg-server.intern:5432/appmain
dataSourceName=main-pg
user=appuser
password=apppasswod
pool=dbcp2
#osgi.connection.pooling.enabled=true
#osgi.connection.max=32
jdbc.pool.maxTotal=4
jdbc.pool.maxIdle=2
jdbc.pool.testOnBorrow=true
jdbc.factory.validationQuery=select 1
jdbc.factory.validationQueryTimeout=5
jdbc.factory.maxConnLifetimeMillis=120000
I was trying to find any hints in release notes of Karaf 4.4.0, but no huge incompatibility is mentioned.
I’d be grateful for any hints, currently I’m fully lost.
Best regards,
Lukasz Lech
--
--
------------------
OPS4J - http://www.ops4j.org - op...@googlegroups.com
---
You received this message because you are subscribed to the Google Groups "OPS4J" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ops4j+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ops4j/GV0P278MB017880EAC64BF65494730CB7F6722%40GV0P278MB0178.CHEP278.PROD.OUTLOOK.COM.
Hello,
I don’t see any errors or stack traces that there’s something wrong with my config files. It looks like they were ignored…
I’m declaring following dependencies in my private feature:
<feature>pax-jdbc-config</feature>
<feature>pax-jdbc-postgresql</feature>
<feature>pax-jdbc-pool-dbcp2</feature>
And this is la -l output (with private bundles removed):
karaf@root()> la -l
START LEVEL 100 , List Threshold: 0
ID | State | Lvl | Version | Location
----+-------------+-----+-------------------------+--------------------------------------------------------------------
0 | Active | 0 | 7.0.5 | System Bundle
1 | Resolved | 1 | 4.4.2 | mvn:org.apache.karaf.features/.../4.4.2
2 | Active | 5 | 2.6.12 | mvn:org.ops4j.pax.url/pax-url-aether/2.6.12
3 | Active | 5 | 1.2.4 | mvn:org.apache.felix/org.apache.felix.metatype/1.2.4
4 | Active | 5 | 4.4.2 | mvn:org.apache.karaf.services/.../4.4.2
5 | Active | 8 | 2.4.0 | mvn:org.fusesource.jansi/jansi/2.4.0
6 | Active | 8 | 2.1.3 | mvn:org.ops4j.pax.logging/pax-logging-api/2.1.3
7 | Active | 8 | 2.1.3 | mvn:org.ops4j.pax.logging/pax-logging-log4j2/2.1.3
8 | Active | 9 | 1.2.0.202109301733 | mvn:org.osgi/org.osgi.util.function/1.2.0
9 | Active | 9 | 1.2.0.202109301733 | mvn:org.osgi/org.osgi.util.promise/1.2.0
10 | Active | 9 | 1.0.2 | mvn:org.apache.felix/org.apache.felix.coordinator/1.0.2
11 | Active | 9 | 1.0.14 | mvn:org.apache.felix/org.apache.felix.converter/1.0.14
12 | Active | 10 | 1.9.24 | mvn:org.apache.felix/org.apache.felix.configadmin/1.9.24
13 | Active | 11 | 4.4.2 | mvn:org.apache.karaf.config/org.apache.karaf.config.core/4.4.2
14 | Active | 11 | 1.0.16 | mvn:org.apache.felix/org.apache.felix.configurator/1.0.16
15 | Active | 11 | 1.2.6 | mvn:org.apache.felix/.../1.2.6
16 | Active | 11 | 1.2.14 | mvn:org.apache.sling/org.apache.sling.commons.johnzon/1.2.14
17 | Active | 11 | 1.0.6 | mvn:org.apache.felix/org.apache.felix.cm.json/1.0.6
18 | Active | 12 | 3.7.4 | mvn:org.apache.felix/org.apache.felix.fileinstall/3.7.4
19 | Active | 15 | 4.4.2 | mvn:org.apache.karaf.features/org.apache.karaf.features.core/4.4.2
20 | Active | 30 | 1.70 | mvn:org.bouncycastle/bcpkix-jdk15on/1.70
21 | Active | 30 | 1.70 | mvn:org.bouncycastle/bcprov-jdk15on/1.70
22 | Active | 30 | 1.70 | mvn:org.bouncycastle/bcutil-jdk15on/1.70
23 | Active | 30 | 2.9.0 | mvn:com.google.code.gson/gson/2.9.0
30 | Active | 30 | 4.0.0 | mvn:jakarta.servlet/jakarta.servlet-api/4.0.4
31 | Active | 20 | 1.0.1 | mvn:org.apache.aries.blueprint/org.apache.aries.blueprint.api/1.0.1
32 | Active | 20 | 1.3.2 | mvn:org.apache.aries.blueprint/org.apache.aries.blueprint.cm/1.3.2
33 | Active | 20 | 1.10.3 | mvn:org.apache.aries.blueprint/.../1.10.3
34 | Resolved | 20 | 1.0.0 | mvn:org.apache.aries.blueprint/.../1.0.0
35 | Active | 30 | 1.1.5 | mvn:org.apache.aries.jmx/org.apache.aries.jmx.api/1.1.5
36 | Active | 30 | 1.2.0 | mvn:org.apache.aries.jmx/org.apache.aries.jmx.blueprint.api/1.2.0
37 | Active | 30 | 1.2.0 | mvn:org.apache.aries.jmx/org.apache.aries.jmx.blueprint.core/1.2.0
38 | Active | 30 | 1.1.8 | mvn:org.apache.aries.jmx/org.apache.aries.jmx.core/1.1.8
39 | Active | 30 | 1.2.0 | mvn:org.apache.aries.jmx/org.apache.aries.jmx.whiteboard/1.2.0
40 | Active | 20 | 1.1.13 | mvn:org.apache.aries.proxy/org.apache.aries.proxy/1.1.13
41 | Active | 20 | 1.1.3 | mvn:org.apache.aries/org.apache.aries.util/1.1.3
42 | Active | 30 | 1.1.8 | mvn:org.apache.felix/.../1.1.8
43 | Active | 30 | 1.0.10 | mvn:org.apache.felix/.../1.0.10
44 | Active | 30 | 4.5.13 | mvn:org.apache.httpcomponents/httpclient-osgi/4.5.13
45 | Active | 30 | 4.4.15 | mvn:org.apache.httpcomponents/httpcore-osgi/4.4.15
46 | Active | 30 | 4.4.2 | mvn:org.apache.karaf.bundle/.../4.4.2
47 | Active | 30 | 4.4.2 | mvn:org.apache.karaf.bundle/org.apache.karaf.bundle.core/4.4.2
48 | Active | 24 | 4.4.2 | mvn:org.apache.karaf.deployer/.../4.4.2
49 | Active | 26 | 4.4.2 | mvn:org.apache.karaf.deployer/.../4.4.2
50 | Active | 24 | 4.4.2 | mvn:org.apache.karaf.deployer/org.apache.karaf.deployer.kar/4.4.2
51 | Active | 24 | 4.4.2 | mvn:org.apache.karaf.deployer/org.apache.karaf.deployer.wrap/4.4.2
52 | Active | 30 | 4.4.2 | mvn:org.apache.karaf.diagnostic/.../4.4.2
53 | Active | 80 | 4.4.2 | mvn:org.apache.karaf/org.apache.karaf.event/4.4.2
54 | Active | 30 | 4.4.2 | mvn:org.apache.karaf.features/.../4.4.2
55 | Active | 30 | 4.4.2 | mvn:org.apache.karaf.instance/org.apache.karaf.instance.core/4.4.2
56 | Active | 30 | 4.4.2 | mvn:org.apache.karaf.jaas/org.apache.karaf.jaas.command/4.4.2
57 | Active | 30 | 4.4.2 | mvn:org.apache.karaf.jaas/org.apache.karaf.jaas.config/4.4.2
58 | Active | 30 | 4.4.2 | mvn:org.apache.karaf.jaas/org.apache.karaf.jaas.modules/4.4.2
59 | Active | 30 | 4.4.2 | mvn:org.apache.karaf.kar/org.apache.karaf.kar.core/4.4.2
60 | Active | 30 | 4.4.2 | mvn:org.apache.karaf.log/org.apache.karaf.log.core/4.4.2
61 | Active | 30 | 4.4.2 | mvn:org.apache.karaf.management/.../4.4.2
62 | Active | 30 | 4.4.2 | mvn:org.apache.karaf.package/org.apache.karaf.package.core/4.4.2
63 | Active | 30 | 4.4.2 | mvn:org.apache.karaf.service/org.apache.karaf.service.core/4.4.2
64 | Active | 30 | 4.4.2 | mvn:org.apache.karaf.shell/org.apache.karaf.shell.commands/4.4.2
65 | Active | 30 | 4.4.2 | mvn:org.apache.karaf.shell/org.apache.karaf.shell.core/4.4.2
66 | Active | 30 | 4.4.2 | mvn:org.apache.karaf.shell/org.apache.karaf.shell.ssh/4.4.2
67 | Active | 30 | 4.4.2 | mvn:org.apache.karaf.system/org.apache.karaf.system.core/4.4.2
68 | Active | 30 | 4.4.2 | mvn:org.apache.karaf.webconsole/.../4.4.2
69 | Active | 30 | 4.4.2 | mvn:org.apache.karaf.webconsole/.../4.4.2
70 | Active | 30 | 4.4.2 | mvn:org.apache.karaf.webconsole/.../4.4.2
71 | Active | 30 | 4.4.2 | mvn:org.apache.karaf.webconsole/.../4.4.2
72 | Active | 30 | 2.9.1 | mvn:org.apache.sshd/sshd-osgi/2.9.1
73 | Active | 30 | 2.9.1 | mvn:org.apache.sshd/sshd-scp/2.9.1
74 | Active | 30 | 2.9.1 | mvn:org.apache.sshd/sshd-sftp/2.9.1
75 | Active | 30 | 9.4.49.v20220914 | mvn:org.eclipse.jetty/jetty-client/9.4.49.v20220914
76 | Active | 30 | 9.4.49.v20220914 | mvn:org.eclipse.jetty/jetty-continuation/9.4.49.v20220914
77 | Active | 30 | 9.4.49.v20220914 | mvn:org.eclipse.jetty/jetty-http/9.4.49.v20220914
78 | Active | 30 | 9.4.49.v20220914 | mvn:org.eclipse.jetty/jetty-io/9.4.49.v20220914
79 | Active | 30 | 9.4.49.v20220914 | mvn:org.eclipse.jetty/jetty-jaas/9.4.49.v20220914
80 | Active | 30 | 9.4.49.v20220914 | mvn:org.eclipse.jetty/jetty-jmx/9.4.49.v20220914
81 | Active | 30 | 9.4.49.v20220914 | mvn:org.eclipse.jetty/jetty-security/9.4.49.v20220914
82 | Active | 30 | 9.4.49.v20220914 | mvn:org.eclipse.jetty/jetty-server/9.4.49.v20220914
83 | Active | 30 | 9.4.49.v20220914 | mvn:org.eclipse.jetty/jetty-servlet/9.4.49.v20220914
84 | Active | 30 | 9.4.49.v20220914 | mvn:org.eclipse.jetty/jetty-servlets/9.4.49.v20220914
85 | Active | 30 | 9.4.49.v20220914 | mvn:org.eclipse.jetty/jetty-util/9.4.49.v20220914
86 | Active | 30 | 9.4.49.v20220914 | mvn:org.eclipse.jetty/jetty-util-ajax/9.4.49.v20220914
87 | Active | 30 | 9.4.49.v20220914 | mvn:org.eclipse.jetty/jetty-xml/9.4.49.v20220914
88 | Active | 30 | 3.21.0 | mvn:org.jline/jline/3.21.0
89 | Active | 20 | 9.4.0 | mvn:org.ow2.asm/asm/9.4
90 | Active | 20 | 9.4.0 | mvn:org.ow2.asm/asm-commons/9.4
91 | Active | 20 | 9.4.0 | mvn:org.ow2.asm/asm-tree/9.4
92 | Active | 20 | 9.4.0 | mvn:org.ow2.asm/asm-analysis/9.4
93 | Active | 20 | 9.4.0 | mvn:org.ow2.asm/asm-util/9.4
94 | Active | 10 | 2.6.12 | mvn:org.ops4j.pax.url/pax-url-wrap/2.6.12/jar/uber
95 | Active | 30 | 8.0.11 | mvn:org.ops4j.pax.web/pax-web-api/8.0.11
96 | Resolved | 30 | 8.0.11 | mvn:org.ops4j.pax.web/pax-web-compatibility-servlet31/8.0.11
97 | Active | 30 | 8.0.11 | mvn:org.ops4j.pax.web/pax-web-jetty/8.0.11
98 | Active | 30 | 8.0.11 | mvn:org.ops4j.pax.web/pax-web-runtime/8.0.11
99 | Active | 30 | 8.0.11 | mvn:org.ops4j.pax.web/pax-web-spi/8.0.11
100 | Active | 30 | 8.0.11 | mvn:org.ops4j.pax.web/pax-web-tomcat-common/8.0.11
124 | Active | 30 | 2.13.2 | mvn:com.fasterxml.jackson.core/jackson-annotations/2.13.2
125 | Active | 30 | 2.13.2 | mvn:com.fasterxml.jackson.core/jackson-core/2.13.2
126 | Active | 30 | 2.13.2.2 | mvn:com.fasterxml.jackson.core/jackson-databind/2.13.2.2
127 | Active | 30 | 20.0.0 | mvn:com.google.guava/guava/20.0
345 | Active | 30 | 1.6.2 | mvn:io.swagger/swagger-annotations/1.6.2
346 | Active | 80 | 3.18.1.GA | mvn:org.javassist/javassist/3.18.1-GA
347 | Active | 80 | 1.2 | mvn:javax.annotation/javax.annotation-api/1.2
348 | Active | 80 | 3.0.3 | mvn:jakarta.el/jakarta.el-api/3.0.3
349 | Active | 80 | 2.0.0.SP1 | mvn:javax.enterprise/cdi-api/2.0.SP1
350 | Active | 80 | 1.2.2 | mvn:javax.interceptor/javax.interceptor-api/1.2.2
351 | Active | 80 | 1.2 | mvn:javax.transaction/javax.transaction-api/1.2
352 | Active | 50 | 1.1.0.Final | mvn:javax.validation/validation-api/1.1.0.Final
353 | Active | 30 | 2.1.99.b01 | mvn:javax.ws.rs/javax.ws.rs-api/2.1.1
354 | Active | 50 | 1.1.1 | mvn:javax.ws.rs/jsr311-api/1.1.1
438 | Active | 30 | 2.7.3 | mvn:org.apache.aries.jpa/org.apache.aries.jpa.api/2.7.3
439 | Active | 30 | 2.7.3 | mvn:org.apache.aries.jpa/org.apache.aries.jpa.blueprint/2.7.3
440 | Active | 30 | 2.7.3 | mvn:org.apache.aries.jpa/org.apache.aries.jpa.container/2.7.3
441 | Active | 80 | 2.7.3 | mvn:org.apache.aries.jpa.javax.persistence/.../2.7.3
442 | Active | 30 | 2.7.3 | mvn:org.apache.aries.jpa/org.apache.aries.jpa.support/2.7.3
443 | Active | 30 | 3.2.2 | mvn:commons-collections/commons-collections/3.2.2
444 | Active | 30 | 1.9.4 | mvn:commons-beanutils/commons-beanutils/1.9.4
445 | Active | 30 | 1.15.0 | mvn:commons-codec/commons-codec/1.15
446 | Active | 30 | 4.4.0 | mvn:org.apache.commons/commons-collections4/4.4
447 | Active | 30 | 1.8.0 | mvn:org.apache.commons/commons-csv/1.8
448 | Active | 30 | 2.11.0 | mvn:commons-io/commons-io/2.11.0
449 | Active | 80 | 2.11.1 | mvn:org.apache.commons/commons-pool2/2.11.1
450 | Active | 30 | 1.10.0 | mvn:org.apache.commons/commons-text/1.10.0
451 | Active | 30 | 1.8.1 | mvn:commons-digester/commons-digester/1.8.1
452 | Active | 30 | 2.1 | mvn:commons-digester/commons-digester/2.1
453 | Active | 30 | 3.2.0 | mvn:org.apache.commons/commons-digester3/3.2
454 | Active | 30 | 2.6 | mvn:commons-lang/commons-lang/2.6
455 | Active | 30 | 3.12.0 | mvn:org.apache.commons/commons-lang3/3.12.0
456 | Active | 30 | 4.4.2 | mvn:org.apache.karaf.http/org.apache.karaf.http.core/4.4.2
457 | Active | 30 | 4.4.2 | mvn:org.apache.karaf.webconsole/.../4.4.2
458 | Active | 30 | 3.3.0.1 | mvn:org.apache.servicemix.bundles/.../3.3.0_1
459 | Active | 80 | 1.9.3.1 | mvn:org.apache.servicemix.bundles/.../1.9.3_1
460 | Active | 30 | 2.0.6.1 | mvn:org.apache.servicemix.bundles/.../2.0.6_1
461 | Active | 30 | 5.3.23.1 | mvn:org.apache.servicemix.bundles/.../5.3.23_1
462 | Active | 30 | 5.3.23.1 | mvn:org.apache.servicemix.bundles/.../5.3.23_1
463 | Active | 30 | 5.3.23.1 | mvn:org.apache.servicemix.bundles/.../5.3.23_1
464 | Active | 30 | 5.3.23.1 | mvn:org.apache.servicemix.bundles/.../5.3.23_1
465 | Active | 30 | 5.3.23.1 | mvn:org.apache.servicemix.bundles/.../5.3.23_1
466 | Active | 30 | 5.3.23.1 | mvn:org.apache.servicemix.bundles/.../5.3.23_1
467 | Active | 30 | 5.3.23.1 | mvn:org.apache.servicemix.bundles/.../5.3.23_1
468 | Active | 30 | 5.3.23.1 | mvn:org.apache.servicemix.bundles/.../5.3.23_1
469 | Active | 50 | 3.2.0.v201302191141 | mvn:org.eclipse.persistence/org.eclipse.persistence.antlr/2.6.4
470 | Active | 50 | 5.0.1.v201405080102 | mvn:org.eclipse.persistence/org.eclipse.persistence.asm/2.6.4
471 | Active | 50 | 2.6.4.v20160829-44060b6 | mvn:org.eclipse.persistence/org.eclipse.persistence.core/2.6.4
472 | Active | 50 | 2.6.4.v20160829-44060b6 | mvn:org.eclipse.persistence/org.eclipse.persistence.jpa/2.6.4
473 | Active | 50 | 2.6.4.v20160829-44060b6 | mvn:org.eclipse.persistence/org.eclipse.persistence.jpa.jpql/2.6.4
474 | Active | 50 | 2.6.4.v20160829-44060b6 | mvn:org.eclipse.persistence/org.eclipse.persistence.moxy/2.6.4
475 | Active | 30 | 2.3.31.stable | mvn:org.freemarker/freemarker/2.3.31
476 | Active | 33 | 2.4.0.b34 | mvn:org.glassfish.hk2/hk2-api/2.4.0-b34
477 | Active | 33 | 2.4.0.b34 | mvn:org.glassfish.hk2.external/aopalliance-repackaged/2.4.0-b34
478 | Active | 33 | 2.4.0.b34 | mvn:org.glassfish.hk2.external/javax.inject/2.4.0-b34
479 | Active | 33 | 2.4.0.b34 | mvn:org.glassfish.hk2/hk2-locator/2.4.0-b34
480 | Active | 33 | 1.0.1 | mvn:org.glassfish.hk2/osgi-resource-locator/1.0.1
481 | Active | 33 | 2.4.0.b34 | mvn:org.glassfish.hk2/hk2-utils/2.4.0-b34
482 | Active | 50 | 1.0.4 | mvn:org.glassfish/javax.json/1.0.4
483 | Active | 36 | 2.22.2 | mvn:org.glassfish.jersey.bundles.repackaged/jersey-guava/2.22.2
484 | Active | 36 | 2.22.2 | mvn:org.glassfish.jersey.containers/jersey-container-servlet/2.22.2
485 | Active | 36 | 2.22.2 | mvn:org.glassfish.jersey.containers/.../2.22.2
486 | Active | 36 | 2.22.2 | mvn:org.glassfish.jersey.core/jersey-client/2.22.2
487 | Active | 36 | 2.22.2 | mvn:org.glassfish.jersey.core/jersey-common/2.22.2
488 | Active | 36 | 2.22.2 | mvn:org.glassfish.jersey.core/jersey-server/2.22.2
489 | Active | 36 | 2.22.2 | mvn:org.glassfish.jersey.media/jersey-media-multipart-ie-fix/2.22.2
490 | Active | 36 | 2.22.2 | mvn:org.glassfish.jersey.media/jersey-media-sse/2.22.2
491 | Active | 80 | 1.9.6 | mvn:org.jvnet.mimepull/mimepull/1.9.6
492 | Active | 35 | 3.5.3 | mvn:org.liquibase/liquibase-core/3.5.3
493 | Active | 80 | 1.0.1.202109301733 | mvn:org.osgi/org.osgi.service.jdbc/1.0.1
494 | Active | 80 | 42.3.7 | mvn:org.postgresql/postgresql/42.3.7
495 | Active | 30 | 1.33.0 | mvn:org.yaml/snakeyaml/1.33
539 | Active | 35 | 0 | wrap:mvn:com.auth0/java-jwt/3.19.1
540 | Active | 35 | 0 | wrap:mvn:com.auth0/jwks-rsa/0.21.1
541 | Active | 80 | 1.5.4 | mvn:org.ops4j.pax.jdbc/pax-jdbc/1.5.4
542 | Active | 80 | 1.5.4 | mvn:org.ops4j.pax.jdbc/pax-jdbc-config/1.5.4
543 | Active | 80 | 1.5.4 | mvn:org.ops4j.pax.jdbc/pax-jdbc-pool-common/1.5.4
544 | Active | 80 | 4.4.2 | mvn:org.apache.karaf.jdbc/org.apache.karaf.jdbc.core/4.4.2
Best regards,
Lukasz Lech
To view this discussion on the web visit https://groups.google.com/d/msgid/ops4j/CAAdXmhoJty_h%3D%2BcE%3DzjwGAjeuFf9UQhfEaPxcPFuJUKL9_HL%3Dw%40mail.gmail.com.
Hello,
I’ve solved the problem by updating to the 4.4.5 and writing pax-jdbc-* features explicitly in org.apache.karaf.features on the beginning of the featuresBoot parameter. Previously, they were installed as dependencies of other features (maybe the loading sequence problem?)
I hope the same will work for the build with karaf plugin.
To view this discussion on the web visit https://groups.google.com/d/msgid/ops4j/ZR0P278MB0188CBFF7CDF765B0A4DDDADF6722%40ZR0P278MB0188.CHEP278.PROD.OUTLOOK.COM.
To view this discussion on the web visit https://groups.google.com/d/msgid/ops4j/GV0P278MB0178B3555D1AAA80384D9F8CF6712%40GV0P278MB0178.CHEP278.PROD.OUTLOOK.COM.