2008/9/18 Julien Vermillard <[EMAIL PROTECTED]> > I had the same problem, I purged the fragment bundle setting from the slf4j > jar. > Annoying, I prefered when it was just ignoring fragment bundles :) >
Richard added a switch for this in trunk, see: https://issues.apache.org/jira/browse/FELIX-725 which will be available in 1.2.2 Julien > > On Thu, Sep 18, 2008 at 9:20 AM, meinc <[EMAIL PROTECTED]> wrote: > > > > Currently I try to switch from felix 1.0.4 to 1.2.1. Unfortunately I > > encounter an error when I try to install the slf4j-nop bundle (version > 1.5.2 > > got from http://www.slf4j.org/). The bundle/Manifest makes use of the > OSGi > > fragment mechanism (Fragment-Host: slf4j.api). I know that felix does not > > support fragments. However in 1.0.4 felix has simply ignored fragments > and > > in the current 1.2.1 it throws an execption which causes my entire > > application to fail. Are there any means in felix to switch back to the > > ignore behaviour, e.g. a property? > > > > org.osgi.framework.BundleException: Fragments with exports, imports, or > > native c > > ode 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) > > Auto-properties install: org.osgi.framework.BundleException: Could not > > create bundle object. > > 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:143) > > 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) > > Auto-properties start: org.osgi.framework.BundleException: Could not > create > > bundle object. > > -- > > View this message in context: > http://www.nabble.com/Fragment-annotation-is-no-longer-ignored-by-felix-1.2.1-tp19547384p19547384.html > > Sent from the Apache Felix - Users mailing list archive at Nabble.com. > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Cheers, Stuart

