Improve OSGI metada #35

merged 1 commit into from Mar 25, 2013


None yet

2 participants


The goal of this pull requst (since kie refactoring) is to improve OSGI MetaData and retest deployment of individual bundles (instead of uber workaround). So here are the modifications done for KIE :

  • Disable activator class of as it generates NPE when deployed on Apache Karaf (see email send to community to discussion about that),
  • Export missing package org.kie.api.cdi which is required by bundle drools-compiler,
  • Remove singleton := true property as it generates an error on Karaf when bundle is updated (= stop, replaced and restarted)
Charles Moulliard Disable activator as it generates NPE, export missing package org.kie…
….cdi, remove singleton := true
@ge0ffrey ge0ffrey commented on the diff Mar 25, 2013
- <Bundle-Activator>org.kie.api.osgi.Activator</Bundle-Activator>
+ <!-- <Bundle-Activator>org.kie.api.osgi.Activator</Bundle-Activator> -->
ge0ffrey Mar 25, 2013 Member

Why disable it?


Because it generates the following error as the ServiceRegistry object is null.

ERROR: Bundle org.kie.api [67] EventDispatcher: Error during dispatch. (java.lang.NullPointerException)
at org.kie.api.osgi.Activator$DroolsServiceTracker.addingService(
at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(
at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(
at org.osgi.util.tracker.AbstractTracked.trackAdding(
at org.osgi.util.tracker.AbstractTracked.track(
at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(
at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(
at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(
at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(
at org.apache.felix.framework.Felix.fireServiceEvent(
at org.apache.felix.framework.Felix.registerService(
at org.apache.felix.framework.BundleContextImpl.registerService(
at org.drools.compiler.osgi.Activator.start(
at org.apache.felix.framework.util.SecureAction.startActivator(
at org.apache.felix.framework.Felix.activateBundle(
at org.apache.felix.framework.Felix.startBundle(
at org.apache.felix.framework.Felix.setActiveStartLevel(

@ge0ffrey ge0ffrey merged commit cb5a683 into kiegroup:master Mar 25, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment