You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by Konrad Windszus <ko...@gmx.de> on 2020/08/03 08:17:12 UTC

Sling Settings 1.4.0 not resolvable against Felix SCR 2.1.20

Hi,
When trying to start Sling Starter 12 with Sling Settings 1.4.0 the following error is logged

03.08.2020 09:59:27.402 *ERROR* [FelixStartLevel] ERROR: Bundle '6' Error starting slinginstall:org.apache.sling.settings-1.4.0.jar (org.osgi.framework.BundleException: Unable to resolve org.apache.sling.settings [6](R 6.0): missing requirement [org.apache.sling.settings [6](R 6.0)] osgi.extender; (&(osgi.extender=osgi.component)(version>=1.4.0)(!(version>=2.0.0))) Unresolved requirements: [[org.apache.sling.settings [6](R 6.0)] osgi.extender; (&(osgi.extender=osgi.component)(version>=1.4.0)(!(version>=2.0.0)))])
org.osgi.framework.BundleException: Unable to resolve org.apache.sling.settings [6](R 6.0): missing requirement [org.apache.sling.settings [6](R 6.0)] osgi.extender; (&(osgi.extender=osgi.component)(version>=1.4.0)(!(version>=2.0.0))) Unresolved requirements: [[org.apache.sling.settings [6](R 6.0)] osgi.extender; (&(osgi.extender=osgi.component)(version>=1.4.0)(!(version>=2.0.0)))]
	at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4368)
	at org.apache.felix.framework.Felix.startBundle(Felix.java:2281)
	at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1539)
	at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)
	at java.lang.Thread.run(Thread.java:748)

It seems that somehow the capability provided by Felix SCR (https://github.com/apache/felix-dev/blob/56b688400d99a868a1cf306074ee5257db3a78e2/scr/bnd.bnd#L5) does not resolve the capability

Require-Capability: osgi.service;filter:="(objectClass=org.apache.sling.settings.SlingSettingsService)";effective:=active,osgi.extender;filter:="(&(osgi.extender=osgi.component)(version>=1.4.0)(!(version>=2.0.0)))"

Any idea what is wrong here?
By looking at the manifests to me it seems that SCR should actually resolve sling.settings 1.4.0 (according to https://docs.osgi.org/specification/osgi.cmpn/7.0.0/service.namespaces.html#service.namespaces-osgi.extender.namespace)
TIA

Konrad




Re: Sling Settings 1.4.0 not resolvable against Felix SCR 2.1.20

Posted by Konrad Windszus <ko...@gmx.de>.
Nevermind, this is just a start level issue. We must start SCR first now after https://issues.apache.org/jira/browse/SLING-9561 <https://issues.apache.org/jira/browse/SLING-9561>

> On 3. Aug 2020, at 10:17, Konrad Windszus <ko...@gmx.de> wrote:
> 
> Hi,
> When trying to start Sling Starter 12 with Sling Settings 1.4.0 the following error is logged
> 
> 03.08.2020 09:59:27.402 *ERROR* [FelixStartLevel] ERROR: Bundle '6' Error starting slinginstall:org.apache.sling.settings-1.4.0.jar (org.osgi.framework.BundleException: Unable to resolve org.apache.sling.settings [6](R 6.0): missing requirement [org.apache.sling.settings [6](R 6.0)] osgi.extender; (&(osgi.extender=osgi.component)(version>=1.4.0)(!(version>=2.0.0))) Unresolved requirements: [[org.apache.sling.settings [6](R 6.0)] osgi.extender; (&(osgi.extender=osgi.component)(version>=1.4.0)(!(version>=2.0.0)))])
> org.osgi.framework.BundleException: Unable to resolve org.apache.sling.settings [6](R 6.0): missing requirement [org.apache.sling.settings [6](R 6.0)] osgi.extender; (&(osgi.extender=osgi.component)(version>=1.4.0)(!(version>=2.0.0))) Unresolved requirements: [[org.apache.sling.settings [6](R 6.0)] osgi.extender; (&(osgi.extender=osgi.component)(version>=1.4.0)(!(version>=2.0.0)))]
> 	at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4368)
> 	at org.apache.felix.framework.Felix.startBundle(Felix.java:2281)
> 	at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1539)
> 	at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)
> 	at java.lang.Thread.run(Thread.java:748)
> 
> It seems that somehow the capability provided by Felix SCR (https://github.com/apache/felix-dev/blob/56b688400d99a868a1cf306074ee5257db3a78e2/scr/bnd.bnd#L5) does not resolve the capability
> 
> Require-Capability: osgi.service;filter:="(objectClass=org.apache.sling.settings.SlingSettingsService)";effective:=active,osgi.extender;filter:="(&(osgi.extender=osgi.component)(version>=1.4.0)(!(version>=2.0.0)))"
> 
> Any idea what is wrong here?
> By looking at the manifests to me it seems that SCR should actually resolve sling.settings 1.4.0 (according to https://docs.osgi.org/specification/osgi.cmpn/7.0.0/service.namespaces.html#service.namespaces-osgi.extender.namespace)
> TIA
> 
> Konrad
> 
> 
>