Details
-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
26.1.2.Final
-
None
-
None
-
Migration
-
---
-
---
Description
An application (EAR) running well under WildFly 10.1, does not run anymore to WildFly 26.1.2. POM where adjusted to use spec. from 26.x
See also : WFLY-17211
It seems that UndertowDeploymentInfoService try to load an old version of CDI WELD implementation because in new WELD version, the package org.jboss.weld.context.xxxx does not exist anymore after the version 2.8 (to be confirmed). The new package is org.jboss.weld.contexts.xxx with an 's' in 'context'...
Logs display this error :
17:02:11,815 SEVERE [javax.enterprise.resource.webcontainer.jsf.flow] (MSC service thread 1-6) Unable to obtain CDI 1.1 utilities for Mojarra 17:02:11,829 SEVERE [javax.enterprise.resource.webcontainer.jsf.application.view] (MSC service thread 1-6) Unable to obtain CDI 1.1 utilities for Mojarra 17:02:13,268 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC000001: Failed to start service jboss.deployment.subunit."geade-enterprise.ear"."geade-web.war".undertow-deployment.UndertowDeploymentInfoService: org.jboss.msc.service.StartException in service jboss.deployment.subunit."geade-enterprise.ear"."geade-web.war".undertow-deployment.UndertowDeploymentInfoService: java.lang.ClassNotFoundException: org.jboss.weld.context.NonexistentConversationException from [Module "deployment.geade-enterprise.ear.geade-web.war" from Service Module Loader] at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService.createServletConfig(UndertowDeploymentInfoService.java:1112) at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService.start(UndertowDeploymentInfoService.java:312) at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1739) at org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1701) at org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1559) at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35) at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990) at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486) at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1363) at java.lang.Thread.run(Thread.java:748) Caused by: java.lang.ClassNotFoundException: org.jboss.weld.context.NonexistentConversationException from [Module "deployment.geade-enterprise.ear.geade-web.war" from Service Module Loader] at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:200) at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:410) at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:116) at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService.createServletConfig(UndertowDeploymentInfoService.java:925) ... 9 more
Please give us a workaround... and let me know if you need more information.
Thank you
- Server log before : WildFly_26.1.2_server.log
- Pom of the EAR file : ApplicationEar_pom.xml
- Pom of the WAR file : ApplicationWar_pom.xml
- Pom of the BOM file : Application_Bom_pom.xml
- Effective POM of EAR file : ApplicationEar_Effective_pom.xml
- Effective POM of WAR file : ApplicationWar_Effective_pom.xml
The Weld Core implementation 2.4.8 contains the class under context.NonexistentConversationException But the version 3.1.SP4 contains the class but under the contexts package (with extra 's').
<dependency> <groupId>org.jboss.weld</groupId> <artifactId>weld-core-impl</artifactId> <version>2.4.8.Final</version> </dependency>