Hi, JRE actually only supplies 1.0 of javax.annotation. That's why the weld-feature in karaf-3.0.3 provides the bundle mvn:javax.annotation/javax.annotation-api/1.2
You should use that bundle too, rather than modifying the version in jre.properties. kind regards, Christoph On 13/04/15 20:26, Krzysztof Sobkowiak wrote: > Hi > > I have just taken a fresh Karaf 3.0.3 and imported the pax cdi 0.8.0 > repository > > karaf@root()> feature:repo-add > mvn:org.ops4j.pax.cdi/pax-cdi-features/0.8.0/xml/features > Adding feature url mvn:org.ops4j.pax.cdi/pax-cdi-features/0.8.0/xml/features > karaf@root()> feature:install pax-cdi/0.8.0 > Error executing command: Can't install feature pax-cdi/0.8.0: > Could not start bundle mvn:org.ops4j.pax.cdi/pax-cdi-extension/0.8.0 in > feature(s) pax-cdi-1.1-0.8.0, pax-cdi-0.8.0, > pax-cdi-1.2-0.8.0: Unresolved constraint in bundle > org.ops4j.pax.cdi.extension [80]: Unable to resolve 80.0: missing > requirement [80.0] osgi.wiring.package; > (&(osgi.wiring.package=javax.annotation)(version>=1.1.0)(!(version>=2.0.0))) > > Next I have changed the version of javax.annotation to 1.2 > > jre-1.7= \ > javax.accessibility, \ > javax.activation;version="1.1", \ > javax.activity, \ > javax.annotation;version="1.2", \ > > After restart I could install the pax cdi > > karaf@root()> feature:install pax-cdi/0.8.0 > karaf@root()> > > Regards > Krzysztof > > > > > On 13.04.2015 19:57, PashaTurok wrote: >> I've changed version of javax.annotation to 1.2 in /etc/jre.properties and >> when I execute feature:install pax-cdi/0.8.0 I get osgi framework exception >> that javax.annotaion package can't be resolved. what to do? >> >> >> >> -- >> View this message in context: >> http://karaf.922171.n3.nabble.com/How-to-make-karaf-install-features-of-certain-versions-tp4039644p4039658.html >> Sent from the Karaf - User mailing list archive at Nabble.com. >
