On Fri, Feb 11, 2011 at 3:36 PM, Richard S. Hall <[email protected]> wrote: > On 2/11/11 4:33, [email protected] wrote: >> >> On Thu, Feb 10, 2011 at 3:55 PM, Richard S. Hall<[email protected]> >> wrote: >>> >>> On 2/10/11 6:56, [email protected] wrote: >>>> >>>> Hi. >>>> I've deployed a couple of Restlet 2.x bundles, one being >>>> restlet.xstream extension. >>>> To activate restlet.xstream I've added xstream 1.3.1 via: >>>> >>>> obr:deploy com.springsource.com.thoughtworks.xstream >>>> >>>> That installed a lot of required and optional extensions. >>>> Now, the existing activemq-core bundels stop working due to: >>>> >>>> Error executing command: Constraint violation for package >>>> 'javax.xml.stream' when resolving module 154.0 between existing import >>>> 0.javax.xml.stream BLAMED ON [[154.0] package; >>>> (package=javax.xml.stream)] and uses constraint 200.0.javax.xml.stream >>>> BLAMED ON [[154.0] package; (package=com.thoughtworks.xstream.io.xml), >>>> [196.0] package; >>>> (&(package=javax.xml.stream)(version>=1.0.1)(!(version>=2.0.0)))] >>>> >>>> being >>>> 154 activemq-core >>>> 200 Java XML Stream API (StAX) (1.0.1) >>>> 196 Thoughtworks XStream (1.3.1) >>> >>> What this is telling you is that 154 imports javax.xml.stream and the >>> candidate chosen for that is the system bundle, but 154 is also exposed >>> to >>> javax.xml.stream from bundle 200 from 154's import of >>> com.thoughtworks.xstream.io.xml which it satisfied by 196 and uses its >>> import of javax.xml.stream which is satisfied by 200. >>> >>> The confusing part to me, though, is that this doesn't seem like it >>> should >>> be the final error, rather this seems like an intermediate error. Because >>> 154's import of javax.xml.stream should also be satisfiable by 200 since >>> 154's import doesn't include a version range. So, the resolver should >>> attempt this combination too, which given this limited information should >>> succeed. >>> >>> If you can give me a simple way to reproduce this situation, I can check >>> it >>> out; e.g., you could provide me a link to download your bundle cache and >>> give me the steps to cause the error. >> >> on Karaf 2.1.2 >> >> features:install obr >> features:install activemq-spring > > A step must be missing, because the above command fails to execute, it says > there is no such feature.
here it is, sorry: features:addUrl mvn:org.apache.activemq/activemq-karaf/5.4.0/xml/features -- Daniele Dellafiore http://danieledellafiore.net --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

