You seem to be using the spec bundle :
org.apache.servicemix.specs.jsr339-api-2.0.1
This has
Export-Package: javax.ws.rs;version="2.0.1"
This version is outside the range < 2 you are looking for in your bundle.
So the question is of course why a spec bundle exports a 2.0.1 version of
this package. Maybe there is an error in the servicemix bundle.

As a quick fix you can allow a package import >2 is your ui bundle.

Christian


Am Fr., 13. Sept. 2019 um 23:24 Uhr schrieb Greg Logan <
[email protected]>:

> Hi all,
>
> I'm hitting a very strange wiring issue with our features.  The error I'm
> seeing look like this:
>
> >feature:install opencast-adminpresentation
> org.osgi.service.resolver.ResolutionException: Unable to resolve root:
> missing requirement [root] osgi.identity;
> osgi.identity=opencast-adminpresentation; type=karaf.feature;
> version="[0,0.0.0]";
> filter:="(&(osgi.identity=opencast-adminpresentation)(type=karaf.feature)(version>=0.0.0)(version<=0.0.0))"
> [caused by: Unable to resolve opencast-adminpresentation/0.0.0: missing
> requirement [opencast-adminpresentation/0.0.0] osgi.identity;
> osgi.identity=opencast-engage-ui; type=osgi.bundle;
> version="[6.6.0,6.6.0]"; resolution:=mandatory [caused by: Unable to
> resolve opencast-engage-ui/6.6.0: missing requirement
> [opencast-engage-ui/6.6.0] osgi.wiring.package;
> filter:="(&(osgi.wiring.package=javax.ws.rs
> )(version>=1.1.0)(!(version>=2.0.0)))"]]
>         at
> org.apache.felix.resolver.ResolutionError.toException(ResolutionError.java:42)[6:org.apache.karaf.features.core:4.0.10]
>         at
> org.apache.felix.resolver.ResolverImpl.doResolve(ResolverImpl.java:391)[6:org.apache.karaf.features.core:4.0.10]
>         at
> org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:377)[6:org.apache.karaf.features.core:4.0.10]
>         at
> org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:349)[6:org.apache.karaf.features.core:4.0.10]
>         at
> org.apache.karaf.features.internal.region.SubsystemResolver.resolve(SubsystemResolver.java:216)[6:org.apache.karaf.features.core:4.0.10]
>         at
> org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:263)[6:org.apache.karaf.features.core:4.0.10]
>         at
> org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1188)[6:org.apache.karaf.features.core:4.0.10]
>         at
> org.apache.karaf.features.internal.service.FeaturesServiceImpl$1.call(FeaturesServiceImpl.java:1086)[6:org.apache.karaf.features.core:4.0.10]
>         at
> java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_222]
>         at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)[:1.8.0_222]
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)[:1.8.0_222]
>         at java.lang.Thread.run(Thread.java:748)[:1.8.0_222]
>
> This occurs on three of our profiles, all involving the opencast-engage-ui
> bundle.  The odd part is that this appears in our 6.6 version, but *not*
> our 6.5 - but there's no part of the changeset between 6.5[1] and 6.6[2]
> which should be causing this.  We're using the servicemix bundle[3], which
> is the same across both of our 6.5 and 6.6 versions.  The bundle headers
> for 6.5 look like this:
>
> >bundle:headers opencast-engage-ui
>
> Opencast :: engage-ui (345)
> ---------------------------
> Bnd-LastModified = 1560502504114
> Build-Jdk = 1.8.0_212
> Build-Number = 618eec6
> Built-By = lars
> Created-By = Apache Maven Bundle Plugin
> Http-Alias = /engage/ui
> Http-Classpath = /ui
> Http-Welcome = index.html
> Manifest-Version = 1.0
> Tool = Bnd-3.5.0.201709291849
>
> Bundle-Category = opencastproject
> Bundle-Description = Opencast is a media capture, processing, management
> and distribution system
> Bundle-DocURL = http://opencastproject.org/
> Bundle-License = http://www.osedu.org/licenses/ECL-2.0/ecl2.txt
> Bundle-ManifestVersion = 2
> Bundle-Name = Opencast :: engage-ui
> Bundle-SymbolicName = opencast-engage-ui
> Bundle-Vendor = The Opencast Project
> Bundle-Version = 6.5.0
>
> But I'm not sure how to get the headers for 6.6 since the feature won't
> even start :(
>
> Any clues about how to proceed here?
>
> Thanks,
> G
>
> 1: https://github.com/opencast/opencast/releases/tag/6.5
> 2: https://github.com/opencast/opencast/releases/tag/6.6
>
> 3: 
> mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jsr339-api-2.0.1/2.6.0
>


-- 
-- 
Christian Schneider
http://www.liquid-reality.de

Computer Scientist
http://www.adobe.com

Reply via email to