Hi Karl, On Mon, Dec 12, 2011 at 11:40 AM, Karl Pauls <[email protected]> wrote: > yes, it can: >> http://felix.apache.org/site/apache-felix-osgi-faq.html#ApacheFelixOSGiFAQ-WhenIupdatemybundle%252Cwhyaremybundle%2527soldclassesstillbeingused%253F
Erm.. ok so what is happening is: -> while resolving org.amdatu.web.rest.wink imports 1) it links import javax.ws.rs.ext from 18.0 because some other bundles is using this package from this revision 1.1) thus dragging in javax.ws.rs from 18.0 due to uses clause 2) it links import =javax.ws.rs from 18.1 because no other bundle is directly using this package from revision 18.0 3) *conflict* Correct? Confused.. Now, why the conflict? If the resolver is smart enough to decide to use the 18.0 javax.ws.rs in step 1.1 why not do the same in step 2? thanks, Bram > > On Mon, Dec 12, 2011 at 11:13 AM, Bram de Kruijff <[email protected]> > wrote: >> Hi list, >> >> having a hard time understanding the problem below. Can a bundle be >> wired to multiple revision of another? I'd think it would refresh all >> wires. Bug or feature? Probably the latter, but I'd like to understand >> :) >> >> When stop/starting a local install I get in this situation. Bundles >> are touched/updated from build in between, but nothing really changes >> in terms of imports/exports. Bundles are updated from fileinstall, not >> directly by the framework. I recently switched to 4.0.2 so that is >> probably related. After the refresh all is fine. >> >> {quote} >> org.osgi.framework.BundleException: Uses constraint violation. Unable >> to resolve bundle revision org.amdatu.web.rest.wink [21.1] because it >> is exposed to package 'javax.ws.rs' from bundle revisions >> org.amdatu.web.rest.jaxrs [18.1] and org.amdatu.web.rest.jaxrs [18.0] >> via two dependency chains. >> >> Chain 1: >> org.amdatu.web.rest.wink [21.1] >> import: >> (&(osgi.wiring.package=javax.ws.rs)(version>=1.1.0)(!(version>=2.0.0))) >> | >> export: osgi.wiring.package=javax.ws.rs >> org.amdatu.web.rest.jaxrs [18.1] >> >> Chain 2: >> org.amdatu.web.rest.wink [21.1] >> import: >> (&(osgi.wiring.package=javax.ws.rs.ext)(version>=1.1.0)(!(version>=2.0.0))) >> | >> export: osgi.wiring.package=javax.ws.rs.ext; uses:=javax.ws.rs >> export: osgi.wiring.package=javax.ws.rs >> org.amdatu.web.rest.jaxrs [18.0] >> -> refresh >> {quote} >> >> Thanks, >> Bram >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> > > > > -- > Karl Pauls > [email protected] > http://twitter.com/karlpauls > http://www.linkedin.com/in/karlpauls > https://profiles.google.com/karlpauls > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

