-
Bug
-
Resolution: Done
-
Major
-
21.0.0.Final
-
None
-
-
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:
- is caused by
-
UNDERTOW-1772 Delay listener initialization so that it happens after execution of servlet container initializers
- Resolved
- is incorporated by
-
WFLY-15037 Upgrade Weld versions for EE 8 and 9
- Closed
- is related to
-
WELD-2664 Don't use WeldInstanceFactory for ImmediateInstanceFactory
- Resolved