You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by de...@beyene.org on 2016/03/23 22:51:49 UTC

Updating org.apache.felix.scr from 1.8.2 to 2.0.2 breaks injection of service

Hello,

I have created an OSGi test project which uses maven and annotation-based
declarative services.
Updating org.apache.felix.scr from 1.8.2 to 2.0.2 breaks the integration test
with following error:

org.osgi.framework.BundleException: Unresolved constraint in bundle
org.apache.felix.scr [13]: Unable to resolve 13.0: missing requirement [13.0]
osgi.wiring.package;
(&(osgi.wiring.package=org.osgi.dto)(version>=1.0.0)(!(version>=2.0.0)))

Deploying with "mvn:pax provision" still works. It seems that dependencies have
changed, e.g. org.osgi.core (which contains org.osgi.dto) went from 5.0.0 to
6.0.0, and that constraints are no longer satisfied. Unfortunately I don't know
how I can use this information to make the integration test work again.

Kind regards
Mikael Beyene

Links:
Full build log : https://travis-ci.org/mbe24/mode/builds/114051484
Source code    : https://github.com/mbe24/mode/tree/update_scr_plugin

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


Re: Updating org.apache.felix.scr from 1.8.2 to 2.0.2 breaks injection of service

Posted by David Jencks <da...@yahoo.com.INVALID>.
Felix scr version >= 2 requires an R6 framework, which exports the dto package at version 1.0.0.

There have been at least one request to provide a version that runs on R5 frameworks, but I haven’t had time to set that up.

thanks
david jencks

> On Mar 23, 2016, at 2:51 PM, dev@beyene.org wrote:
> 
> Hello,
> 
> I have created an OSGi test project which uses maven and annotation-based
> declarative services.
> Updating org.apache.felix.scr from 1.8.2 to 2.0.2 breaks the integration test
> with following error:
> 
> org.osgi.framework.BundleException: Unresolved constraint in bundle
> org.apache.felix.scr [13]: Unable to resolve 13.0: missing requirement [13.0]
> osgi.wiring.package;
> (&(osgi.wiring.package=org.osgi.dto)(version>=1.0.0)(!(version>=2.0.0)))
> 
> Deploying with "mvn:pax provision" still works. It seems that dependencies have
> changed, e.g. org.osgi.core (which contains org.osgi.dto) went from 5.0.0 to
> 6.0.0, and that constraints are no longer satisfied. Unfortunately I don't know
> how I can use this information to make the integration test work again.
> 
> Kind regards
> Mikael Beyene
> 
> Links:
> Full build log : https://travis-ci.org/mbe24/mode/builds/114051484
> Source code    : https://github.com/mbe24/mode/tree/update_scr_plugin
> 
> ---------------------------------------------------------------------
> 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