From 1c394ccb1ed6ea4bcd443016902586f5ff305cee Mon Sep 17 00:00:00 2001 From: Bassem Debbabi Date: Wed, 13 Apr 2016 12:36:11 +0200 Subject: [PATCH] #35 Do not start Fragment bundles in OSGi --- CHANGELOG.rst | 1 + python/cohorte/boot/loaders/osgi_inner.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index f4e891d7..e4e30e9b 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -3,6 +3,7 @@ ** Bug Fix * OSGi framework user-provided extra packages are not considered [isandlaTech/cohorte-runtime#36] + * Do not start Fragment bundles in OSGi [isandlaTech/cohorte-runtime#35] Changes form the 1.0.1 to 1.0.2 ------------------------------- diff --git a/python/cohorte/boot/loaders/osgi_inner.py b/python/cohorte/boot/loaders/osgi_inner.py index d5073c6c..1b85ee56 100644 --- a/python/cohorte/boot/loaders/osgi_inner.py +++ b/python/cohorte/boot/loaders/osgi_inner.py @@ -711,7 +711,8 @@ def load(self, configuration): # Start the bundles for bundle in java_bundles: _logger.debug("Starting %s...", bundle.getSymbolicName()) - bundle.start() + if not bundle.is_fragment(): + bundle.start() except jpype.JavaException as ex: # Log the bundle exception and its cause _logger.error("Error starting bundle: %s",