Details
Description
we have an enterprise application (test.war) file which used to be deployed without any issues till wildfly 19.0 version.. when we tried to deploy the same war file on wildfly 20.x or 21.x we are seeing the below error ::
12:39:45,553 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-5) MSC000001: Failed to start service jboss.deployment.unit."mytest.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."mytest.war".POST_MODULE: WFLYSRV0153: Failed to process phase POST_MODULE of deployment "mytest.war"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:189)
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:1377)
at java.lang.Thread.run(Thread.java:785)
Caused by: java.util.ServiceConfigurationError: org.eclipse.microprofile.config.spi.ConfigSource: Provider org.jboss.resteasy.microprofile.config.ServletConfigSource not found
at java.util.ServiceLoader.fail(ServiceLoader.java:250)
at java.util.ServiceLoader.access$300(ServiceLoader.java:196)
at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:383)
at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:415)
at java.util.ServiceLoader$1.next(ServiceLoader.java:491)
at java.lang.Iterable.forEach(Iterable.java:85)
at io.smallrye.config.SmallRyeConfigBuilder.discoverSources(SmallRyeConfigBuilder.java:74)
at io.smallrye.config.SmallRyeConfigBuilder.build(SmallRyeConfigBuilder.java:175)
at io.smallrye.config.SmallRyeConfigFactory$Default.getConfigFor(SmallRyeConfigFactory.java:56)
at io.smallrye.config.SmallRyeConfigProviderResolver.getConfig(SmallRyeConfigProviderResolver.java:86)
at org.wildfly.extension.microprofile.config.smallrye.deployment.SubsystemDeploymentProcessor.deploy(SubsystemDeploymentProcessor.java:48)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:182)
... 8 more
12:39:45,640 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "mytest.war")]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"mytest.war\".POST_MODULE" => "WFLYSRV0153: Failed to process phase POST_MODULE of deployment \"mytest.war\"
Caused by: java.util.ServiceConfigurationError: org.eclipse.microprofile.config.spi.ConfigSource: Provider org.jboss.resteasy.microprofile.config.ServletConfigSource not found"}}
12:39:45,682 INFO [org.jboss.as.server] (ServerService Thread Pool – 45) WFLYSRV0010: Deployed "newtask.ear" (runtime-name : "newtask.ear")
12:39:45,684 INFO [org.jboss.as.server] (ServerService Thread Pool – 45) WFLYSRV0010: Deployed "mytest.war" (runtime-name : "mytest.war")
12:39:45,686 INFO [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0183: Service status report
WFLYCTL0186: Services which failed to start: service jboss.deployment.unit."mytest.war".POST_MODULE: WFLYSRV0153: Failed to process phase POST_MODULE of deployment "mytest.war"
12:39:45,831 INFO [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0212: Resuming server
12:39:45,835 ERROR [org.jboss.as] (Controller Boot Thread) WFLYSRV0026: WildFly Full 21.0.0.Final (WildFly Core 13.0.1.Final) started (with errors) in 42625ms - Started 1207 of 1411 services (1 services failed or missing dependencies, 422 services are lazy, passive or on-demand)