You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by "Moloney, Tim M" <Ti...@ManTech.com> on 2009/07/16 22:36:28 UTC

Unresolved constraint error in Karaf

I noticed that the trunk currently has Karaf configured to use the
Equinox framework.  (Shouldn't we be eating our own dog food?)

karaf/assembly/src/main/filtered-resources/etc/config.properties:
  karaf.framework=equinox

When I changed this to felix, I get the following error in Karaf.

ERROR: Error starting
mvn:org.osgi/org.osgi.impl.bundle.jmx/4.2.0.200907080519
(org.osgi.framework.BundleException: Unresolved constraint in bundle
org.osgi.impl.bundle.jmx [19]: package;
(&(package=org.osgi.util.tracker)(version>=1.4.0)(!(version>=2.0.0))))
org.osgi.framework.BundleException: Unresolved constraint in bundle
org.osgi.impl.bundle.jmx [19]: package;
(&(package=org.osgi.util.tracker)(version>=1.4.0)(!(version>=2.0.0)))
	at
org.apache.felix.framework.Felix.resolveBundle(Felix.java:3393)
	at org.apache.felix.framework.Felix.startBundle(Felix.java:1597)
	at
org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1077)
	at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:263)
	at java.lang.Thread.run(Thread.java:619)

The system bundle is exporting org.osgi.util.tracker,version=1.3.3 which
(I think) is in the default setting of
org.osgi.framework.system.packages.

Should the version number of org.osgi.util.tracker be changed to 1.4.0?
I think that it was explicitly set to that in earlier versions of
config.properties.  As a work-around, adding "org.osgi.util.tracker;
version=1.4.0" to org.osgi.framework.system.packages.extra fixes the
problem.


Tim Moloney             The  reasonable  man adapts  himself  to
MRSL                    the world; the unreasonable one persists
2015 Cattlemen Road     in trying to adapt the world to himself.
Sarasota, FL  34232     Therefore  all progress  depends on  the
(941) 377-6775 x208     unreasonable man.    George Bernard Shaw



RE: Unresolved constraint error in Karaf

Posted by "Moloney, Tim M" <Ti...@ManTech.com>.
I see in a fresh checkout of the trunk (r798074) that "karaf.framework"
is set to "felix" and that there is no more "unresolved constraint
error" when starting Karaf.

Thanks.  :)


Tim Moloney             The  reasonable  man adapts  himself  to
MRSL                    the world; the unreasonable one persists
2015 Cattlemen Road     in trying to adapt the world to himself.
Sarasota, FL  34232     Therefore  all progress  depends on  the
(941) 377-6775 x208     unreasonable man.    George Bernard Shaw

 

