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

Previously working CDI Deployment Failed - "Could not instantiate org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$3"

XMLWordPrintable

    • Hide

      Attached to this issue is one of the deployments tested when the SmallRye JWT project is deploying TCK deployments.

      1. Start a clean instance of the WildFly Servlet feature pack distribution.
      2. Copy the attached war to standalone/deployments
      Show
      Attached to this issue is one of the deployments tested when the SmallRye JWT project is deploying TCK deployments. Start a clean instance of the WildFly Servlet feature pack distribution. Copy the attached war to standalone/deployments
    • Undefined

      The SmallRye JWT project is currently testing against WildFly 18, I am trying to upgrade the project to WildFly 23 in preparation for a switch to a Galleon provisioned configuration but I am presently failing with the following error.

      jboss.deployment.unit."ECPublicKeyAsJWKLocationTest.war".undertow-deployment: java.lang.RuntimeException: javax.servlet.ServletException: UT010013: Could not instantiate org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$3
      	at org.wildfly.extension.undertow@21.0.0.Beta1-SNAPSHOT//org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:81)
      	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
      	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      	at org.jboss.threads@2.4.0.Final//org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
      	at org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990)
      	at org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
      	at org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)
      	at java.base/java.lang.Thread.run(Thread.java:834)
      	at org.jboss.threads@2.4.0.Final//org.jboss.threads.JBossThread.run(JBossThread.java:513)
      Caused by: java.lang.RuntimeException: javax.servlet.ServletException: UT010013: Could not instantiate org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$3
      	at io.undertow.servlet@2.1.4.Final-SNAPSHOT//io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:255)
      	at org.wildfly.extension.undertow@21.0.0.Beta1-SNAPSHOT//org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:96)
      	at org.wildfly.extension.undertow@21.0.0.Beta1-SNAPSHOT//org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:78)
      	... 8 more
      Caused by: javax.servlet.ServletException: UT010013: Could not instantiate org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$3
      	at io.undertow.servlet@2.1.4.Final-SNAPSHOT//io.undertow.servlet.core.ManagedListener.start(ManagedListener.java:50)
      	at io.undertow.servlet@2.1.4.Final-SNAPSHOT//io.undertow.servlet.core.ApplicationListeners.start(ApplicationListeners.java:159)
      	at io.undertow.servlet@2.1.4.Final-SNAPSHOT//io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:209)
      	at io.undertow.servlet@2.1.4.Final-SNAPSHOT//io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:186)
      	at io.undertow.servlet@2.1.4.Final-SNAPSHOT//io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:42)
      	at io.undertow.servlet@2.1.4.Final-SNAPSHOT//io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
      	at org.wildfly.extension.undertow@21.0.0.Beta1-SNAPSHOT//org.wildfly.extension.undertow.security.SecurityContextThreadSetupAction.lambda$create$0(SecurityContextThreadSetupAction.java:105)
      	at org.wildfly.extension.undertow@21.0.0.Beta1-SNAPSHOT//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1530)
      	at org.wildfly.extension.undertow@21.0.0.Beta1-SNAPSHOT//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1530)
      	at io.undertow.servlet@2.1.4.Final-SNAPSHOT//io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:253)
      	... 10 more
      Caused by: org.jboss.weld.exceptions.CreationException: WELD-001530: Cannot produce an instance of class org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$3.
      	at deployment.ECPublicKeyAsJWKLocationTest.war//org.jboss.weld.injection.producer.NonProducibleInjectionTarget.produce(NonProducibleInjectionTarget.java:79)
      	at deployment.ECPublicKeyAsJWKLocationTest.war//javax.enterprise.inject.spi.Unmanaged$UnmanagedInstance.produce(Unmanaged.java:119)
      	at deployment.ECPublicKeyAsJWKLocationTest.war//org.jboss.weld.environment.undertow.WeldInstanceFactory.createInstance(WeldInstanceFactory.java:59)
      	at io.undertow.servlet@2.1.4.Final-SNAPSHOT//io.undertow.servlet.core.ManagedListener.start(ManagedListener.java:48)
      	... 19 more
      

      After bisecting my way back from WildFly through a WildFly Core Upgrade and into Undertow the following issue has been identified as the underlying change in behaviour:

      https://issues.redhat.com/browse/UNDERTOW-1772

            darran.lofthouse@redhat.com Darran Lofthouse
            darran.lofthouse@redhat.com Darran Lofthouse
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: