Return-Path: X-Original-To: apmail-karaf-issues-archive@minotaur.apache.org Delivered-To: apmail-karaf-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 02E05184F5 for ; Sat, 19 Dec 2015 15:51:47 +0000 (UTC) Received: (qmail 21322 invoked by uid 500); 19 Dec 2015 15:51:46 -0000 Delivered-To: apmail-karaf-issues-archive@karaf.apache.org Received: (qmail 21292 invoked by uid 500); 19 Dec 2015 15:51:46 -0000 Mailing-List: contact issues-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@karaf.apache.org Delivered-To: mailing list issues@karaf.apache.org Received: (qmail 21276 invoked by uid 99); 19 Dec 2015 15:51:46 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 19 Dec 2015 15:51:46 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id B85E82C1F56 for ; Sat, 19 Dec 2015 15:51:46 +0000 (UTC) Date: Sat, 19 Dec 2015 15:51:46 +0000 (UTC) From: =?utf-8?Q?J=2E_Br=C3=A9bec_=28JIRA=29?= To: issues@karaf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (KARAF-4159) FeatureResolver: Wrong dependencies installed MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/KARAF-4159?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1506= 5415#comment-15065415 ]=20 J. Br=C3=A9bec commented on KARAF-4159: ---------------------------------- it's ok for me, thanks. > FeatureResolver: Wrong dependencies installed > --------------------------------------------- > > Key: KARAF-4159 > URL: https://issues.apache.org/jira/browse/KARAF-4159 > Project: Karaf > Issue Type: Bug > Components: karaf-feature > Affects Versions: 4.0.3 > Environment: Reproduced in MacOS (JRE1.8) or Windows 7 (JRE 1.7) > Reporter: J. Br=C3=A9bec > Assignee: Guillaume Nodet > Priority: Critical > Fix For: 4.0.4 > > > In a fresh Karaf 4.0.3 installation > 1. install spring/3.2.14.RELEASE_1 > {code} > feature:install spring/3.2.14.RELEASE_1 > {code} > 2. test an installation of spring-dm. Randomly, Karaf try to install spri= ng 3.1.4.RELEASE > {code} > karaf@root()> feature:install -t -v spring-dm > Adding features: spring-dm/[1.2.1,1.2.1] > Changes to perform: > Region: root > Bundles to install: > mvn:org.apache.karaf.bundle/org.apache.karaf.bundle.springstate/4.0= .3 > mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.cgl= ib/3.0_1 > mvn:org.springframework/spring-aop/3.1.4.RELEASE > mvn:org.springframework/spring-asm/3.1.4.RELEASE > mvn:org.springframework/spring-beans/3.1.4.RELEASE > mvn:org.springframework/spring-context/3.1.4.RELEASE > mvn:org.springframework/spring-context-support/3.1.4.RELEASE > mvn:org.springframework/spring-core/3.1.4.RELEASE > mvn:org.springframework/spring-expression/3.1.4.RELEASE > mvn:org.springframework.osgi/spring-osgi-core/1.2.1 > mvn:org.springframework.osgi/spring-osgi-extender/1.2.1 > mvn:org.springframework.osgi/spring-osgi-annotation/1.2.1 > mvn:org.springframework.osgi/spring-osgi-io/1.2.1 > Bundles to refresh: > org.apache.servicemix.bundles.spring-aop/3.2.14.RELEASE_1 (Wired to o= rg.apache.servicemix.bundles.spring-core/3.2.14.RELEASE_1 which is being re= freshed) > org.apache.servicemix.bundles.spring-beans/3.2.14.RELEASE_1 (Wired to= org.apache.servicemix.bundles.spring-core/3.2.14.RELEASE_1 which is being = refreshed) > org.apache.servicemix.bundles.spring-context/3.2.14.RELEASE_1 (Wired = to org.apache.servicemix.bundles.spring-aop/3.2.14.RELEASE_1 which is being= refreshed) > org.apache.servicemix.bundles.spring-context-support/3.2.14.RELEASE_1= (Wired to org.apache.servicemix.bundles.spring-beans/3.2.14.RELEASE_1 whic= h is being refreshed) > org.apache.servicemix.bundles.spring-core/3.2.14.RELEASE_1 (Should be= wired to: org.apache.servicemix.bundles.cglib/3.0.0.1 (through [org.apache= .servicemix.bundles.spring-core/3.2.14.RELEASE_1] osgi.wiring.package; filt= er:=3D"(&(osgi.wiring.package=3Dnet.sf.cglib.beans)(version>=3D3.0.0)(!(ver= sion>=3D4.0.0)))"; resolution:=3Doptional)) > org.apache.servicemix.bundles.spring-expression/3.2.14.RELEASE_1 (Wir= ed to org.apache.servicemix.bundles.spring-core/3.2.14.RELEASE_1 which is b= eing refreshed) > {code}=20 > Note: This can happen too when installing spring and spring-dm in the sam= e command or in a boot feature (staged or not). > 3. install any unrelated feature (when spring-dm has installed spring 3.1= ) : Karaf uninstall spring 3.1 and refresh the world > {code} > karaf@root()> feature:install -t -v scheduler=20 > Adding features: scheduler/[4.0.3,4.0.3] > Changes to perform: > Region: root > Bundles to uninstall: > org.springframework.expression/3.1.4.RELEASE > org.springframework.context.support/3.1.4.RELEASE > org.springframework.core/3.1.4.RELEASE > org.springframework.beans/3.1.4.RELEASE > org.springframework.context/3.1.4.RELEASE > org.springframework.aop/3.1.4.RELEASE > org.springframework.asm/3.1.4.RELEASE > Bundles to install: > mvn:org.apache.karaf.scheduler/org.apache.karaf.scheduler.core/4.0.= 3 > Bundles to refresh: > org.springframework.aop/3.1.4.RELEASE (Bundle will be uninstalled) > org.springframework.asm/3.1.4.RELEASE (Bundle will be uninstalled) > org.springframework.beans/3.1.4.RELEASE (Bundle will be uninstalled) > org.springframework.context/3.1.4.RELEASE (Bundle will be uninstalled= ) > org.springframework.context.support/3.1.4.RELEASE (Bundle will be uni= nstalled) > org.springframework.core/3.1.4.RELEASE (Bundle will be uninstalled) > org.springframework.expression/3.1.4.RELEASE (Bundle will be uninstal= led) > {code} > this is critical in my environment : a lot of dependencies don't work wit= h two versions of spring in the container. moreover, installing any feature= after that uninstall/refresh a lot of bundle (it uninstall unrelated bundl= e too) -- This message was sent by Atlassian JIRA (v6.3.4#6332)