> -----Original Message-----
> From: Richard S. Hall [mailto:heavy@ungoverned.org] 
> Sent: Friday, July 24, 2009 13:28
> To: users@felix.apache.org
> Subject: Re: Unresolved constraint error in Karaf
> 
> I updated trunk to include the latest compendium code, so 
> this should be 
> ok in trunk now.
> 
> -> richard
> 
> On 7/17/09 10:06 AM, Guillaume Nodet wrote:
> > Karak includes a snapshot of the jmx ri from the OSGi 
> alliance, but i
> > will try to upload a new one with a downgraded version.
> > I think felix should also upgrade to the latest package.
> > Unfortunately, I won't be able to do that before I come back from
> > vacations in 10 days...
> >
> > On Friday, July 17, 2009, Richard S. 
> Hall<he...@ungoverned.org>  wrote:
> >    
> >> Perhaps that is why it is set that way. :-)
> >>
> >> We need to update our compendium classes to R4.2, I was 
> waiting for the official release, but I can probably grab a 
> snapshot and use that since the release is close. I am 
> traveling and won't likely get this done until next week, though.
> >>
> >> I wonder, does Karaf really depend on some feature of the 
> unreleased Service Tracker? If not, why don't we just 
> downgrade the version?
> >>
> >> ->  richard
> >>
> >>
> >> On 07/16/2009 04:36 PM, Moloney, Tim M wrote:
> >>
> >> I noticed that the trunk currently has Karaf configured to use the
> >> Equinox framework.  (Shouldn't we be eating our own dog food?)
> >>
> >> karaf/assembly/src/main/filtered-resources/etc/config.properties:
> >>     karaf.framework=equinox
> >>
> >> When I changed this to felix, I get the following error in Karaf.
> >>
> >> ERROR: Error starting
> >> mvn:org.osgi/org.osgi.impl.bundle.jmx/4.2.0.200907080519
> >> (org.osgi.framework.BundleException: Unresolved constraint 
> in bundle
> >> org.osgi.impl.bundle.jmx [19]: package;
> >> 
> (&(package=org.osgi.util.tracker)(version>=1.4.0)(!(version>=2.0.0))))
> >> org.osgi.framework.BundleException: Unresolved constraint in bundle
> >> org.osgi.impl.bundle.jmx [19]: package;
> >> 
> (&(package=org.osgi.util.tracker)(version>=1.4.0)(!(version>=2.0.0)))
> >>          at
> >> org.apache.felix.framework.Felix.resolveBundle(Felix.java:3393)
> >>          at 
> org.apache.felix.framework.Felix.startBundle(Felix.java:1597)
> >>          at
> >> 
> org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1077)
> >>          at
> >> 
> org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:263)
> >>          at java.lang.Thread.run(Thread.java:619)
> >>
> >> The system bundle is exporting 
> org.osgi.util.tracker,version=1.3.3 which
> >> (I think) is in the default setting of
> >> org.osgi.framework.system.packages.
> >>
> >> Should the version number of org.osgi.util.tracker be 
> changed to 1.4.0?
> >> I think that it was explicitly set to that in earlier versions of
> >> config.properties.  As a work-around, adding 
> "org.osgi.util.tracker;
> >> version=1.4.0" to org.osgi.framework.system.packages.extra 
> fixes the
> >> problem.
> >>
> >>
> >> Tim Moloney             The  reasonable  man adapts  himself  to
> >> MRSL                    the world; the unreasonable one persists
> >> 2015 Cattlemen Road     in trying to adapt the world to himself.
> >> Sarasota, FL  34232     Therefore  all progress  depends on  the
> >> (941) 377-6775 x208     unreasonable man.    George Bernard Shaw
> >>
> >>
> >>
> >>
> >>
> >>
> >> 
> ---------------------------------------------------------------------
> >> 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: Unresolved constraint error in Karaf

Posted by "Richard S. Hall" <he...@ungoverned.org>.
I updated trunk to include the latest compendium code, so this should be 
ok in trunk now.

-> richard

