[
https://issues.apache.org/jira/browse/BROOKLYN-379?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15672057#comment-15672057
]
ASF GitHub Bot commented on BROOKLYN-379:
-----------------------------------------
GitHub user aledsage opened a pull request:
https://github.com/apache/brooklyn-server/pull/442
BROOKLYN-379: Fix rebind when bundle prefixes are used to load classes
This replaces https://github.com/apache/brooklyn-server/pull/396
See also https://github.com/neykov/brooklyn-server/pull/4 (but I'll replay
all the comments from that PR into this PR).
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/aledsage/brooklyn-server
neykov-aled/test/osgi-prefix-rebind
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/brooklyn-server/pull/442.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #442
----
commit f4f008598f9f4ed1744c1d632d0b669c5a2c4434
Author: Svetoslav Neykov <[email protected]>
Date: 2016-10-31T15:22:37Z
A test to check rebind when bundle prefixes are used to load classes in
catalog items
commit 2d2f90332a3c9822eafc01403518f614ba8eca05
Author: Aled Sage <[email protected]>
Date: 2016-11-07T17:11:45Z
BROOKLYN-379: entity type includes OSGi prefix
commit 49b6535f439bbca5d74f69f0439be5ceeeae6a78
Author: Aled Sage <[email protected]>
Date: 2016-11-07T18:03:30Z
Fix osgi resolveClass to strip bundle prefix
Without this, RebindOsgiTest.testUsesCatalogBundleVersion fails
----
> Rebind error when entity type references pre-installed OSGi bundle
> ------------------------------------------------------------------
>
> Key: BROOKLYN-379
> URL: https://issues.apache.org/jira/browse/BROOKLYN-379
> Project: Brooklyn
> Issue Type: Bug
> Reporter: Aled Sage
>
> When persisting an entity whose type is in an OSGi bundle (pre-installed in
> Karaf), using the OSGi symbolic name prefix in the {{type: ...}} declaration,
> it fails to deserialize.
> For example, if you deploy the blueprint below and then try to restart
> Brooklyn, it fails because it can't load the class
> {{com.example.MyEntityImpl}} (note the absence of the OSGi bundle prefix).
> {noformat}
> services:
> - type: com.example.my_osgi_bundle_name:com.example.MyEntity
> {noformat}
> See [~svet]'s example test in
> https://github.com/apache/brooklyn-server/pull/396.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)