[
https://issues.apache.org/jira/browse/KARAF-3475?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14605244#comment-14605244
]
Jean-Baptiste Onofré commented on KARAF-3475:
---------------------------------------------
Fixed on karaf-3.0.x:
https://git-wip-us.apache.org/repos/asf?p=karaf.git;a=commitdiff;h=416db2d1146703f2c0e6812cc4de5ac190a0cc42
> No refresh of bundles during feature install
> --------------------------------------------
>
> Key: KARAF-3475
> URL: https://issues.apache.org/jira/browse/KARAF-3475
> Project: Karaf
> Issue Type: Bug
> Components: karaf-feature
> Affects Versions: 3.0.2
> Reporter: Frank Diebolt
> Assignee: Jean-Baptiste Onofré
> Fix For: 3.0.4
>
> Original Estimate: 5m
> Remaining Estimate: 5m
>
> Hi,
> I successfully tested the fix below :
> In the source file
> <karaf-sources>features/core/src/main/java/org/apache/karaf/features/internal/BundleManager.java
> protected void refreshPackages(Collection<Bundle> bundles) {
> final Object refreshLock = new Object();
> -FrameworkWiring wiring =
> bundleContext.getBundle().adapt(FrameworkWiring.class);
> +FrameworkWiring wiring =
> bundleContext.getBundle(0).adapt(FrameworkWiring.class);
> Currently wiring is always null, FrameworkWiring can be obtained on bundle 0
> only.
> BR
> Frank
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)