On 7/17/09 10:06 AM, Guillaume Nodet wrote:
> Karak includes a snapshot of the jmx ri from the OSGi alliance, but i
> will try to upload a new one with a downgraded version.
> I think felix should also upgrade to the latest package.
> Unfortunately, I won't be able to do that before I come back from
> vacations in 10 days...
>
> On Friday, July 17, 2009, Richard S. Hall<he...@ungoverned.org>  wrote:
>    
>> Perhaps that is why it is set that way. :-)
>>
>> We need to update our compendium classes to R4.2, I was waiting for the official release, but I can probably grab a snapshot and use that since the release is close. I am traveling and won't likely get this done until next week, though.
>>
>> I wonder, does Karaf really depend on some feature of the unreleased Service Tracker? If not, why don't we just downgrade the version?
>>
>> ->  richard
>>
>>
>> On 07/16/2009 04:36 PM, Moloney, Tim M wrote:
>>
>> I noticed that the trunk currently has Karaf configured to use the
>> Equinox framework.  (Shouldn't we be eating our own dog food?)
>>
>> karaf/assembly/src/main/filtered-resources/etc/config.properties:
>>     karaf.framework=equinox
>>
>> When I changed this to felix, I get the following error in Karaf.
>>
>> ERROR: Error starting
>> mvn:org.osgi/org.osgi.impl.bundle.jmx/4.2.0.200907080519
>> (org.osgi.framework.BundleException: Unresolved constraint in bundle
>> org.osgi.impl.bundle.jmx [19]: package;
>> (&(package=org.osgi.util.tracker)(version>=1.4.0)(!(version>=2.0.0))))
>> org.osgi.framework.BundleException: Unresolved constraint in bundle
>> org.osgi.impl.bundle.jmx [19]: package;
>> (&(package=org.osgi.util.tracker)(version>=1.4.0)(!(version>=2.0.0)))
>>          at
>> org.apache.felix.framework.Felix.resolveBundle(Felix.java:3393)
>>          at org.apache.felix.framework.Felix.startBundle(Felix.java:1597)
>>          at
>> org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1077)
>>          at
>> org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:263)
>>          at java.lang.Thread.run(Thread.java:619)
>>
>> The system bundle is exporting org.osgi.util.tracker,version=1.3.3 which
>> (I think) is in the default setting of
>> org.osgi.framework.system.packages.
>>
>> Should the version number of org.osgi.util.tracker be changed to 1.4.0?
>> I think that it was explicitly set to that in earlier versions of
>> config.properties.  As a work-around, adding "org.osgi.util.tracker;
>> version=1.4.0" to org.osgi.framework.system.packages.extra fixes the
>> problem.
>>
>>
>> Tim Moloney             The  reasonable  man adapts  himself  to
>> MRSL                    the world; the unreasonable one persists
>> 2015 Cattlemen Road     in trying to adapt the world to himself.
>> Sarasota, FL  34232     Therefore  all progress  depends on  the
>> (941) 377-6775 x208     unreasonable man.    George Bernard Shaw
>>
>>
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
>> For additional commands, e-mail: users-help@felix.apache.org
>>
>>
>>      
>
>    

RE: Unresolved constraint error in Karaf

Posted by "Moloney, Tim M" <Ti...@ManTech.com>.
Thanks.

Enjoy your vacation.  :)


Tim Moloney             The  reasonable  man adapts  himself  to
MRSL                    the world; the unreasonable one persists
2015 Cattlemen Road     in trying to adapt the world to himself.
Sarasota, FL  34232     Therefore  all progress  depends on  the
(941) 377-6775 x208     unreasonable man.    George Bernard Shaw

 

