karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Łukasz Dywicki (JIRA) <j...@apache.org>
Subject [jira] Created: (KARAF-294) OSGi framework extensions are not visible for host bundle
Date Tue, 23 Nov 2010 19:31:13 GMT
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
         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
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.

View raw message