Hi,

the pax-jdbc feature isn't part of the std. feature set of Karaf, you have
to add that dependency yourself.
Best to add the feature repository in your own feature and declare a
feature dependency to it. [1]

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

2017-04-15 9:40 GMT+02:00 Steinar Bang <[email protected]>:

> >>>>> Steinar Bang <[email protected]>:
>
> > The next problem seems to be missing feature requirements.  Is this
> > because the pax exam test is running a minimal karaf installation? Do I
> > need to "preload" some features?
>
> I tried adding first just the standard feature repository, but that
> didn't change the error message.
>
> Then I tried adding the standard feature repository, and then load the
> (presumably missing) pax-jdbc feature from that, but that didn't help
> either, I got the same error message:
>     @Configuration
>     public Option[] config() {
>         final MavenArtifactUrlReference karafUrl =
> maven().groupId("org.apache.karaf").artifactId("apache-
> karaf-minimal").type("zip").versionAsInProject();
>         final MavenArtifactUrlReference karafStandrdRepo =
> maven().groupId("org.apache.karaf.features").artifactId("
> standard").versionAsInProject().type("xml").classifier("features");
>         final MavenArtifactUrlReference ukelonnFeatureRepo =
> maven().groupId("no.priv.bang.ukelonn").artifactId("ukelonn.
> karaf").versionAsInProject().type("xml").classifier("features");
>         return options(
>             
> karafDistributionConfiguration().frameworkUrl(karafUrl).unpackDirectory(new
> File("target/exam")).useDeployFolder(false),
>             configureConsole().ignoreLocalConsole().ignoreRemoteShell(),
>             features(karafStandrdRepo, "pax-jdbc"),
>             features(ukelonnFeatureRepo, "ukelonn-db-derby-test",
> "ukelonn"));
>     }
>
>


-- 

Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>
Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>

Software Architect / Project Manager / Scrum Master

Reply via email to