> -----Original Message-----
> From: Guillaume Nodet [mailto:gnodet@gmail.com] 
> Sent: Friday, July 17, 2009 13:06
> To: users@felix.apache.org
> Subject: Re: Unresolved constraint error in Karaf
> 
> Karak includes a snapshot of the jmx ri from the OSGi alliance, but i
> will try to upload a new one with a downgraded version.
> I think felix should also upgrade to the latest package.
> Unfortunately, I won't be able to do that before I come back from
> vacations in 10 days...
> 
> On Friday, July 17, 2009, Richard S. Hall 
> <he...@ungoverned.org> wrote:
> > Perhaps that is why it is set that way. :-)
> >
> > We need to update our compendium classes to R4.2, I was 
> waiting for the official release, but I can probably grab a 
> snapshot and use that since the release is close. I am 
> traveling and won't likely get this done until next week, though.
> >
> > I wonder, does Karaf really depend on some feature of the 
> unreleased Service Tracker? If not, why don't we just 
> downgrade the version?
> >
> > -> richard
> >
> >
> > On 07/16/2009 04:36 PM, Moloney, Tim M wrote:
> >
> > I noticed that the trunk currently has Karaf configured to use the
> > Equinox framework.  (Shouldn't we be eating our own dog food?)
> >
> > karaf/assembly/src/main/filtered-resources/etc/config.properties:
> >    karaf.framework=equinox
> >
> > When I changed this to felix, I get the following error in Karaf.
> >
> > ERROR: Error starting
> > mvn:org.osgi/org.osgi.impl.bundle.jmx/4.2.0.200907080519
> > (org.osgi.framework.BundleException: Unresolved constraint in bundle
> > org.osgi.impl.bundle.jmx [19]: package;
> > 
> (&(package=org.osgi.util.tracker)(version>=1.4.0)(!(version>=2.0.0))))
> > org.osgi.framework.BundleException: Unresolved constraint in bundle
> > org.osgi.impl.bundle.jmx [19]: package;
> > 
> (&(package=org.osgi.util.tracker)(version>=1.4.0)(!(version>=2.0.0)))
> >         at
> > org.apache.felix.framework.Felix.resolveBundle(Felix.java:3393)
> >         at 
> org.apache.felix.framework.Felix.startBundle(Felix.java:1597)
> >         at
> > 
> org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1077)
> >         at
> > 
> org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:263)
> >         at java.lang.Thread.run(Thread.java:619)
> >
> > The system bundle is exporting 
> org.osgi.util.tracker,version=1.3.3 which
> > (I think) is in the default setting of
> > org.osgi.framework.system.packages.
> >
> > Should the version number of org.osgi.util.tracker be 
> changed to 1.4.0?
> > I think that it was explicitly set to that in earlier versions of
> > config.properties.  As a work-around, adding "org.osgi.util.tracker;
> > version=1.4.0" to org.osgi.framework.system.packages.extra fixes the
> > problem.
> >
> >
> > Tim Moloney             The  reasonable  man adapts  himself  to
> > MRSL                    the world; the unreasonable one persists
> > 2015 Cattlemen Road     in trying to adapt the world to himself.
> > Sarasota, FL  34232     Therefore  all progress  depends on  the
> > (941) 377-6775 x208     unreasonable man.    George Bernard Shaw
> >
> >
> >
> >
> >
> >
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> > For additional commands, e-mail: users-help@felix.apache.org
> >
> >
> 
> -- 
> Cheers,
> Guillaume Nodet
> ------------------------
> Blog: http://gnodet.blogspot.com/
> ------------------------
> Open Source SOA
> http://fusesource.com
> 
> ---------------------------------------------------------------------
> 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: Unresolved constraint error in Karaf

Posted by Guillaume Nodet <gn...@gmail.com>.
Karak includes a snapshot of the jmx ri from the OSGi alliance, but i
will try to upload a new one with a downgraded version.
I think felix should also upgrade to the latest package.
Unfortunately, I won't be able to do that before I come back from
vacations in 10 days...

On Friday, July 17, 2009, Richard S. Hall <he...@ungoverned.org> wrote:
> Perhaps that is why it is set that way. :-)
>
> We need to update our compendium classes to R4.2, I was waiting for the official release, but I can probably grab a snapshot and use that since the release is close. I am traveling and won't likely get this done until next week, though.
>
> I wonder, does Karaf really depend on some feature of the unreleased Service Tracker? If not, why don't we just downgrade the version?
>
> -> richard
>
>
> On 07/16/2009 04:36 PM, Moloney, Tim M wrote:
>
> I noticed that the trunk currently has Karaf configured to use the
> Equinox framework.  (Shouldn't we be eating our own dog food?)
>
> karaf/assembly/src/main/filtered-resources/etc/config.properties:
>    karaf.framework=equinox
>
> When I changed this to felix, I get the following error in Karaf.
>
> ERROR: Error starting
> mvn:org.osgi/org.osgi.impl.bundle.jmx/4.2.0.200907080519
> (org.osgi.framework.BundleException: Unresolved constraint in bundle
> org.osgi.impl.bundle.jmx [19]: package;
> (&(package=org.osgi.util.tracker)(version>=1.4.0)(!(version>=2.0.0))))
> org.osgi.framework.BundleException: Unresolved constraint in bundle
> org.osgi.impl.bundle.jmx [19]: package;
> (&(package=org.osgi.util.tracker)(version>=1.4.0)(!(version>=2.0.0)))
>         at
> org.apache.felix.framework.Felix.resolveBundle(Felix.java:3393)
>         at org.apache.felix.framework.Felix.startBundle(Felix.java:1597)
>         at
> org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1077)
>         at
> org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:263)
>         at java.lang.Thread.run(Thread.java:619)
>
> The system bundle is exporting org.osgi.util.tracker,version=1.3.3 which
> (I think) is in the default setting of
> org.osgi.framework.system.packages.
>
> Should the version number of org.osgi.util.tracker be changed to 1.4.0?
> I think that it was explicitly set to that in earlier versions of
> config.properties.  As a work-around, adding "org.osgi.util.tracker;
> version=1.4.0" to org.osgi.framework.system.packages.extra fixes the
> problem.
>
>
> Tim Moloney             The  reasonable  man adapts  himself  to
> MRSL                    the world; the unreasonable one persists
> 2015 Cattlemen Road     in trying to adapt the world to himself.
> Sarasota, FL  34232     Therefore  all progress  depends on  the
> (941) 377-6775 x208     unreasonable man.    George Bernard Shaw
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>

