>>>>> 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"));
}