karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amichai Rothman (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KARAF-6210) NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting Karaf
Date Wed, 27 Mar 2019 15:08:00 GMT

    [ https://issues.apache.org/jira/browse/KARAF-6210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16802898#comment-16802898

Amichai Rothman commented on KARAF-6210:

Just wanted to add that this is not a Windows-only issue, as I've seen it happen at least
once on Linux as well. So it more likely involves some startup race condition or something
like that, which might be more likely to happen on Windows due to thread scheduling differences,
but is not exclusive to Windows.

> NoClassDefFoundError: org/apache/karaf/shell/api/action/Action when starting 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 JDK 8.
>            Reporter: Amichai Rothman
>            Assignee: Jean-Baptiste Onofré
>            Priority: Major
> When starting karaf using equinox and some bundle in the deploy folder, many shell commands
(such as bundle:* and others) are not recognized, and the log shows NoClassDefFoundError:
org/apache/karaf/shell/api/action/Action. Some commands don't work, but others (e.g. shell:*)
> This happens consistently on Windows 10, but not on Linux, not sure why.
> Steps to recreate:
> 1. Extract stock Karaf 4.2.4.
> 2. In etc/config.properties change karaf.framework=felix to karaf.framework=equinox.
> 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 issue 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 available but others are not.

This message was sent by Atlassian JIRA

View raw message