[Migration operation] [Web to Undertow] Migration fails with
java.lang.NoClassDefFoundError
-------------------------------------------------------------------------------------------
Key: WFLY-5113
URL:
https://issues.jboss.org/browse/WFLY-5113
Project: WildFly
Issue Type: Bug
Components: Web (Undertow)
Reporter: Radim Hatlapatka
Assignee: Stuart Douglas
Priority: Blocker
Fix For: 10.0.0.Beta2
Unable to migrate web subsystem due java.lang.NoClassDefFoundError [1]
[1]
{noformat}
13:01:52,134 ERROR [org.jboss.as.controller.management-operation]
(management-handler-thread - 1) WFLYCTL0013: Operation ("migrate") failed -
address: ([("subsystem" => "web")]):
java.lang.NoClassDefFoundError: org/wildfly/extension/undertow/UndertowExtension
at
org.jboss.as.web.WebMigrateOperation.migrateVirtualHost(WebMigrateOperation.java:572)
at
org.jboss.as.web.WebMigrateOperation.transformResources(WebMigrateOperation.java:493)
at org.jboss.as.web.WebMigrateOperation.access$300(WebMigrateOperation.java:109)
at org.jboss.as.web.WebMigrateOperation$2.execute(WebMigrateOperation.java:180)
at
org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:846)
[wildfly-controller-2.0.0.Beta1.jar:2.0.0.Beta1]
at
org.jboss.as.controller.AbstractOperationContext.processStages(AbstractOperationContext.java:637)
[wildfly-controller-2.0.0.Beta1.jar:2.0.0.Beta1]
at
org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:362)
[wildfly-controller-2.0.0.Beta1.jar:2.0.0.Beta1]
at
org.jboss.as.controller.OperationContextImpl.executeOperation(OperationContextImpl.java:1272)
[wildfly-controller-2.0.0.Beta1.jar:2.0.0.Beta1]
at
org.jboss.as.controller.ModelControllerImpl.internalExecute(ModelControllerImpl.java:394)
[wildfly-controller-2.0.0.Beta1.jar:2.0.0.Beta1]
at org.jboss.as.controller.ModelControllerImpl.execute(ModelControllerImpl.java:225)
[wildfly-controller-2.0.0.Beta1.jar:2.0.0.Beta1]
at
org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler.doExecute(ModelControllerClientOperationHandler.java:207)
[wildfly-controller-2.0.0.Beta1.jar:2.0.0.Beta1]
at
org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler.access$300(ModelControllerClientOperationHandler.java:129)
[wildfly-controller-2.0.0.Beta1.jar:2.0.0.Beta1]
at
org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler$1$1.run(ModelControllerClientOperationHandler.java:151)
[wildfly-controller-2.0.0.Beta1.jar:2.0.0.Beta1]
at
org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler$1$1.run(ModelControllerClientOperationHandler.java:147)
[wildfly-controller-2.0.0.Beta1.jar:2.0.0.Beta1]
at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.8.0_45]
at javax.security.auth.Subject.doAs(Subject.java:422) [rt.jar:1.8.0_45]
at org.jboss.as.controller.AccessAuditContext.doAs(AccessAuditContext.java:92)
[wildfly-controller-2.0.0.Beta1.jar:2.0.0.Beta1]
at
org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler$1.execute(ModelControllerClientOperationHandler.java:147)
[wildfly-controller-2.0.0.Beta1.jar:2.0.0.Beta1]
at
org.jboss.as.protocol.mgmt.AbstractMessageHandler$2$1.doExecute(AbstractMessageHandler.java:298)
[wildfly-protocol-2.0.0.Beta1.jar:2.0.0.Beta1]
at
org.jboss.as.protocol.mgmt.AbstractMessageHandler$AsyncTaskRunner.run(AbstractMessageHandler.java:518)
[wildfly-protocol-2.0.0.Beta1.jar:2.0.0.Beta1]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[rt.jar:1.8.0_45]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[rt.jar:1.8.0_45]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_45]
at org.jboss.threads.JBossThread.run(JBossThread.java:320)
[jboss-threads-2.2.1.Final.jar:2.2.1.Final]
Caused by: java.lang.ClassNotFoundException:
org.wildfly.extension.undertow.UndertowExtension from [Module
"org.jboss.as.web:main" from local module loader @2f333739 (finder: local module
finder @77468bd9 (roots:
/home/rhatlapa/projects/redhat_projects/migration/jboss-eap-7.0/modules,/home/rhatlapa/projects/redhat_projects/migration/jboss-eap-7.0/modules/system/layers/base))]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:205)
[jboss-modules.jar:1.4.3.Final]
at
org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:455)
[jboss-modules.jar:1.4.3.Final]
at
org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:404)
[jboss-modules.jar:1.4.3.Final]
at
org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:385)
[jboss-modules.jar:1.4.3.Final]
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:130)
[jboss-modules.jar:1.4.3.Final]
... 24 more
{noformat}