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

Enterprise war deployment fails with latest wildfly 20+

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Major
    • None
    • 20.0.1.Final, 21.0.0.Final
    • MP Config, REST
    • None
    • Hide

      1. Create a application war deployment (use an existing war) which was working well till wildfly 19.x

      2. Deploy the application on new wildfly 20.x or 21.x 

      3. We will see the above mentioned issue during server startup.

       

      PS :: we have seen the same issue with both versions 20.x and 21.x

       

      Also, we see that there are classes org.jboss.resteasy.microprofile.config.ServletConfigSource added in latest version jars which were not part of previous versions.

       

      Can you please check the issue and confirm ?

      Show
      1. Create a application war deployment (use an existing war) which was working well till wildfly 19.x 2. Deploy the application on new wildfly 20.x or 21.x  3. We will see the above mentioned issue during server startup.   PS :: we have seen the same issue with both versions 20.x and 21.x   Also, we see that there are classes org.jboss.resteasy.microprofile.config. ServletConfigSource  added in latest version jars which were not part of previous versions.   Can you please check the issue and confirm ?
    • Compatibility/Configuration
    • Blocks Testing
    • Undefined
    • ---
    • ---

    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)

      Attachments

        Activity

          People

            rsigal@redhat.com Ronald Sigal
            somasaninikhil Nikhil Somasani (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: