7 Replies Latest reply on Mar 15, 2019 1:40 AM by Markus Fried

    Wildfly 12 - deployment fails, async Servlet

    Markus Fried Newbie

      Hi all,

       

      I'm migrating an application from Weblogic to Wildfly 12. So far I made step by step progress configuring resources and changing dependencies appropriately.

       

      Now I'm stuck on the following error:

       

      2018-03-13 10:41:20,919 ERROR [org.jboss.as.controller.management-operation] (External Management Request Threads -- 1) WFLYCTL0013: Operation ("add") failed - address: ([("deployment" => "XXX-8.5.BUILD-SNAPSHOT.ear")]) - failure description: {

          "WFLYCTL0412: Required services that are not installed:" => [

              "jboss.deployment.subunit.\"XXX-8.5.BUILD-SNAPSHOT.ear\".\"web-8.5.BUILD-SNAPSHOT.war\".component.\"org.springframework.web.context.request.async.StandardServletAsyncWebRequest\".START",

              "jboss.deployment.subunit.\"XXX-8.5.BUILD-SNAPSHOT.ear\".\"web-8.5.BUILD-SNAPSHOT.war\".component.\"org.apache.cxf.transport.http.Servlet3ContinuationProvider$Servlet3Continuation\".START",

              "jboss.deployment.subunit.\"XXX-8.5.BUILD-SNAPSHOT.ear\".\"web-8.5.BUILD-SNAPSHOT.war\".component.\"org.springframework.http.server.ServletServerHttpAsyncRequestControl\".START"

          ],

          "WFLYCTL0180: Services with missing/unavailable dependencies" => ["jboss.deployment.unit.\"XXX-8.5.BUILD-SNAPSHOT.ear\".WeldEndInitService is missing [jboss.deployment.subunit.\"XXX-8.5.BUILD-SNAPSHOT.ear\".\"web-8.5.BUILD-SNAPSHOT.war\".component.\"org.apache.cxf.transport.http.Servlet3ContinuationProvider$Servlet3Continuation\".START, jboss.deployment.subunit.\"XXX-8.5.BUILD-SNAPSHOT.ear\".\"web-8.5.BUILD-SNAPSHOT.war\".component.\"org.springframework.web.context.request.async.StandardServletAsyncWebRequest\".START, jboss.deployment.subunit.\"XXX-8.5.BUILD-SNAPSHOT.ear\".\"web-8.5.BUILD-SNAPSHOT.war\".component.\"org.springframework.http.server.ServletServerHttpAsyncRequestControl\".START]"]

      }

       

      The mentioned classes seem to be related to async servlets (which we do not use).

       

      So I'm out of clues here - does anybody know how to fix this? ;-)

       

      Best regards.

       

      Mark.

        • 1. Re: Wildfly 12 - deployment fails, async Servlet
          Jaikiran Pai Master

          Is there any exception stacktrace in the server log, before the summary of these errors?

          • 2. Re: Wildfly 12 - deployment fails, async Servlet
            Markus Fried Newbie

            not really, just this (which as I understand is nothing to be worried about):

             

            2018-03-13 10:40:04,604 DEBUG [org.jboss.as.ee] (MSC service thread 1-2) Not installing optional component org.springframework.web.context.request.async.StandardServletAsyncWebRequest due to an exception: org.jboss.as.server.deployment.DeploymentUnitProcessingException: WFLYEE0048: Could not find default constructor for class org.springframework.web.context.request.async.StandardServletAsyncWebRequest

            at org.jboss.as.ee.component.DefaultInterceptorConfigurator.configure(DefaultInterceptorConfigurator.java:92)

            at org.jboss.as.ee.component.deployers.EEModuleConfigurationProcessor.deploy(EEModuleConfigurationProcessor.java:92)

            at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:144)

            at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1714)

            at org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1693)

            at org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1540)

            at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)

            at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)

            at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)

            at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1378)

            at java.lang.Thread.run(Thread.java:748)

             

            This Warning/Error is shown for all of the three classes in the original post.

             

            Besides that I've got some log4j-errors, which do not seem to be related to this:

             

            2018-03-14 06:54:17,731 ERROR [stderr] (ServerService Thread Pool -- 81) log4j:WARN No such property [maxFileSize] in org.apache.log4j.DailyRollingFileAppender.

            2018-03-14 06:54:17,746 ERROR [stderr] (ServerService Thread Pool -- 81) log4j:WARN No such property [maxBackupIndex] in org.apache.log4j.DailyRollingFileAppender.

            2018-03-14 06:54:17,762 ERROR [stderr] (ServerService Thread Pool -- 81) log4j:ERROR Could not find value for key log4j.appender.SRP_HIBERNATE

            2018-03-14 06:54:17,762 ERROR [stderr] (ServerService Thread Pool -- 81) log4j:ERROR Could not instantiate appender named "SRP_HIBERNATE".

            • 3. Re: Wildfly 12 - deployment fails, async Servlet
              Markus Fried Newbie

              Could the exception be the cause (missing default ctor)?

               

              Others stated, that these warnings are nothing to worry about?

               

              Regards

              Mark.

              • 4. Re: Wildfly 12 - deployment fails, async Servlet
                KC Pun Newbie

                HI there,

                 

                I encountered the same issue. Did you fix it? Thanks.

                • 5. Re: Wildfly 12 - deployment fails, async Servlet
                  Srinivasa Reddy Papanax Newbie

                  Hello,

                   

                  I am also getting same deployment error, here is complete stacktrace. Could you please help me.

                   

                  WildFly : 12

                  Spring : 3.2.18

                   

                   

                  2019-02-25 04:46:40,471 DEBUG [org.jboss.as.ee] (MSC service thread 1-5) Configuring component class: org.springframework.web.context.request.async.StandardServletAsyncWebRequest named org.springframework.web.context.request.async.StandardServletAsyncWebRequest

                  2019-02-25 04:46:40,471 WARN  [org.jboss.as.ee] (MSC service thread 1-5) WFLYEE0007: Not installing optional component org.springframework.web.context.request.async.StandardServletAsyncWebRequest due to an exception (enable DEBUG log level to see the cause)

                  2019-02-25 04:46:40,471 DEBUG [org.jboss.as.ee] (MSC service thread 1-5) Not installing optional component org.springframework.web.context.request.async.StandardServletAsyncWebRequest due to an exception: org.jboss.as.server.deployment.DeploymentUnitProcessingException: WFLYEE0048: Could not find default constructor for class org.springframework.web.context.request.async.StandardServletAsyncWebRequest

                          at org.jboss.as.ee.component.DefaultInterceptorConfigurator.configure(DefaultInterceptorConfigurator.java:92)

                          at org.jboss.as.ee.component.deployers.EEModuleConfigurationProcessor.deploy(EEModuleConfigurationProcessor.java:92)

                          at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:144)

                          at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1714)

                          at org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1693)

                          at org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1540)

                          at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)

                          at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)

                          at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)

                          at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1364)

                          at java.lang.Thread.run(Thread.java:745)

                   

                   

                  2019-02-25 04:46:40,471 DEBUG [org.jboss.as.ee] (MSC service thread 1-5) Configuring component class: org.apache.struts.tiles.taglib.GetTag named org.apache.struts.tiles.taglib.GetTag

                  2019-02-25 04:46:40,471 DEBUG [org.jboss.as.ee] (MSC service thread 1-5) Configuring component class: org.apache.struts.taglib.nested.logic.NestedNotMatchTag named org.apache.struts.taglib.nested.logic.NestedNotMatchTag

                   

                  2019-02-25 04:47:05,352 INFO  [Infinys] (ServerService Thread Pool -- 129) Registry version detected by CacheManager within the application PF.

                  2019-02-25 04:47:05,366 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 129) WFLYUT0021: Registered web context: '/pf-system' for server 'default-server'

                  2019-02-25 04:47:05,372 ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool -- 29) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "PF.ear")]) - failure description: {

                      "WFLYCTL0412: Required services that are not installed:" => [

                          "jboss.deployment.subunit.\"PF.ear\".\"pf-weblauncher.war\".component.\"org.springframework.web.context.request.async.StandardServletAsyncWebRequest\".START",

                          "jboss.deployment.subunit.\"PF.ear\".\"pf-restservices.war\".component.\"org.springframework.web.context.request.async.StandardServletAsyncWebRequest\".START",

                          "jboss.deployment.subunit.\"PF.ear\".\"pf-system.war\".component.\"org.springframework.web.context.request.async.StandardServletAsyncWebRequest\".START",

                          "jboss.deployment.subunit.\"PF.ear\".\"PF.war\".component.\"org.springframework.web.context.request.async.StandardServletAsyncWebRequest\".START"

                      ],

                      "WFLYCTL0180: Services with missing/unavailable dependencies" => ["jboss.deployment.unit.\"PF.ear\".WeldEndInitService is missing [jboss.deployment.subunit.\"PF.ear\".\"pf-weblauncher.war\".component.\"org.springframework.web.context.request.async.StandardServletAsyncWebRequest\".START, jboss.deployment.subunit.\"PF.ear\".\"PF.war\".component.\"org.springframework.web.context.request.async.StandardServletAsyncWebRequest\".START, jboss.deployment.subunit.\"PF.ear\".\"pf-system.war\".component.\"org.springframework.web.context.request.async.StandardServletAsyncWebRequest\".START, jboss.deployment.subunit.\"PF.ear\".\"pf-restservices.war\".component.\"org.springframework.web.context.request.async.StandardServletAsyncWebRequest\".START]"]

                  }

                  2019-02-25 04:47:05,374 ERROR [org.jboss.as.server] (ServerService Thread Pool -- 29) WFLYSRV0021: Deploy of deployment "PF.ear" was rolled back with the following failure message:

                  {

                      "WFLYCTL0412: Required services that are not installed:" => [

                          "jboss.deployment.subunit.\"PF.ear\".\"pf-weblauncher.war\".component.\"org.springframework.web.context.request.async.StandardServletAsyncWebRequest\".START",

                          "jboss.deployment.subunit.\"PF.ear\".\"pf-restservices.war\".component.\"org.springframework.web.context.request.async.StandardServletAsyncWebRequest\".START",

                          "jboss.deployment.subunit.\"PF.ear\".\"pf-system.war\".component.\"org.springframework.web.context.request.async.StandardServletAsyncWebRequest\".START",

                          "jboss.deployment.subunit.\"PF.ear\".\"PF.war\".component.\"org.springframework.web.context.request.async.StandardServletAsyncWebRequest\".START"

                      ],

                      "WFLYCTL0180: Services with missing/unavailable dependencies" => ["jboss.deployment.unit.\"PF.ear\".WeldEndInitService is missing [jboss.deployment.subunit.\"PF.ear\".\"pf-weblauncher.war\".component.\"org.springframework.web.context.request.async.StandardServletAsyncWebRequest\".START, jboss.deployment.subunit.\"PF.ear\".\"PF.war\".component.\"org.springframework.web.context.request.async.StandardServletAsyncWebRequest\".START, jboss.deployment.subunit.\"PF.ear\".\"pf-system.war\".component.\"org.springframework.web.context.request.async.StandardServletAsyncWebRequest\".START, jboss.deployment.subunit.\"PF.ear\".\"pf-restservices.war\".component.\"org.springframework.web.context.request.async.StandardServletAsyncWebRequest\".START]"]

                  }

                  2019-02-25 04:47:05,427 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 110) WFLYUT0022: Unregistered web context: '/pf-securityClientLauncher' from server 'default-server'

                  2019-02-25 04:47:05,429 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 129) WFLYUT0022: Unregistered web context: '/pf-weblauncher' from server 'default-server'

                  2019-02-25 04:47:05,430 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 140) WFLYUT0022: Unregistered web context: '/PF' from server 'default-server'

                  • 7. Re: Wildfly 12 - deployment fails, async Servlet
                    Markus Fried Newbie

                    Fix was to include the following beans.xml to my project:

                     

                     

                     

                    <?xml version="1.0" encoding="UTF-8"?>

                    <beans xmlns="http://xmlns.jcp.org/xml/ns/javaee" bean-discovery-mode="annotated">

                        <scan>

                            <exclude name="org.apache.cxf.transport.http.Servlet3ContinuationProvider" />

                            <exclude name="org.springframework.http.server.ServletServerHttpAsyncRequestControl" />

                            <exclude name="org.springframework.web.context.request.async.StandardServletAsyncWebRequest" />

                        </scan>

                    </beans>