You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Guillaume Nodet (JIRA)" <ji...@apache.org> on 2010/11/29 23:10:11 UTC
[jira] Closed: (KARAF-294) OSGi framework extensions are not
visible for host bundle
[ https://issues.apache.org/jira/browse/KARAF-294?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Guillaume Nodet closed KARAF-294.
---------------------------------
Resolution: Not A Problem
Assignee: Guillaume Nodet
Here is the answer I got from the Equinox lead dev:
No Equinox framework hooks (what gets discovered by the HookRegistry in the equinox framework) must be available to the framework class path before launching the framework. This is because the hooks can provide implementations to things that we simply cannot allow to be dynamically added by a normal bundle.
So closing this issue as there's nothing we can do here.
> OSGi framework extensions are not visible for host bundle
> ---------------------------------------------------------
>
> Key: KARAF-294
> URL: https://issues.apache.org/jira/browse/KARAF-294
> Project: Karaf
> Issue Type: Bug
> Components: runtime
> Affects Versions: 2.1.1
> Reporter: Ćukasz Dywicki
> Assignee: Guillaume Nodet
> Attachments: example-hook.zip
>
>
> OSGi frameworks supports extensions. For example we may attach load-time weaving to Equinox using org.eclipse.equinox.waving.hook fragment. I am not sure if the Equinox supports that correctly. When I start equinox as below:
> cd sources\karaf-2.1.2
> java -cp system\hook-2.1.2.jar;system\org\eclipse\osgi\3.6.0.v20100517\osgi-3.6.0.v20100517.jar org.eclipse.core.runtime.adaptor.EclipseStarter -console
> Works fine (extension is started).
> But when I try to use:
> java -cp system\org\eclipse\osgi\3.6.0.v20100517\osgi-3.6.0.v20100517.jar org.eclipse.core.runtime.adaptor.EclipseStarter -console
> install file:system\hook-2.1.2.jar
> It doesn't work.
> At this moment all framework extensions has to be in boot classpath even if they're correct OSGi bundles (fragments). There is no way to add these extensions at runtime and apply after restart. I also attach sample project which can be helpfull in testing.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.