Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 39CA8200B81 for ; Mon, 29 Aug 2016 10:43:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 38633160AA7; Mon, 29 Aug 2016 08:43:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 7F95C160AB8 for ; Mon, 29 Aug 2016 10:43:21 +0200 (CEST) Received: (qmail 29466 invoked by uid 500); 29 Aug 2016 08:43:20 -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 29455 invoked by uid 99); 29 Aug 2016 08:43:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Aug 2016 08:43:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 701072C014E for ; Mon, 29 Aug 2016 08:43:20 +0000 (UTC) Date: Mon, 29 Aug 2016 08:43:20 +0000 (UTC) From: "Guillaume Nodet (JIRA)" To: issues@karaf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (KARAF-4676) Karaf does not reapply the wiring when rebooting MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 29 Aug 2016 08:43:22 -0000 [ https://issues.apache.org/jira/browse/KARAF-4676?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15445263#comment-15445263 ] Guillaume Nodet commented on KARAF-4676: ---------------------------------------- The reason is that upon restart, the {{mvn:com.google.guava/guava/18.0}} bundle is wired to the system bundle {{javax.annotation}} instead of the package coming from {{mvn:javax.annotation/javax.annotation-api/1.2}}. With equinox, the problem is slightly different, as the feature installation fails when restarting the bundles, but the wiring is preserved by equinox upon restarts. > Karaf does not reapply the wiring when rebooting > ------------------------------------------------ > > Key: KARAF-4676 > URL: https://issues.apache.org/jira/browse/KARAF-4676 > Project: Karaf > Issue Type: Bug > Affects Versions: 4.0.6 > Reporter: Guillaume Nodet > Assignee: Guillaume Nodet > > The features service is smart and apply it's computed wiring to the bundles when features are installed. > However, after restarting Karaf from scratch, the previous wiring is not used which can lead to problems: > {code} > karaf@root()> repo-add pax-cdi 1.0.0-SNAPSHOT ; feature:install pax-cdi-weld > karaf@root()> bundle:list --no-format | grep -v Active > START LEVEL 100 , List Threshold: 50 > karaf@root()> system:shutdown --reboot > Confirm: reboot instance root (yes/no): yes > karaf@root()> > __ __ ____ > / //_/____ __________ _/ __/ > / ,< / __ `/ ___/ __ `/ /_ > / /| |/ /_/ / / / /_/ / __/ > /_/ |_|\__,_/_/ \__,_/_/ > Apache Karaf (4.1.0-SNAPSHOT) > Hit '' for a list of available commands > and '[cmd] --help' for help on a specific command. > Hit '' or type 'system:shutdown' or 'logout' to shutdown Karaf. > karaf@root()> bundle:list --no-format | grep -v Active > START LEVEL 100 , List Threshold: 50 > 51 Installed 80 2.3.3.Final Weld OSGi Bundle > 53 Waiting 80 1.0.0.SNAPSHOT OPS4J Pax CDI Extender for Bean Bundles > 56 Installed 80 1.0.0.SNAPSHOT OPS4J Pax CDI Weld Adapter > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)