[
https://issues.apache.org/jira/browse/KARAF-6210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16829160#comment-16829160
]
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(BundleContextImpl.java:944)
~[?:?]
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:233)
~[?:?]
at
org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:151)
~[?:?]
at
org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEventPrivileged(EquinoxEventPublisher.
java:233) ~[?:?]
at
org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:140)
~[?:?]
at
org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:132)
~[?:?]
at
org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor.publishModuleEvent(EquinoxContainerAdaptor.java:1
94) ~[?:?]
at
org.eclipse.osgi.container.ModuleContainer.applyDelta(ModuleContainer.java:848)
~[?:?]
at
org.eclipse.osgi.container.ModuleContainer.resolveAndApply(ModuleContainer.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.resolveBundles(ModuleContainer.java:1442)
~[?:?]
at
org.apache.karaf.features.internal.service.BundleInstallSupportImpl.resolveBundles(BundleInstallSupportImpl.j
ava:240) ~[?:?]
at
org.apache.karaf.features.internal.service.FeaturesServiceImpl.resolveBundles(FeaturesServiceImpl.java:1164)
~[?:?]
at
org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:983)
~[?:?]
at
org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1058)
~[?
:?]
at
org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceI
mpl.java:994) ~[?:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:?]
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
~[?:?]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
~[?:?]
at java.lang.Thread.run(Thread.java:748) ~[?:?]
> 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:*) do.
> 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
(v7.6.3#76005)