Thanks Felix, that did it. On Fri, Jun 1, 2012 at 3:45 PM, Felix Meschberger <fmesc...@adobe.com>wrote:
> Hi > > You have to add "; extension:=framework" to the Fragment-Host header, as in > > Fragment-Host = system.bundle; extension:=framework > > Regards > Felix > > Am 02.06.2012 um 00:28 schrieb Allen Lau: > > > Hi, I think this is a bug, but not totally sure. > > > > Trying to attach a fragment to the system.bundle in order to export some > > javax.xml* packages with a different version than what is already > exported > > by the system.bundle, > > However, when specifying a <Fragment-Host>system.bundle</Fragment-Host>, > my > > fragment does not get attached. As the fragment is not attached, when > > starting a bundle > > that depends on the javax.xml.stream;version=[1.0,2), I get the following > > error below: > > > > 106 is my fragment bundle id. > > > > > > 2012-06-01 15:01:27.861:INFO:oejsh.ContextHandler:started > > > HttpServiceContext{httpContext=org.apache.felix.webconsole.internal.servlet.OsgiManagerHttpContext@3d5d9be1 > > } > > ERROR: Bundle org.apache.servicemix.bundles.dom4j [61] Error starting > > file:bundle/org.apache.servicemix.bundles.dom4j-1.6.1_5.jar > > (org.osgi.framework.BundleException: Unresolved constraint in bundle > > org.apache.servicemix.bundles.dom4j [61]: Unable to resolve 61.0: missing > > requirement [61.0] osgi.wiring.package; > > > (&(osgi.wiring.package=javax.xml.stream)(version>=1.0.0)(!(version>=2.0.0))) > > [caused by: Unable to resolve 106.0: missing requirement [106.0] > > osgi.wiring.host; > > (&(osgi.wiring.host=system.bundle)(bundle-version>=0.0.0))]) > > org.osgi.framework.BundleException: Unresolved constraint in bundle > > org.apache.servicemix.bundles.dom4j [61]: Unable to resolve 61.0: missing > > requirement [61.0] osgi.wiring.package; > > > (&(osgi.wiring.package=javax.xml.stream)(version>=1.0.0)(!(version>=2.0.0))) > > [caused by: Unable to resolve 106.0: missing requirement [106.0] > > osgi.wiring.host; > > (&(osgi.wiring.host=system.bundle)(bundle-version>=0.0.0))] > > at > org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:3826) > > at org.apache.felix.framework.Felix.startBundle(Felix.java:1868) > > at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1191) > > at > > > org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:295) > > at java.lang.Thread.run(Thread.java:680) > > > > I'm using Felix 4.0.2 and Java 6. > > > > This is what my the relevant parts of my fragment bundle's Manifest looks > > like: > > Bundle-Description = JRE Fragment > > Bundle-ManifestVersion = 2 > > Bundle-Name = JRE System Package Fragment > > Bundle-SymbolicName = test.jre-fragment > > Bundle-Version = 1.0.0 > > Export-Package = > > > javax.xml.stream;version=1.1.0,javax.xml.stream.events;version=1.1.0,javax.xml.stream.util;version=1.1.0 > > Fragment-Host = system.bundle > > Manifest-Version = 1.0 > > > > Thanks, > > Allen > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@felix.apache.org > For additional commands, e-mail: users-h...@felix.apache.org > >