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



Reply via email to