From issues-return-44153-archive-asf-public=cust-asf.ponee.io@karaf.apache.org Mon Apr 29 11:34:02 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id B4DA918072F for ; Mon, 29 Apr 2019 13:34:01 +0200 (CEST) Received: (qmail 23520 invoked by uid 500); 29 Apr 2019 11:34:01 -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 23469 invoked by uid 99); 29 Apr 2019 11:34:01 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Apr 2019 11:34:01 +0000 Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 7D832E2B0E for ; Mon, 29 Apr 2019 11:34:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 3652525813 for ; Mon, 29 Apr 2019 11:34:00 +0000 (UTC) Date: Mon, 29 Apr 2019 11:34:00 +0000 (UTC) From: "Amichai Rothman (JIRA)" To: issues@karaf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (KARAF-6210) NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting Karaf 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-6210?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1682= 9160#comment-16829160 ]=20 Amichai Rothman commented on KARAF-6210: ---------------------------------------- Happens also on Karaf 4.2.5. In addition, on 4.2.5 there is also this, which looks similar: java.lang.NoClassDefFoundError: org/apache/karaf/specs/locator/OsgiLocator at org.apache.karaf.specs.activator.Activator.register(Activator.java:124)= ~[?:?] at org.apache.karaf.specs.activator.Activator.bundleChanged(Activator.java= :96) ~[?:?] at org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(Bun= dleContextImpl.java:944) ~[?:?] at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventMan= ager.java:233) ~[?:?] at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchron= ous(ListenerQueue.java:151) ~[?:?] at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundle= EventPrivileged(EquinoxEventPublisher. java:233) ~[?:?] at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundle= Event(EquinoxEventPublisher.java:140) ~[?:?] at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundle= Event(EquinoxEventPublisher.java:132) ~[?:?] at org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor.publishModu= leEvent(EquinoxContainerAdaptor.java:1 94) ~[?:?] at org.eclipse.osgi.container.ModuleContainer.applyDelta(ModuleContainer.j= ava:848) ~[?:?] at org.eclipse.osgi.container.ModuleContainer.resolveAndApply(ModuleContai= ner.java:552) ~[?:?] at org.eclipse.osgi.container.ModuleContainer.resolve(ModuleContainer.java= :495) ~[?:?] at org.eclipse.osgi.container.ModuleContainer.resolve(ModuleContainer.java= :484) ~[?:?] at org.eclipse.osgi.container.ModuleContainer$ContainerWiring.resolveBundl= es(ModuleContainer.java:1442) ~[?:?] at org.apache.karaf.features.internal.service.BundleInstallSupportImpl.res= olveBundles(BundleInstallSupportImpl.j ava:240) ~[?:?] at org.apache.karaf.features.internal.service.FeaturesServiceImpl.resolveB= undles(FeaturesServiceImpl.java:1164) ~[?:?] at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.jav= a:983) ~[?:?] at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvis= ion(FeaturesServiceImpl.java:1058) ~[? :?] at org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$d= oProvisionInThread$13(FeaturesServiceI mpl.java:994) ~[?:?] at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:?] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.ja= va:1149) ~[?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.j= ava:624) ~[?:?] at java.lang.Thread.run(Thread.java:748) ~[?:?] > NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when start= ing Karaf > -------------------------------------------------------------------------= --------- > > Key: KARAF-6210 > URL: https://issues.apache.org/jira/browse/KARAF-6210 > Project: Karaf > Issue Type: Bug > Components: karaf > Affects Versions: 4.2.4 > Environment: Stock Karaf 4.2.4 on Windows 10 with latest Oracle J= DK 8. > Reporter: Amichai Rothman > Assignee: Jean-Baptiste Onofr=C3=A9 > Priority: Major > > When starting karaf using equinox and some bundle in the deploy folder, m= any shell commands (such as bundle:* and others) are not recognized, and th= e log shows NoClassDefFoundError: org/apache/karaf/shell/api/action/Action.= Some commands don't work, but others (e.g. shell:*) do. > This happens consistently on Windows 10, but not on Linux, not sure why. > =C2=A0 > Steps to recreate: > 1. Extract stock Karaf 4.2.4. > 2. In etc/config.properties change karaf.framework=3Dfelix to karaf.frame= work=3Dequinox. > 3. Place org.apache.aries.transaction.blueprint-2.2.0.jar (from maven) in= deploy folder. This is not the only bundle it happens with, just a public = one I found for this example. From several I tried, some recreated the issu= e and some did not. The bundle is not resolved due to missing dependencies. > 4. Start Karaf. > 5. Try to run bundle:list and it'll say command not found. Or look at the= karaf log and see "java.lang.NoClassDefFoundError: org/apache/karaf/shell/= api/action/Action". Use shell completion to see that some commands are avai= lable but others are not. > =C2=A0 -- This message was sent by Atlassian JIRA (v7.6.3#76005)