Hi, which version of javax.annotation-api do you have installed? The exception clearly states it is looking for a version greater or equal to 1.2 but lesser then 2.0. If you have a 1.1.x version or lesser installed, that won't resolve.
regards, Achim 2017-06-28 16:13 GMT+02:00 Umesh Rajani <[email protected]>: > I'm running junit test for REST API in web-pax, heret I'm facing very > strange behaviour I don't know why this dependency not getting resolved. > > Please have a look in exception: > > rg.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.swissbox.extender.BundleWatcher] > : Scanning bundle [javax.validation.api] > org.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.swissbox.extender.BundleWatcher] > : Scanning bundle [javax.annotation-api] > org.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.swissbox.extender.BundleWatcher] > : Scanning bundle [javax.json-api] > org.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.swissbox.extender.BundleWatcher] > : Scanning bundle [javax.ws.rs.jsr311-api] > org.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.swissbox.extender.BundleWatcher] > : Scanning bundle [org.apache.servicemix.bundles.javax-inject] > org.ops4j.pax.logging.pax-logging-api[org.ops4j.pax.swissbox.extender.BundleWatcher] > : Scanning bundle [org.objectweb.asm.all.debug] > ERROR: Bundle org.glassfish.jersey.core.jersey-common [83] Error starting > mvn:org.glassfish.jersey.core/jersey-common/2.25 > (org.osgi.framework.BundleException: Unable to resolve > org.glassfish.jersey.core.jersey-common [83](R 83.0): missing requirement > [org.glassfish.jersey.core.jersey-common [83](R 83.0)] osgi.wiring.package; > (&(osgi.wiring.package=javax.annotation)(version>=1.2.0)(!(version>=2.0.0))) > Unresolved requirements: [[org.glassfish.jersey.core.jersey-common [83](R > 83.0)] osgi.wiring.package; > (&(osgi.wiring.package=javax.annotation)(version>=1.2.0)(!(version>=2.0.0)))]) > org.osgi.framework.BundleException: Unable to resolve > org.glassfish.jersey.core.jersey-common [83](R 83.0): missing requirement > [org.glassfish.jersey.core.jersey-common [83](R 83.0)] osgi.wiring.package; > (&(osgi.wiring.package=javax.annotation)(version>=1.2.0)(!(version>=2.0.0))) > Unresolved requirements: [[org.glassfish.jersey.core.jersey-common [83](R > 83.0)] osgi.wiring.package; > (&(osgi.wiring.package=javax.annotation)(version>=1.2.0)(!(version>=2.0.0)))] > at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4111) > at org.apache.felix.framework.Felix.startBundle(Felix.java:2117) > at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1371) > at > org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308) > at java.lang.Thread.run(Thread.java:745) > > > > Here we can see javax.annotation-api bundle successfully scanned and > running in pax-exam contained even though jersey-common is not getting > resolved it says javax.annotation not found. > > Does anybody faced this, then please suggest me. > > Thanks you, > > Umesh > > -- > -- > ------------------ > OPS4J - http://www.ops4j.org - [email protected] > > --- > You received this message because you are subscribed to the Google Groups > "OPS4J" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- Apache Member Apache Karaf <http://karaf.apache.org/> Committer & PMC OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer & Project Lead blog <http://notizblog.nierbeck.de/> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS> Software Architect / Project Manager / Scrum Master -- -- ------------------ OPS4J - http://www.ops4j.org - [email protected] --- You received this message because you are subscribed to the Google Groups "OPS4J" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
