Hi,

just recently I discovered that a custom distribution just using
featuresBoot is lacking certain libs, which a std.
Karaf distribution contains. [1]
Does your custom Distribution also contain those libraries?

After that you should have a distribution comparable to a manual installed
Karaf.

Regarding the ConfigurationAdmin Service, you'll might run into some sort
of race-condition.
In that case make sure your test also injects the Configuration Admin
Service and waits for it to show up.

[1] -
https://github.com/apache/karaf/blob/master/assemblies/apache-karaf/pom.xml#L157-L201

2015-12-14 15:19 GMT+01:00 Tom Barber <[email protected]>:

> Hello folks
>
> I have a custom distro and as boot features I have:
>
> featuresBoot=aries-blueprint, bundle, cellar, config, cxf, deployer,
> diagnostic, feature, http-whiteboard, instance, jaas, kar, log, management,
> package, service, shell, spring, spring-web, ssh, system,
> wrap,exam,test-dependencies
>
> But when I run it in PAX Exam Cellar seems to get upset and complains
> about:
>
> java.lang.IllegalStateException: Configuration Admin service has been
> unregistered
> at
> org.apache.felix.cm.impl.ConfigurationAdminImpl.getConfigurationManager(ConfigurationAdminImpl.java:301)[3:org.apache.felix.configadmin:1.8.8]
> at
> org.apache.felix.cm.impl.ConfigurationAdminImpl.getConfiguration(ConfigurationAdminImpl.java:152)[3:org.apache.felix.configadmin:1.8.8]
> at
> org.apache.karaf.cellar.hazelcast.HazelcastGroupManager.init(HazelcastGroupManager.java:72)[89:org.apache.karaf.cellar.hazelcast:4.0.0
>
> Anyone got any good ideas as to how to bootstrap Cellar.
>
> I looked at the Cellar ITests but they use a "manual" installation of
> Cellar not a boot time spin up.
>
> I also started the PAX Exam test instance and all the bundles seemed to be
> installed and running normally when I start it from ./bin/karaf.
>
> Thanks
>
> Tom
>



-- 

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