Bug 1387210 - jboss-cli.sh fails with NoClassDefFoundError with DV 6.3.2 CR1
Summary: jboss-cli.sh fails with NoClassDefFoundError with DV 6.3.2 CR1
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Data Virtualization 6
Classification: JBoss
Component: Productization
Version: 6.3.0
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ---
: ---
Assignee: Alex Szczuczko
QA Contact: Andrej Smigala
URL:
Whiteboard:
Depends On:
Blocks: 1364507
TreeView+ depends on / blocked
 
Reported: 2016-10-20 11:08 UTC by Andrej Smigala
Modified: 2017-02-20 19:09 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-02-20 19:09:38 UTC
Type: Support Patch


Attachments (Terms of Use)

Description Andrej Smigala 2016-10-20 11:08:31 UTC
Description of problem:
Running jboss-cli.sh after installing the 6.3.2 patch fails with NoClassDefFoundError, see below for stack trace.


Version-Release number of selected component (if applicable):
6.3.2 CR1


How reproducible:
Always

Steps to Reproduce:
1. Install DV 6.3 using the installer (installation of DV+EAP)
2. Install the 6.3.2 CR1 patch
3. Run bin/jboss-cli.sh

Actual results:

java.lang.NoClassDefFoundError: org/jboss/as/cli/impl/ArgumentWithListValue
        at org.jboss.as.patching.cli.PatchHandlerProvider.createCommandHandler(PatchHandlerProvider.java:36)
        at org.jboss.as.cli.impl.CommandContextImpl.registerExtraHandlers(CommandContextImpl.java:477)
        at org.jboss.as.cli.impl.CommandContextImpl.initCommands(CommandContextImpl.java:471)
        at org.jboss.as.cli.impl.CommandContextImpl.<init>(CommandContextImpl.java:296)
        at org.jboss.as.cli.impl.CommandContextFactoryImpl.newCommandContext(CommandContextFactoryImpl.java:76)
        at org.jboss.as.cli.impl.CliLauncher.initCommandContext(CliLauncher.java:294)
        at org.jboss.as.cli.impl.CliLauncher.main(CliLauncher.java:277)
        at org.jboss.as.cli.CommandLineMain.main(CommandLineMain.java:45)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.jboss.modules.Module.run(Module.java:312)
        at org.jboss.modules.Main.main(Main.java:473)
Caused by: java.lang.ClassNotFoundException: org.jboss.as.cli.impl.ArgumentWithListValue from [Module "org.jboss.as.patching:main" from local module loader @619a5dff (finder: local module finder @1ed6993a (roots: /home/asmigala/install/local-server/dv-632-cr1-local-patch/modules,/home/asmigala/install/local-server/dv-632-cr1-local-patch/modules/system/layers/dv,/home/asmigala/install/local-server/dv-632-cr1-local-patch/modules/system/layers/base/.overlays/layer-base-jboss-eap-6.4.9.CP,/home/asmigala/install/local-server/dv-632-cr1-local-patch/modules/system/layers/base))]
        at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:213)
        at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459)
        at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408)
        at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389)
        at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134)
        ... 14 more


Expected results:
jboss-cli.sh runs correctly

Comment 1 Alex Szczuczko 2016-10-20 18:42:05 UTC
I think I have something that works now. I've included the missing class in the build of the custom patching module, so in versions of EAP less than 6.4.11, it will still be available.


Note You need to log in before you can comment on or make changes to this bug.