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 4541E200C0D for ; Tue, 31 Jan 2017 21:42:39 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 43D18160B52; Tue, 31 Jan 2017 20:42:39 +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 658D6160B36 for ; Tue, 31 Jan 2017 21:42:38 +0100 (CET) Received: (qmail 29959 invoked by uid 500); 31 Jan 2017 20:42:37 -0000 Mailing-List: contact dev-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 dev@karaf.apache.org Received: (qmail 29945 invoked by uid 99); 31 Jan 2017 20:42:37 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 Jan 2017 20:42:37 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id CF049C0096 for ; Tue, 31 Jan 2017 20:42:36 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.379 X-Spam-Level: ** X-Spam-Status: No, score=2.379 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id KN3hBaMHhuBJ for ; Tue, 31 Jan 2017 20:42:33 +0000 (UTC) Received: from mail-wm0-f49.google.com (mail-wm0-f49.google.com [74.125.82.49]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 2DB055FAD8 for ; Tue, 31 Jan 2017 20:42:33 +0000 (UTC) Received: by mail-wm0-f49.google.com with SMTP id r141so6274578wmg.1 for ; Tue, 31 Jan 2017 12:42:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=HPj8DaFIsNAVH2hN2lc0IWDDQ/3sFgnDh7ySjbCMpy0=; b=QuToTuWcFHNRb5yCB40jy6hoC73Ub7whVE4QolPQEbjEQSeYnbRpIyHet8tHjT+aC1 93JaWq2kfrCngrwmTtPMiTdNfkE401HwClZCd8SiX8GnwimelZ1hGfOGLjEnRNVV3LFq y3K0Q+nfODiklr8b1+C48KHsHOMIwv0Z6LDyAxLYwnsPr4nE9zO+kkN5MlodNdOjxYb7 BctPDVk0AxUaTaGzSI59vbqcDSmcCkpxFqVAaPsMtazcZUcuQLc7g4GyC6n7ooP1S/0R mm+au4E4q1ZnIy9Addxp9ZGP4u4x46KvMVjaQIAKZ2tFpL0U6N1xsUrGZQN3dn6Hfhhv 6xiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=HPj8DaFIsNAVH2hN2lc0IWDDQ/3sFgnDh7ySjbCMpy0=; b=IaHyt/e/U6uLGP788w+bf9Drl8Wl/Qxf0We8bY0grcgd9tKMoNl1rlLL+g+jd4qqeO fChBNLQFX7yc1Mfgj+MK8AbjhHKOxftFfF2foOvOyOtMgOddEF3LZAlHle5B7AGq24Bh n0RQz1cb9z3pn4d9x7iDowwVD5Y0QywnmS864cx4QkVwE6u82v7cTQ6hAT7aPMJFKtHe j4bqpO5EswWT33aHlvYtV2uDew40MsXmx0nwj/0jExiF7qbvzRTQUF+6CWvRvFtjZunw H7xVPSdpU1ezRHZfZB2KFqBlLHb+oFS3YuhBnrSQOH89FmuRklBlJjxW8GyRk7QO1q7y 4Y6A== X-Gm-Message-State: AIkVDXKQYQtjGIyAA8uqia1OjuaBCNzXIEIlEni9dyL/cPb9fzB3h8k0fKs5YW472OhJyQ== X-Received: by 10.28.9.148 with SMTP id 142mr19343593wmj.24.1485895351962; Tue, 31 Jan 2017 12:42:31 -0800 (PST) Received: from [192.168.0.10] (078088031192.dynamic-ra-08.vectranet.pl. [78.88.31.192]) by smtp.googlemail.com with ESMTPSA id m29sm30211823wrm.38.2017.01.31.12.42.30 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 Jan 2017 12:42:31 -0800 (PST) Subject: Problems with 3rd party commands in 4.1.0 (was: Towards Karaf (Container) 4.1.0) To: dev@karaf.apache.org References: <9f091b71-b181-5d16-9f51-f6602aa62ce8@nanthrax.net> <34e68d68-8af8-d783-d65c-84a9a2c4c300@nanthrax.net> From: Krzysztof Sobkowiak Message-ID: Date: Tue, 31 Jan 2017 21:42:28 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------53DD196AB0AE995093450E47" Content-Language: pl archived-at: Tue, 31 Jan 2017 20:42:39 -0000 --------------53DD196AB0AE995093450E47 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Hi While testing 4.1.0 I have observed following issue. karaf@root()> feature:repo-add camel 2.18.2 21:35:06 Adding feature url mvn:org.apache.camel.karaf/apache-camel/2.18.2/xml/features karaf@root()> feature:install camel 21:35:19 karaf@root()> camel 21:35:26 camel camel:context-list camel:eip-explain camel:rest-api-doc camel:route-profile camel:route-start camel camel:context-resume camel:eip-explain camel:rest-registry-list camel:route-profile camel:route-stop camel:component-list camel:context-resume camel:endpoint-explain camel:rest-registry-list camel:route-reset-stats camel:route-stop camel:component-list camel:context-start camel:endpoint-explain camel:rest-show camel:route-reset-stats camel:route-suspend camel:context-inflight camel:context-start camel:endpoint-list camel:rest-show camel:route-resume camel:route-suspend camel:context-inflight camel:context-stop camel:endpoint-list camel:route-info camel:route-resume camel:context-info camel:context-stop camel:endpoint-stats camel:route-info camel:route-show camel:context-info camel:context-suspend camel:endpoint-stats camel:route-list camel:route-show camel:context-list camel:context-suspend camel:rest-api-doc camel:route-list camel:route-start The commands are available and work. But after Karaf restart they are no more available and the log contains following error: 2017-01-31 21:37:25,415 | ERROR | FelixStartLevel | Felix | - - | Bundle org.apache.camel.karaf.camel-karaf-commands [57] Error starting mvn:org.apache.camel.karaf/camel-karaf-commands/2.18.2 (org.osgi.framework.BundleException: Unable to resolve org.apache.camel.karaf.camel-karaf-commands [57](R 57.0): missing requirement [org.apache.camel.karaf.camel-karaf-commands [57](R 57.0)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.karaf.shell.console)(version>=3.0.0)(!(version>=5.0.0))) [caused by: Unable to resolve org.apache.karaf.shell.console [42](R 42.0): missing requirement [org.apache.karaf.shell.console [42](R 42.0)] osgi.wiring.host; (&(osgi.wiring.host=org.apache.karaf.shell.core)(bundle-version>=0.0.0))] Unresolved requirements: [[org.apache.camel.karaf.camel-karaf-commands [57](R 57.0)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.karaf.shell.console)(version>=3.0.0)(!(version>=5.0.0)))]) org.osgi.framework.BundleException: Unable to resolve org.apache.camel.karaf.camel-karaf-commands [57](R 57.0): missing requirement [org.apache.camel.karaf.camel-karaf-commands [57](R 57.0)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.karaf.shell.console)(version>=3.0.0)(!(version>=5.0.0))) [caused by: Unable to resolve org.apache.karaf.shell.console [42](R 42.0): missing requirement [org.apache.karaf.shell.console [42](R 42.0)] osgi.wiring.host; (&(osgi.wiring.host=org.apache.karaf.shell.core)(bundle-version>=0.0.0))] Unresolved requirements: [[org.apache.camel.karaf.camel-karaf-commands [57](R 57.0)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.karaf.shell.console)(version>=3.0.0)(!(version>=5.0.0)))] at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4111) [?:?] at org.apache.felix.framework.Felix.startBundle(Felix.java:2117) [?:?] at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1371) [?:?] at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308) [?:?] at java.lang.Thread.run(Thread.java:745) [?:?] 2017-01-31 21:37:25,417 | ERROR | lixDispatchQueue | camel-karaf-commands | 57 - org.apache.camel.karaf.camel-karaf-commands - 2.18.2 | FrameworkEvent ERROR - org.apache.camel.karaf.camel-karaf-commands org.osgi.framework.BundleException: Unable to resolve org.apache.camel.karaf.camel-karaf-commands [57](R 57.0): missing requirement [org.apache.camel.karaf.camel-karaf-commands [57](R 57.0)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.karaf.shell.console)(version>=3.0.0)(!(version>=5.0.0))) [caused by: Unable to resolve org.apache.karaf.shell.console [42](R 42.0): missing requirement [org.apache.karaf.shell.console [42](R 42.0)] osgi.wiring.host; (&(osgi.wiring.host=org.apache.karaf.shell.core)(bundle-version>=0.0.0))] Unresolved requirements: [[org.apache.camel.karaf.camel-karaf-commands [57](R 57.0)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.karaf.shell.console)(version>=3.0.0)(!(version>=5.0.0)))] at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4111) [?:?] at org.apache.felix.framework.Felix.startBundle(Felix.java:2117) [?:?] at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1371) [?:?] at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308) [?:?] at java.lang.Thread.run(Thread.java:745) [?:?] The same happens with other 3rd party commands, e.g: karaf@root()> feature:repo-add activemq 5.15.0-SNAPSHOT 21:39:14 Adding feature url mvn:org.apache.activemq/activemq-karaf/5.15.0-SNAPSHOT/xml/features karaf@root()> feature:install activemq-broker-noweb 21:39:26 karaf@root()> activemq 21:39:37 activemq activemq:bstat activemq:consumer activemq:list activemq:producer activemq:query activemq:browse activemq:bstat activemq:dstat activemq:list activemq:purge activemq:query activemq:browse activemq:consumer activemq:dstat activemq:producer activemq:purge Is this the same problem you have mentioned in this thread? Kindly regards Krzysztof On 29.01.2017 13:38, Jean-Baptiste Onofré wrote: > > 2. Shell command issue > Several projects providing shell commands (like Camel, ActiveMQ, ...) directly use jline dependency. It's pretty bad (they should use the Karaf "wrapper), and, as Karaf 4.1.x now uses JLine 3.x, those commands don't work in Karaf 4.1.x. > Here, we have two solutions: > 2.1. We create the jline "2.x" compliant packages in Karaf (in a bundle as part of the shell-compat feature for instance). It's only a workaround but should fix the issue. > 2.2. jline 3.x can provide a "compat" bundle with the jline 2.x packages name, wrapping the jline 3.x ones. It's probably the most elegant solution, but it's require a new jline 3.x release. -- Krzysztof Sobkowiak (@ksobkowiak) JEE & OSS Architect, Integration Architect Apache Software Foundation Member (http://apache.org/) Apache ServiceMix Committer & PMC Member (http://servicemix.apache.org/) Senior Solution Architect @ Capgemini SSC (http://www.capgeminisoftware.pl/) --------------53DD196AB0AE995093450E47--