4 Replies Latest reply on Jul 10, 2018 5:22 AM by KC Pun

    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.