Skip to content

Commit

Permalink
#35 Do not start Fragment bundles in OSGi
Browse files Browse the repository at this point in the history
  • Loading branch information
debbabi committed Apr 13, 2016
1 parent 7ec840c commit 1c394cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
-------------------------------
Expand Down
3 changes: 2 additions & 1 deletion python/cohorte/boot/loaders/osgi_inner.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 1c394cc

Please sign in to comment.