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 6B0F5200C10 for ; Fri, 3 Feb 2017 14:47:11 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 698F9160B48; Fri, 3 Feb 2017 13:47:11 +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 B0E10160B3F for ; Fri, 3 Feb 2017 14:47:10 +0100 (CET) Received: (qmail 48278 invoked by uid 500); 3 Feb 2017 13:47:09 -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 48267 invoked by uid 99); 3 Feb 2017 13:47:09 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Feb 2017 13:47:09 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 08CCB1A068A for ; Fri, 3 Feb 2017 13:47:09 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.999 X-Spam-Level: X-Spam-Status: No, score=-1.999 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id XMe66tmVro9R for ; Fri, 3 Feb 2017 13:47:04 +0000 (UTC) Received: from mail.io7m.com (io7m.com [159.203.63.34]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 3D1F45F30A for ; Fri, 3 Feb 2017 13:47:03 +0000 (UTC) Received: from copperhead.int.arc7.info (cust187-dsl61.idnet.net [212.69.61.187]) by mail.io7m.com (Postfix) with ESMTPSA id 037FF18A64D for ; Fri, 3 Feb 2017 13:47:01 +0000 (UTC) Date: Fri, 3 Feb 2017 13:47:00 +0000 From: list+org.apache.felix@io7m.com To: users@felix.apache.org Subject: Re: ClassNotFoundException with gogo remote shell Message-ID: <20170203134700.40648d4a@copperhead.int.arc7.info> In-Reply-To: <20170202220137.657895aa@copperhead.int.arc7.info> References: <20170202220137.657895aa@copperhead.int.arc7.info> Organization: io7m.com MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; boundary="Sig_/bc_=KKwdSA1Xbv6IJO1MK77"; protocol="application/pgp-signature" archived-at: Fri, 03 Feb 2017 13:47:11 -0000 --Sig_/bc_=KKwdSA1Xbv6IJO1MK77 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable A much smaller repro case: http://ataxia.io7m.com/2017/02/03/remote.zip http://ataxia.io7m.com/2017/02/03/remote.zip.asc $ ./run.sh This simply installs: org.apache.felix.gogo.command-0.16.0.jar org.apache.felix.gogo.runtime-0.16.2.jar org.apache.felix.gogo.shell-0.10.0.jar org.apache.felix.shell.remote-1.2.0.jar ... into a Felix instance started from org.apache.felix.main-5.6.1.jar and provides a small config that enables the telnet server listening on 127.0.0.1:2323. Trying to connect to the telnet server results in: Exception in thread "telnetconsole.shell remote=3D/127.0.0.1:48246" java.la= ng.NoClassDefFoundError: org/apache/felix/service/command/CommandProcessor at org.apache.felix.shell.remote.Shell.run(Shell.java:78) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.ClassNotFoundException: *** Class 'org.apache.felix.se= rvice.command.CommandProcessor' was not found because bundle org.apache.fel= ix.shell.remote [5] does not import 'org.apache.felix.service.command' even= though bundle [org.apache.felix.gogo.runtime [2](R 2.0)] osgi.wiring.packa= ge; {bundle-symbolic-name=3Dorg.apache.felix.gogo.runtime, bundle-version= =3D0.16.2, version=3D0.16.2, osgi.wiring.package=3Dorg.apache.felix.service= .command, status=3Dprovisional} does export it. To resolve this issue, add = an import for 'org.apache.felix.service.command' to bundle org.apache.felix= .shell.remote [5]. *** at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass= (BundleWiringImpl.java:2031) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 2 more Caused by: java.lang.ClassNotFoundException: org.apache.felix.service.comma= nd.CommandProcessor not found by org.apache.felix.shell.remote [5] at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelega= tion(BundleWiringImpl.java:1574) at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl= .java:79) at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass= (BundleWiringImpl.java:2018) ... 3 more ... appearing on the local gogo shell. This certainly seems like a bug to me. M --Sig_/bc_=KKwdSA1Xbv6IJO1MK77 Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQJCBAEBCgAsFiEEgWja4isV0+3HIsI9DxW30G+oDLgFAliUidQOHG1hcmtAaW83 bS5jb20ACgkQDxW30G+oDLh4wQ//e/+ltCnEq1LvEBau5mQNmrLp85WiMVYaTX9M LAHV/FCE0QjwytnotZ7plVwuRaIkiuXY+deUIeKp7gCMRaXWP71be6mnO/nawtHb z6A8k3mEWYIXi/0tOwbqbKmMASPPW1RM8OJCvION82tZ3OZxzu7RHwfVIkMujsTy PvT8PATwMD5nQri+d716g4fduK/B9RELiDgGnu7oWEZYpev+QN9GI2Ne412EfNyn xa346//AWXDU5v8T6tYq4CFSjJ4hLAKFlrr4OMrDfzoyqDNpexBmpA6H34AkwF3L vVX4VZHQqt/FXTb52CEeZCSJyMKkRVFD/ouzJ+lzn5InHAh+bNXeCbP+7404jtit IKFX0pY0ggqTV7EeJwtfJeyEjo6u9nJ45FTfFEMStuFpFHEFyVx2bwKfyrhhLkRS mM34p5dBvJBsFiFd3zkpK64pHQYi2kQa6ZnZ+lwx3MSEN3rojiburVwzL4qllvth 65fX0lh0EAostXlGVPywa8MfRvV407Kf22gvcbWyal3byxoYZ8HbExAQKs9qzMsv IJF110xvIUC2cgfaaLJ3VrCqjmGKC4SsrZeYv38vQu5t6rgdbbLSmodgADyWIToA 5WuJzVC+e8gj8iJ9MiKoejS4W7GIZKU/UZ9KnhRAszCMUcmYFirD0wnY1WQr9+rZ sYt2bFM= =RruP -----END PGP SIGNATURE----- --Sig_/bc_=KKwdSA1Xbv6IJO1MK77--