You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Allen Lau <al...@gmail.com> on 2012/06/02 00:28:35 UTC

system.bundle not a valid osgi.wiring.host?

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

Re: system.bundle not a valid osgi.wiring.host?

Posted by "Richard S. Hall" <he...@ungoverned.org>.
Check the spec for Fragment-Host when specifying system bundle 
extensions...I believe you have to set a directive telling which type of 
extension you are creating.

-> richard

On 6/1/12 6:28 PM, Allen Lau wrote:
> 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-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: system.bundle not a valid osgi.wiring.host?

Posted by "Richard S. Hall" <he...@ungoverned.org>.
Oops. I should have read the thread first... ;-)

On 6/1/12 6:45 PM, Felix Meschberger 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-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: system.bundle not a valid osgi.wiring.host?

Posted by Allen Lau <al...@gmail.com>.
Thanks Felix, that did it.

On Fri, Jun 1, 2012 at 3:45 PM, Felix Meschberger <fm...@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-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>

Re: system.bundle not a valid osgi.wiring.host?

Posted by Felix Meschberger <fm...@adobe.com>.
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-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org