Return-Path: X-Original-To: apmail-felix-users-archive@minotaur.apache.org Delivered-To: apmail-felix-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 171AA91C2 for ; Mon, 12 Dec 2011 11:39:27 +0000 (UTC) Received: (qmail 84601 invoked by uid 500); 12 Dec 2011 11:39:26 -0000 Delivered-To: apmail-felix-users-archive@felix.apache.org Received: (qmail 84557 invoked by uid 500); 12 Dec 2011 11:39:26 -0000 Mailing-List: contact users-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@felix.apache.org Delivered-To: mailing list users@felix.apache.org Received: (qmail 84549 invoked by uid 99); 12 Dec 2011 11:39:26 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Dec 2011 11:39:26 +0000 X-ASF-Spam-Status: No, hits=1.8 required=5.0 tests=FREEMAIL_REPLY,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of bdekruijff@gmail.com designates 209.85.210.49 as permitted sender) Received: from [209.85.210.49] (HELO mail-pz0-f49.google.com) (209.85.210.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Dec 2011 11:39:16 +0000 Received: by dajx4 with SMTP id x4so7685187daj.22 for ; Mon, 12 Dec 2011 03:38:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=dGrgKmoU8kitZDqlvdVY3FMV+WFHp0k/4Xs2A/FKRHg=; b=bLmdNN5v7jv96WE7D9Tq5pNLghJ1YmRcQt3DGaZVBiPEyXKdgWBjZxIlWjzApj+l5w G6HfMweAq0JuEcX6s/mcTFX5CTRTN1+dgumfvq2KICqqXCWAG1juqjkNdPp7MM+Q8EaH LFRZQ8qAZVyw12zntEet5j6gs0DZygy4dG5oE= MIME-Version: 1.0 Received: by 10.68.212.68 with SMTP id ni4mr33930380pbc.44.1323689935653; Mon, 12 Dec 2011 03:38:55 -0800 (PST) Received: by 10.68.11.202 with HTTP; Mon, 12 Dec 2011 03:38:55 -0800 (PST) In-Reply-To: References: Date: Mon, 12 Dec 2011 12:38:55 +0100 Message-ID: Subject: Re: Unable to resolve cause wired to two revisions of same bundle? From: Bram de Kruijff To: users@felix.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On Mon, Dec 12, 2011 at 12:26 PM, Karl Pauls wrote: > On Mon, Dec 12, 2011 at 12:21 PM, Bram de Kruijff = wrote: >> Hi Karl, >> >> On Mon, Dec 12, 2011 at 11:40 AM, Karl Pauls wrote= : >>> yes, it can: >>>> http://felix.apache.org/site/apache-felix-osgi-faq.html#ApacheFelixOSG= iFAQ-WhenIupdatemybundle%252Cwhyaremybundle%2527soldclassesstillbeingused%2= 53F >> >> 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 =3Djavax.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? > > Good question, i was missing that it did get that for the same bundle. > Hm, are you using felix 4.0.1 or 4.0.2? 4.0.2 Please note that I have a hard time reproducing it now :S grz Bram > regards, > > Karl > >> thanks, >> Bram >> >>> >>> On Mon, Dec 12, 2011 at 11:13 AM, Bram de Kruijff 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: >>>> =A0org.amdatu.web.rest.wink [21.1] >>>> =A0 =A0import: (&(osgi.wiring.package=3Djavax.ws.rs)(version>=3D1.1.0)= (!(version>=3D2.0.0))) >>>> =A0 =A0 | >>>> =A0 =A0export: osgi.wiring.package=3Djavax.ws.rs >>>> =A0org.amdatu.web.rest.jaxrs [18.1] >>>> >>>> Chain 2: >>>> =A0org.amdatu.web.rest.wink [21.1] >>>> =A0 =A0import: (&(osgi.wiring.package=3Djavax.ws.rs.ext)(version>=3D1.= 1.0)(!(version>=3D2.0.0))) >>>> =A0 =A0 | >>>> =A0 =A0export: osgi.wiring.package=3Djavax.ws.rs.ext; uses:=3Djavax.ws= .rs >>>> =A0 =A0export: osgi.wiring.package=3Djavax.ws.rs >>>> =A0org.amdatu.web.rest.jaxrs [18.0] >>>> -> refresh >>>> {quote} >>>> >>>> Thanks, >>>> Bram >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org >>>> For additional commands, e-mail: users-help@felix.apache.org >>>> >>> >>> >>> >>> -- >>> Karl Pauls >>> karlpauls@gmail.com >>> http://twitter.com/karlpauls >>> http://www.linkedin.com/in/karlpauls >>> https://profiles.google.com/karlpauls >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org >>> For additional commands, e-mail: users-help@felix.apache.org >>> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org >> For additional commands, e-mail: users-help@felix.apache.org >> > > > > -- > Karl Pauls > karlpauls@gmail.com > http://twitter.com/karlpauls > http://www.linkedin.com/in/karlpauls > https://profiles.google.com/karlpauls > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@felix.apache.org > For additional commands, e-mail: users-help@felix.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@felix.apache.org For additional commands, e-mail: users-help@felix.apache.org