-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
Open Source SOA
http://fusesource.com

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


Re: Unresolved constraint error in Karaf

Posted by "Richard S. Hall" <he...@ungoverned.org>.
Perhaps that is why it is set that way. :-)

We need to update our compendium classes to R4.2, I was waiting for the 
official release, but I can probably grab a snapshot and use that since 
the release is close. I am traveling and won't likely get this done 
until next week, though.

I wonder, does Karaf really depend on some feature of the unreleased 
Service Tracker? If not, why don't we just downgrade the version?

-> richard


On 07/16/2009 04:36 PM, Moloney, Tim M wrote:
> I noticed that the trunk currently has Karaf configured to use the
> Equinox framework.  (Shouldn't we be eating our own dog food?)
>
> karaf/assembly/src/main/filtered-resources/etc/config.properties:
>    karaf.framework=equinox
>
> When I changed this to felix, I get the following error in Karaf.
>
> ERROR: Error starting
> mvn:org.osgi/org.osgi.impl.bundle.jmx/4.2.0.200907080519
> (org.osgi.framework.BundleException: Unresolved constraint in bundle
> org.osgi.impl.bundle.jmx [19]: package;
> (&(package=org.osgi.util.tracker)(version>=1.4.0)(!(version>=2.0.0))))
> org.osgi.framework.BundleException: Unresolved constraint in bundle
> org.osgi.impl.bundle.jmx [19]: package;
> (&(package=org.osgi.util.tracker)(version>=1.4.0)(!(version>=2.0.0)))
> 	at
> org.apache.felix.framework.Felix.resolveBundle(Felix.java:3393)
> 	at org.apache.felix.framework.Felix.startBundle(Felix.java:1597)
> 	at
> org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1077)
> 	at
> org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:263)
> 	at java.lang.Thread.run(Thread.java:619)
>
> The system bundle is exporting org.osgi.util.tracker,version=1.3.3 which
> (I think) is in the default setting of
> org.osgi.framework.system.packages.
>
> Should the version number of org.osgi.util.tracker be changed to 1.4.0?
> I think that it was explicitly set to that in earlier versions of
> config.properties.  As a work-around, adding "org.osgi.util.tracker;
> version=1.4.0" to org.osgi.framework.system.packages.extra fixes the
> problem.
>
>
> Tim Moloney             The  reasonable  man adapts  himself  to
> MRSL                    the world; the unreasonable one persists
> 2015 Cattlemen Road     in trying to adapt the world to himself.
> Sarasota, FL  34232     Therefore  all progress  depends on  the
> (941) 377-6775 x208     unreasonable man.    George Bernard Shaw
>
>
>
>    

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