dev@glassfish.java.net

Re: Fragments with exports, imports, or native code are not currently supported

From: Richard S. Hall <heavy_at_ungoverned.org>
Date: Fri, 08 May 2009 14:26:18 -0400

While it is true that Felix 1.7.0-private (soon to be Felix 1.8.0)
should fix this, if it was previously working with Felix 1.6.1, then it
sounds like the config file has changed. There is a property you can set
in Felix' config file to make this a warning rather than an exception.

Looking at the svn history for the config file, though, I don't see any
indication that this property was changed. So, more than likely if this
was happening before, someone introduced a fragment bundle into modules/
and it was removed to fix it.

Maybe there is another fragment in modules/.

If you want to ignore it for the time being, you can add:

     felix.fragment.validation=warning

To osgi/felix/conf/config.properties.

-> richard

On 5/8/09 1:28 PM, Mitesh Meswani wrote:
> It seems, we have not yet integrated Felix 1.7.0-private into trunk
> which fixes this issue.
>
> Jane, Richard,
>
> Do we have plans to integrate this version of Felix into trunk?
>
> Thanks,
> Mitesh
>
> Lloyd Chambers wrote:
>> This went away for a while and is back again... (Mac OS X, V3 trunk)
>>
>> Welcome to Felix.
>> =================
>>
>> org.osgi.framework.BundleException: Fragments with exports, imports,
>> or native code are not currently supported.
>> at
>> org.apache.felix.framework.util.manifestparser.ManifestParser.validateFragment(ManifestParser.java:291)
>>
>> at
>> org.apache.felix.framework.util.manifestparser.ManifestParser.<init>(ManifestParser.java:121)
>>
>> at
>> org.apache.felix.framework.searchpolicy.ModuleImpl.<init>(ModuleImpl.java:154)
>>
>> at
>> org.apache.felix.framework.BundleImpl.createModule(BundleImpl.java:965)
>> at org.apache.felix.framework.BundleImpl.<init>(BundleImpl.java:79)
>> at org.apache.felix.framework.Felix.installBundle(Felix.java:2123)
>> at org.apache.felix.framework.Felix.installBundle(Felix.java:2026)
>> at
>> org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:130)
>>
>> at org.jvnet.hk2.osgimain.Main.installBundle(Main.java:153)
>> at org.jvnet.hk2.osgimain.Main.access$000(Main.java:66)
>> at org.jvnet.hk2.osgimain.Main$1.accept(Main.java:139)
>> at java.io.File.listFiles(File.java:1134)
>> at org.jvnet.hk2.osgimain.Main.installBundles(Main.java:131)
>> at org.jvnet.hk2.osgimain.Main.start(Main.java:95)
>> at
>> org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:589)
>>
>> at org.apache.felix.framework.Felix.startBundle(Felix.java:1458)
>> at
>> org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:984)
>> at
>> org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:263)
>> at java.lang.Thread.run(Thread.java:637)
>> May 8, 2009 10:25:46 AM Installer install
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>