Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 23D9D172E4 for ; Wed, 8 Apr 2015 22:07:28 +0000 (UTC) Received: (qmail 1898 invoked by uid 500); 8 Apr 2015 22:07:21 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 1846 invoked by uid 500); 8 Apr 2015 22:07:21 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 1827 invoked by uid 99); 8 Apr 2015 22:07:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Apr 2015 22:07:21 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW X-Spam-Check-By: apache.org Received-SPF: error (nike.apache.org: local policy) Received: from [209.85.215.43] (HELO mail-la0-f43.google.com) (209.85.215.43) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Apr 2015 22:06:55 +0000 Received: by labbd9 with SMTP id bd9so65044042lab.2 for ; Wed, 08 Apr 2015 15:06:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:content-type; bh=KMOdtkc/OjyVcdYoYFYVRe10UcXsfz/dlRxBFfqvWPs=; b=Nz+wblMWx41JAeBW4cDl529aMCBEG3XJEouKNfhnpkYrf18KCll0BArStxc0zc9r4U r+FjKRRpeQO1v7UMC26mQwS1EkXkdPdDMEsoo83QOq+8XYotpfiT+Sou2qd0PSbQU2Lv MDvZoRhdxPu9HtXuhzc6ZrLpi2E/sU3Hn3oVCy9JG2PN/fIepPC0niEYsifdGTU1hUH/ uqMMsYi+0lOS7BEiiXS9Bl2OiJ3xcA2jh+MOfgzC/Ut0+BfcjIdSLDcuALEnZA6Um9ts Q+7prOSJRmUh70o70JGRDH0Smsi3lM+bQyA3OxmrMWqxPzdjbpdkk9bm6pwbkkZpcVxt ufFQ== X-Gm-Message-State: ALoCoQmEeMbEg/rgWm9QKkFHlTkDvwR4hvOT8HXRI2to3i3Z8IUN5UEXlQ8Uhkf2ARtzCqI44VzG X-Received: by 10.112.160.227 with SMTP id xn3mr24850400lbb.112.1428530793906; Wed, 08 Apr 2015 15:06:33 -0700 (PDT) MIME-Version: 1.0 Sender: jcarman@carmanconsulting.com Received: by 10.112.29.167 with HTTP; Wed, 8 Apr 2015 15:06:13 -0700 (PDT) In-Reply-To: <5522DBDF.4050605@yahoo.com> References: <5522DBDF.4050605@yahoo.com> From: James Carman Date: Wed, 8 Apr 2015 18:06:13 -0400 X-Google-Sender-Auth: Y4YeXPTwFUrY3y9lhyGfyHtebwg Message-ID: Subject: Re: Issue with 'javax.annotation' when installing 'camel' followed by 'cxf' feature To: "users@camel.apache.org" Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org Which JDK are you using to run Karaf? On Mon, Apr 6, 2015 at 3:17 PM, Martin Lichtin wrote: > In a Karaf 3.0.3 container one cannot install feature 'camel' followed by > installing 'cxf'. > > karaf@root()> feature:repo-add > mvn:org.apache.camel.karaf/apache-camel/2.15.1/xml/features > Adding feature url > mvn:org.apache.camel.karaf/apache-camel/2.15.1/xml/features > > karaf@root()> feature:install camel > karaf@root()> feature:install cxf > Refreshing bundles org.apache.servicemix.bundles.spring-context (79), > org.apache.servicemix.bundles.spring-beans (77), > org.apache.servicemix.bundles.spring-context-support (80), > org.apache.servicemix.bundles.spring-core (75) > Error executing command: Can't install feature cxf/0.0.0: > Could not start bundle > mvn:org.apache.cxf/cxf-rt-rs-extension-providers/3.0.4 in feature(s) > cxf-jaxrs-3.0.4: Uses constraint violation. Unable to resolve bundle > revision org.apache.cxf.cxf-rt-frontend-jaxrs [138.0] because it is exposed > to package 'javax.annotation' from bundle revisions javax.annotation-api > [93.0] and org.apache.felix.framework [0] via two dependency chains. > > Chain 1: > org.apache.cxf.cxf-rt-frontend-jaxrs [138.0] > import: > (&(osgi.wiring.package=javax.annotation)(version>=1.2.0)(!(version>=2.0.0))) > | > export: osgi.wiring.package=javax.annotation > javax.annotation-api [93.0] > > Chain 2: > org.apache.cxf.cxf-rt-frontend-jaxrs [138.0] > import: > (&(osgi.wiring.package=org.springframework.context.annotation)(version>=3.1.0)(!(version>=5.0.0))) > | > export: osgi.wiring.package=org.springframework.context.annotation; > uses:=javax.annotation > org.apache.servicemix.bundles.spring-context [79.0] > import: (osgi.wiring.package=javax.annotation) > | > export: osgi.wiring.package=javax.annotation > org.apache.felix.framework [0] > karaf@root()> > > Anyone else experiencing this issue? > > I see that switching the install (i.e. first installing 'cxf') will make it > work, however, it seems a klduge to prescribe an installation ordering. >