Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-17212

UndertowDeploymentInfoService call an Old Weld version - org.jboss.weld.context.NonexistentConversationException

    XMLWordPrintable

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

      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>
      

      Attachments

        1. Application_Bom_pom.xml
          11 kB
        2. ApplicationEar_Effective_pom.xml
          28 kB
        3. ApplicationEar_pom.xml
          3 kB
        4. ApplicationWar_Effective_pom.xml
          97 kB
        5. ApplicationWar_pom.xml
          13 kB
        6. maven-dependency-tree.txt
          115 kB
        7. WildFly_26.1.2_server.log
          135 kB

        Activity

          People

            Unassigned Unassigned
            jorelia jorelia ANDRE (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: