>>>>> Achim Nierbeck <[email protected]>: > the pax-jdbc feature isn't part of the std. feature set of Karaf, you have > to add that dependency yourself.
Ok. Out of curiosity: how is the pax jdbc found when I install the feature on a regular karaf? The procedure I use is the one here: https://github.com/steinarb/ukelonn/tree/using-vaadin#kjøring-på-apache-karaf-med-testdatabasen Translation of the essentials from the Norwegian text of the README: 1. Clone and build the webapp 2. Download and upack karaf 4.0.9 (The README says 4.0.7, but I just tried karaf 4.0.9 and that worked fine. I'm in the progress of moving to 4.1.1 (which requires work)) 3. Start the unpacked karaf and install the feature repository built from the webapp feature:repo-add mvn:no.priv.bang.ukelonn/ukelonn.karaf/LATEST/xml/features 4. Install the required features feature:install ukelonn-db-derby-test feature:install ukelonn I just tried this with a clean karaf 4.0.9 download and unpack, so I can verify that it works. The "feature:install ukelonn-db-derby-test" pulls in the necessary features. In the feature template file I haven't specified any feature repository: https://github.com/steinarb/ukelonn/blob/using-vaadin/ukelonn.bundle.test.db/src/main/feature/feature.xml Here's what's pulled in by ukelonn-db-derby-test: karaf@root()> feature:install ukelonn-db-derby-test karaf@root()> bundle:list START LEVEL 100 , List Threshold: 50 ID | State | Lvl | Version | Name ----------------------------------------------------------------------------------------------- 52 | Active | 80 | 10.11.1000001.1616546 | Apache Derby 10.11 53 | Active | 80 | 1.0.0.SNAPSHOT | Ukelonn webapp OSGi service definitions OSGi bundle 54 | Active | 80 | 1.0.0.SNAPSHOT | Ukelonn webapp derby test database OSGi bundle 55 | Active | 80 | 1.5.0 | OPS4J Base - Service Provider Access 56 | Active | 80 | 1.0.1 | OPS4J Pax JDBC Generic Driver Extender 57 | Active | 80 | 1.0.1 | OPS4J Pax JDBC Apache Derby Driver Adapter 58 | Active | 80 | 1.0.0.201505202023 | org.osgi:org.osgi.service.jdbc > Best to add the feature repository in your own feature and declare a > feature dependency to it. [1] Ok, will try. But I'm still curoious why running karaf in the integration tests is different to actually running in karaf..? :-) > regards, Achim > [1] - > https://github.com/ANierbeck/Karaf-Vertx/blob/master/Vertx-Microservices/Vertx-Microservices-Features/src/main/feature/feature.xml#L21 > [2] - https://ops4j1.jira.com/wiki/display/PAXJDBC/Documentation
