[rules-dev] How to diagnose the osgi bundles test failures if they break

Geoffrey De Smet ge0ffrey.spam at gmail.com
Wed Oct 17 05:15:57 EDT 2012


FYI

If you ever have to fix the osgi bundles if they break,
read this comment:
   # NOTE: the OSGi error reporting is messed up:
   # If drools-core fails to start, it will report an error with 
drools-compiler.
   # To look past that messed up error reporting, comment out the 
reported bundle(s) here to see the real troublesome bundle
in this file:
droolsjbpm/droolsjbpm-build-distribution/drools-osgi-bundles/org.drools.osgi.test/src/test/filtered-resources/boot-bundles.properties

For example, first I got
   ERROR - AbstractOsgiTests.startBundle(344) | cannot start bundle 
[jBPM :: BPMN2 
(org.jbpm.bpmn2;singleton:=true)|file:/.../jbpm-bpmn2-6.0.0-SNAPSHOT.jar]
   org.osgi.framework.BundleException: The bundle could not be resolved. 
Reason: Missing Constraint: Require-Bundle: org.jbpm.flow.builder; 
bundle-version="6.0.0.SNAPSHOT"

But after commenting out jbpm-bpmn2, the real problem surfaced:
   ERROR - AbstractOsgiTests.startBundle(344) | cannot start bundle 
[jBPM :: Flow 
(org.jbpm.flow.core;singleton:=true)|file:/.../jbpm-flow-6.0.0-SNAPSHOT.jar]
   org.osgi.framework.BundleException: The bundle could not be resolved. 
Reason: Missing Constraint: Import-Package: org.joda.time; version="1.6.0"

HTH



More information about the rules-dev mailing list