I think this issue would effect Felix 1.2.1 too.

In Felix 1.2.0 we added initial support for fragments, but since we 
don't have full fragment support we decided to throw an exception if an 
installed fragment was using features we did not yet implement, thinking 
this would save people time debugging.

Turns out, there were a lot of people who were just installing fragments 
into Felix even though we didn't support them. Previously, we had just 
been ignoring fragments. The change from ignoring to throwing an install 
exception apparently issues for people.

We are close to a Felix 1.4.0 release that incorporates a configuration 
property to disable the install exception and just log a warning, thus 
effectively ignoring fragments that we do not support. Doesn't seem like 
a great idea, but it will potentially alleviate this issue for some 
people until we have full fragment support.

-> richard


Mike Smoot wrote:
> Hi All,
>
> I've run into a problem with my project which I'm able to reproduce 
> with the 
> http://www.ops4j.org/projects/pax/construct/examples/SPRING_OSGI_EXAMPLE 
> script.  All you need to do is change the project from Equinox to 
> Felix and then run the script. 
>
> Basically, the SLF4J Log4J Binding bundle is not getting loaded due to 
> the exception below.  Without this, several other bundles fail to 
> start. This appears to be a problem specific for Felix version 1.2.2. 
> <http://1.2.2.>  Is my best bet to force an older version of felix or 
> is there another configuration option?  In addition to the exception 
> below, I've attached the entire script output.
>
> thanks,
> Mike
>
>
> 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:258)
>         at 
> org.apache.felix.framework.util.manifestparser.ManifestParser.<init>(ManifestParser.java:100)
>         at org.apache.felix.framework.Felix.createModule(Felix.java:3377)
>         at 
> org.apache.felix.framework.Felix.createBundleInfo(Felix.java:3316)
>         at org.apache.felix.framework.Felix.installBundle(Felix.java:2315)
>         at org.apache.felix.framework.Felix.installBundle(Felix.java:2227)
>         at 
> org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:132)
>         at 
> org.apache.felix.main.AutoActivator.processAutoProperties(AutoActivator.java:121)
>         at 
> org.apache.felix.main.AutoActivator.start(AutoActivator.java:55)
>         at 
> org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:591)
>         at 
> org.apache.felix.framework.Felix$SystemBundleActivator.start(Felix.java:3783)
>         at 
> org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:591)
>         at org.apache.felix.framework.Felix.start(Felix.java:849)
>         at org.apache.felix.main.Main.main(Main.java:236)
>
>
>
> -- 
> ____________________________________________________________
> Michael Smoot, Ph.D.               Bioengineering Department
> tel: 858-822-4756         University of California San Diego
> ------------------------------------------------------------------------
>
> _______________________________________________
> general mailing list
> [email protected]
> http://lists.ops4j.org/mailman/listinfo/general
>   

_______________________________________________
general mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/general

Reply via email to