14 Replies Latest reply on Nov 10, 2017 9:35 AM by Kimani Njoroge

    Spring app on wildfly 11

    Syco Syco Newbie

      Hello, I hope this is the right place to get some help...

      I'm trying to deploy a war, using spring framework, in wildfly 11.

      I use maven and the wildfly-maven-plugin, with "mvn wildfly:deploy -e -X"

      Here's the final part of the deploy log:

      Oct 26, 2017 10:24:38 AM org.jboss.remoting3.EndpointImpl <clinit>
      INFO: JBoss Remoting version 5.0.0.Final
      Oct 26, 2017 10:24:38 AM org.xnio.Xnio <clinit>
      INFO: XNIO version 3.5.1.Final
      Oct 26, 2017 10:24:38 AM org.xnio.nio.NioXnio <clinit>
      INFO: XNIO NIO Implementation Version 3.5.1.Final
      Oct 26, 2017 10:24:38 AM org.wildfly.security.Version <clinit>
      INFO: ELY00001: WildFly Elytron version 1.1.0.Final
      [DEBUG] Executing deployment
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 8.825 s
      [INFO] Finished at: 2017-10-26T10:24:43+01:00
      [INFO] Final Memory: 23M/226M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.wildfly.plugins:wildfly-maven-plugin:1.2.0.Final:deploy (default-cli) on project TestProject: Failed to execute goal deploy: {"WFLYCTL0062: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-1" => {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"testproject.war\".component.\"org.springframework.http.server.reactive.ServletServerHttpRequest$RequestAsyncListener\".WeldInstantiator" => "Failed to start service
      [ERROR]     Caused by: org.jboss.weld.resources.spi.ResourceLoadingException: Error while loading class org.springframework.http.server.reactive.ServletServerHttpRequest$RequestAsyncListener
      [ERROR]     Caused by: java.lang.NoClassDefFoundError: Failed to link org/springframework/http/server/reactive/ServletServerHttpRequest$RequestBodyPublisher (Module \"deployment.testproject.war\" from Service Module Loader): Failed to link org/springframework/http/server/reactive/AbstractListenerReadPublisher (Module \"deployment.testproject.war\" from Service Module Loader): org/reactivestreams/Publisher","jboss.deployment.unit.\"testproject.war\".component.\"org.springframework.http.server.reactive.ServletServerHttpResponse$ResponseAsyncListener\".WeldInstantiator" => "Failed to start service
      [ERROR]     Caused by: org.jboss.weld.resources.spi.ResourceLoadingException: Error while loading class org.springframework.http.server.reactive.ServletServerHttpResponse$ResponseAsyncListener
      [ERROR]     Caused by: java.lang.NoClassDefFoundError: Failed to link org/springframework/http/server/reactive/ServletServerHttpResponse$ResponseBodyProcessor (Module \"deployment.testproject.war\" from Service Module Loader): Failed to link org/springframework/http/server/reactive/AbstractListenerWriteProcessor (Module \"deployment.testproject.war\" from Service Module Loader): org/reactivestreams/Processor"}}}}
      [ERROR] -> [Help 1]
      org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.wildfly.plugins:wildfly-maven-plugin:1.2.0.Final:deploy (default-cli) on project TestProject: Failed to execute goal deploy: {"WFLYCTL0062: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-1" => {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"testproject.war\".component.\"org.springframework.http.server.reactive.ServletServerHttpRequest$RequestAsyncListener\".WeldInstantiator" => "Failed to start service
          Caused by: org.jboss.weld.resources.spi.ResourceLoadingException: Error while loading class org.springframework.http.server.reactive.ServletServerHttpRequest$RequestAsyncListener
          Caused by: java.lang.NoClassDefFoundError: Failed to link org/springframework/http/server/reactive/ServletServerHttpRequest$RequestBodyPublisher (Module \"deployment.testproject.war\" from Service Module Loader): Failed to link org/springframework/http/server/reactive/AbstractListenerReadPublisher (Module \"deployment.testproject.war\" from Service Module Loader): org/reactivestreams/Publisher","jboss.deployment.unit.\"testproject.war\".component.\"org.springframework.http.server.reactive.ServletServerHttpResponse$ResponseAsyncListener\".WeldInstantiator" => "Failed to start service
          Caused by: org.jboss.weld.resources.spi.ResourceLoadingException: Error while loading class org.springframework.http.server.reactive.ServletServerHttpResponse$ResponseAsyncListener
          Caused by: java.lang.NoClassDefFoundError: Failed to link org/springframework/http/server/reactive/ServletServerHttpResponse$ResponseBodyProcessor (Module \"deployment.testproject.war\" from Service Module Loader): Failed to link org/springframework/http/server/reactive/AbstractListenerWriteProcessor (Module \"deployment.testproject.war\" from Service Module Loader): org/reactivestreams/Processor"}}}}
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:213)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
          at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
          at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
          at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:51)
          at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
          at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:309)
          at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194)
          at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107)
          at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955)
          at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
          at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
          at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke (Method.java:498)
          at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
          at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
          at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
          at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
      Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to execute goal deploy: {"WFLYCTL0062: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-1" => {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"testproject.war\".component.\"org.springframework.http.server.reactive.ServletServerHttpRequest$RequestAsyncListener\".WeldInstantiator" => "Failed to start service
          Caused by: org.jboss.weld.resources.spi.ResourceLoadingException: Error while loading class org.springframework.http.server.reactive.ServletServerHttpRequest$RequestAsyncListener
          Caused by: java.lang.NoClassDefFoundError: Failed to link org/springframework/http/server/reactive/ServletServerHttpRequest$RequestBodyPublisher (Module \"deployment.testproject.war\" from Service Module Loader): Failed to link org/springframework/http/server/reactive/AbstractListenerReadPublisher (Module \"deployment.testproject.war\" from Service Module Loader): org/reactivestreams/Publisher","jboss.deployment.unit.\"testproject.war\".component.\"org.springframework.http.server.reactive.ServletServerHttpResponse$ResponseAsyncListener\".WeldInstantiator" => "Failed to start service
          Caused by: org.jboss.weld.resources.spi.ResourceLoadingException: Error while loading class org.springframework.http.server.reactive.ServletServerHttpResponse$ResponseAsyncListener
          Caused by: java.lang.NoClassDefFoundError: Failed to link org/springframework/http/server/reactive/ServletServerHttpResponse$ResponseBodyProcessor (Module \"deployment.testproject.war\" from Service Module Loader): Failed to link org/springframework/http/server/reactive/AbstractListenerWriteProcessor (Module \"deployment.testproject.war\" from Service Module Loader): org/reactivestreams/Processor"}}}}
          at org.wildfly.plugin.deployment.AbstractDeployment.execute (AbstractDeployment.java:152)
          at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:134)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
          at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
          at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
          at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:51)
          at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
          at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:309)
          at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194)
          at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107)
          at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955)
          at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
          at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
          at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke (Method.java:498)
          at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
          at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
          at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
          at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
      [ERROR] 
      [ERROR] 
      [ERROR] For more information about the errors and possible solutions, please read the following articles:
      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
      

       

      I'm not sure what the real error is, because ServletServerHttpResponse ("Error while loading class org.springframework.http.server.reactive.ServletServerHttpResponse") is already included in the dependencies.

      Can you point me in the right direction?

      Thanks

        • 1. Re: Spring app on wildfly 11
          Syco Syco Newbie

          Here are some updates from hipchat, If someone knows what's going on I can continue testing tomorrow.

          Thanks in advance everybody for the support.

           

          [11:55 AM] Emmanuel Hugonnet: @SycoGuest do you have any javaee api jars in tyour war ?

           

          [11:59 AM] Syco: yes, I have this in the maven config <dependency><groupId>javax</groupId><artifactId>javaee-web-api</artifactId><version>8.0</version></dependency>

           

          [12:06 PM] Emmanuel Hugonnet: hum 1st this this javaee 8

           

          [12:06 PM] Emmanuel Hugonnet: widlfy is javaee 7

           

          [12:06 PM] Emmanuel Hugonnet: remove this

           

          [12:07 PM] Emmanuel Hugonnet: @SycoGuest ^^

           

          [12:10 PM] Syco: I can't remove it completely, because I have custom tld that extend SimpleTagSupport. I changed version to 7.0, but I get the same error

           

          [12:16 PM] Emmanuel Hugonnet: you should put it in scope provided

           

          [1:48 PM] Syco: I've done some progress, we'll get there soon:

          I removed

              <dependency><groupId>javax.servlet</groupId><artifactId>javax.servlet-api</artifactId><version>4.0.0</version></dependency>

              <dependency><groupId>javax.servlet</groupId><artifactId>jstl</artifactId><version>1.2</version></dependency>I've added scope provided to javaee-web-apiI've changed jboss-web.xml to

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

          <jboss-web xmlns="http://www.jboss.com/xml/ns/javaee">

            <context-root/>

            <virtual-host>myNewVhost</virtual-host>

          </jboss-web>I've added a virtual host to standalone/configuration/standalone.xml

          The virtualhost is because my application works on context / and I don't want to change that.The issue now is that I get errors like

          Caused by: javax.validation.UnexpectedTypeException: HV000030: No validator could be found for constraint 'javax.validation.constraints.NotEmpty' validating type 'java.lang.String'.

          because validation is contained in javaee-web-api.

          If I remove javaee-web-api from my project, what's the replacement maven/dependency that works with wildfly?

           

          [2:03 PM] Emmanuel Hugonnet: wildfly should provide it

           

          [2:48 PM] Syco: Not sure hot to approach this now..

          I completely removed the javaee-web-api and included

          <dependency><groupId>javax.validation</groupId><artifactId>validation-api</artifactId><version>2.0.0.Final</version></dependency>

          <dependency><groupId>javax.servlet.jsp</groupId><artifactId>javax.servlet.jsp-api</artifactId><version>2.3.1</version></dependency>

          so my dependencies can be deployed with the war file. it gets deployed, but javax.validation still throws errors like

          Caused by: javax.validation.UnexpectedTypeException: HV000030: No validator could be found for constraint 'javax.validation.constraints.NotEmpty' validating type 'java.lang.String'. Check configuration for 'password'

          • 2. Re: Spring app on wildfly 11
            Kimani Njoroge Newbie

            I had the same issue in wildfly 10.1.0 Final and changing version of springframework to 4.0.1-RELEASE, it work

            • 3. Re: Spring app on wildfly 11
              James Perkins Master

              Since WildFly is a Java EE container it's really best to mark any Java EE dependencies you require as <scope>provided</scope>. You don't want those packaged in the WAR itself in a Java EE container.

               

              You should see more details on the error in the server.log or on the console as well. The maven plugin is just reporting what it can about the failure.

               

              --

              James R. Perkins

              • 4. Re: Spring app on wildfly 11
                Kimani Njoroge Newbie

                I have searched in modules and wildfly does not provide springframework.

                • 5. Re: Spring app on wildfly 11
                  James Perkins Master

                  Spring is not part of the Java EE specification. It however relies on some features that are part of the Java EE specification such as the servlet API. More than likely anything you have with a group id of javax.* will be provided by WildFly. You'd need to examine your pom to determine what should be marked as provided.

                   

                  Again though you'll get a better idea of what the actual error is if you look at the server log.

                   

                  --

                  James R. Perkins

                  • 6. Re: Spring app on wildfly 11
                    Kimani Njoroge Newbie

                    servelet-api, javaee-web-api, hibernate and jsf-impl are all labeled

                    provided. This is what I get in the server logs. The class

                    org/springframework/http/server/reactive/ServletServerHttpResponse$ResponseBodyProcessor

                    that logs indicate is not found is in spring-web-5.0.0.RELEASE.jar and is

                    included in WEB-INF/lib.

                     

                    2017-11-08 20:20:59,130 ERROR (MSC service

                    thread 1-4) MSC000001: Failed to start service

                    jboss.deployment.unit."Unduire-1.0-SNAPSHOT.war".component."org.springframework.http.server.reactive.ServletServerHttpResponse$ResponseAsyncListener".WeldInstantiator:

                    org.jboss.msc.service.StartException in service

                    jboss.deployment.unit."Unduire-1.0-SNAPSHOT.war".component."org.springframework.http.server.reactive.ServletServerHttpResponse$ResponseAsyncListener".WeldInstantiator:

                    Failed to start service

                     

                        at

                    org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1904)

                     

                        at

                    java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

                     

                        at

                    java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

                     

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

                     

                    Caused by: org.jboss.weld.resources.spi.ResourceLoadingException: Error

                    while loading class

                    org.springframework.http.server.reactive.ServletServerHttpResponse$ResponseAsyncListener

                     

                        at

                    org.jboss.weld.resources.ClassTransformer.getBackedAnnotatedType(ClassTransformer.java:186)

                     

                        at

                    org.jboss.weld.resources.ClassTransformer.getBackedAnnotatedType(ClassTransformer.java:194)

                     

                        at

                    org.jboss.weld.resources.ClassTransformer.getEnhancedAnnotatedType(ClassTransformer.java:228)

                     

                        at

                    org.jboss.as.weld.injection.InjectionTargets.createInjectionTarget(InjectionTargets.java:55)

                     

                        at

                    org.jboss.as.weld.injection.WeldComponentService.start(WeldComponentService.java:120)

                     

                        at

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

                     

                        at

                    org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)

                     

                        ... 3 more

                     

                    Caused by: java.lang.NoClassDefFoundError: Failed to link

                    org/springframework/http/server/reactive/ServletServerHttpResponse$ResponseBodyProcessor

                    (Module "deployment.Unduire-1.0-SNAPSHOT.war:main" from Service Module

                    Loader): Failed to link

                    org/springframework/http/server/reactive/AbstractListenerWriteProcessor

                    (Module "deployment.Unduire-1.0-SNAPSHOT.war:main" from Service Module

                    Loader): org/reactivestreams/Processor

                     

                        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

                     

                        at

                    sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)

                     

                        at

                    sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

                     

                        at java.lang.reflect.Constructor.newInstance(Constructor.java:423)

                     

                        at

                    org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:446)

                     

                        at

                    org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:274)

                     

                        at

                    org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:78)

                     

                        at org.jboss.modules.Module.loadModuleClass(Module.java:606)

                     

                        at

                    org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)

                     

                        at

                    org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:363)

                     

                        at

                    org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:351)

                     

                        at

                    org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:93)

                     

                        at java.lang.Class.getDeclaringClass0(Native Method)

                     

                        at java.lang.Class.getDeclaringClass(Class.java:1235)

                     

                        at java.lang.Class.getEnclosingClass(Class.java:1277)

                     

                        at java.lang.Class.getSimpleBinaryName(Class.java:1443)

                     

                        at java.lang.Class.isMemberClass(Class.java:1433)

                     

                        at

                    org.jboss.weld.util.reflection.Reflections.getNesting(Reflections.java:138)

                     

                        at

                    org.jboss.weld.annotated.slim.backed.BackedAnnotatedConstructor.initParameters(BackedAnnotatedConstructor.java:50)

                     

                        at

                    org.jboss.weld.annotated.slim.backed.BackedAnnotatedConstructor.initParameters(BackedAnnotatedConstructor.java:28)

                     

                        at

                    org.jboss.weld.annotated.slim.backed.BackedAnnotatedCallable.(BackedAnnotatedType.java:61)

                     

                        at

                    org.jboss.weld.annotated.slim.backed.BackedAnnotatedType.of(BackedAnnotatedType.java:44)

                     

                        at

                    org.jboss.weld.resources.ClassTransformer$TransformClassToBackedAnnotatedType.load(ClassTransformer.java:83)

                     

                        at

                    org.jboss.weld.resources.ClassTransformer$TransformClassToBackedAnnotatedType.load(ClassTransformer.java:80)

                     

                        at

                    com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3527)

                     

                        at

                    com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2319)

                     

                        at

                    com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2282)

                     

                        at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2197)

                     

                        at com.google.common.cache.LocalCache.get(LocalCache.java:3937)

                     

                        at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3941)

                     

                        at

                    com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4824)

                     

                        at

                    org.jboss.weld.util.cache.LoadingCacheUtils.getCacheValue(LoadingCacheUtils.java:49)

                     

                        at

                    org.jboss.weld.util.cache.LoadingCacheUtils.getCastCacheValue(LoadingCacheUtils.java:74)

                     

                        at

                    org.jboss.weld.resources.ClassTransformer.getBackedAnnotatedType(ClassTransformer.java:175)

                     

                        ... 9 more

                    • 7. Re: Spring app on wildfly 11
                      James Perkins Master

                      Are you including Weld too? If so that should be marked as provided. If not it should be marked as an exclusion for the Spring framework as it will be provided by the container as well. Weld is the CDI implementation in WildFly. I'm somewhat guessing, but the link failure *may* be due to Weld being included in your deployment.

                       

                      --

                      James R. Perkins

                      • 8. Re: Spring app on wildfly 11
                        Kimani Njoroge Newbie

                        I haven't included weld in my app. I have gone through all of the

                        dependencies collected in WEB-INF/lib and none of them is provided in

                        wildfly modules.

                        • 9. Re: Spring app on wildfly 11
                          James Perkins Master

                          Hmm... ...okay. Could you maybe show your pom.xml and possible the output of your WAR? Mainly just the WAR/lib.

                          jar tf your.war WEB-INF/lib
                          

                           

                          --

                          James R. Perkins

                          • 10. Re: Spring app on wildfly 11
                            Kimani Njoroge Newbie

                            Here are the contents of WEB-INF/lib

                             

                            WEB-INF/lib/

                            WEB-INF/lib/atmosphere-runtime-2.4.14.jar

                            WEB-INF/lib/commentbox-1.0.0-SNAPSHOT.jar

                            WEB-INF/lib/common-image-3.3.2.jar

                            WEB-INF/lib/common-io-3.3.2.jar

                            WEB-INF/lib/common-lang-3.3.2.jar

                            WEB-INF/lib/commons-fileupload-1.3.3.jar

                            WEB-INF/lib/commons-io-2.4.jar

                            WEB-INF/lib/commons-lang3-3.1.jar

                            WEB-INF/lib/flyway-core-4.2.0.jar

                            WEB-INF/lib/gson-2.8.1.jar

                            WEB-INF/lib/imageio-core-3.3.2.jar

                            WEB-INF/lib/imageio-jpeg-3.3.2.jar

                            WEB-INF/lib/imageio-metadata-3.3.2.jar

                            WEB-INF/lib/imgscalr-lib-4.2.jar

                            WEB-INF/lib/jtidy-r938.jar

                            WEB-INF/lib/omnifaces-2.6.5.jar

                            WEB-INF/lib/prettytime-4.0.1.Final.jar

                            WEB-INF/lib/prettytime-integration-jsf-4.0.1.Final.jar

                            WEB-INF/lib/primefaces-6.1.jar

                            WEB-INF/lib/primefaces-extensions-6.1.1.jar

                            WEB-INF/lib/resources-ckeditor-6.2-SNAPSHOT.jar

                            WEB-INF/lib/rewrite-config-prettyfaces-3.4.1.Final.jar

                            WEB-INF/lib/rewrite-integration-faces-3.4.1.Final.jar

                            WEB-INF/lib/rewrite-servlet-3.4.1.Final.jar

                            WEB-INF/lib/slugify-2.1.10.jar

                            WEB-INF/lib/spring-aop-5.0.0.RELEASE.jar

                            WEB-INF/lib/spring-beans-5.0.0.RELEASE.jar

                            WEB-INF/lib/spring-context-5.0.0.RELEASE.jar

                            WEB-INF/lib/spring-core-5.0.0.RELEASE.jar

                            WEB-INF/lib/spring-expression-5.0.0.RELEASE.jar

                            WEB-INF/lib/spring-jcl-5.0.0.RELEASE.jar

                            WEB-INF/lib/spring-web-5.0.0.RELEASE.jar

                            WEB-INF/lib/spring-webmvc-5.0.0.RELEASE.jar

                            • 11. Re: Spring app on wildfly 11
                              James Perkins Master

                              Excellent, thanks! That all looks good.

                               

                              The cause of the issue is:

                              Caused by: java.lang.NoClassDefFoundError: Failed to link org/springframework/http/server/reactive/ServletServerHttpResponse$ResponseBodyProcessor
                              

                               

                              Looking at the Spring 5.0.0 documentation, I don't see the ResponseBodyProcessor so some other dependency may be expecting a different version of Spring. You may want to try:

                              mvn dependency:tree -Dverbose=true
                              

                               

                              Then look for any dependencies that require Spring especially anything with the text "omitted for conflict with" that may be a different version of Spring.

                               

                              --

                              James R. Perkins

                              • 12. Re: Spring app on wildfly 11
                                Kimani Njoroge Newbie

                                Yap, its not there in the docs but after opening

                                spring-web-5.0.0.RELEASE.jar the class exists. On checking the dependency

                                tree, all jars are in compile, provided, test and provided (version managed

                                from 1.7.25; scope managed from compile) scopes. None is "omitted for

                                conflict with".

                                • 13. Re: Spring app on wildfly 11
                                  Gar Sam Newbie

                                  This hack might help!

                                  I have the exact same issue. I am running Wildfly 10.1 and using latest Spring Boot (M6).

                                  If I add spring-boot-starter-integration as a dependency I am not seeing the error any longer.

                                  But, I couldn't figure out what is that integration module bringing into the puzzle. Curious to know!

                                  • 14. Re: Spring app on wildfly 11
                                    Kimani Njoroge Newbie

                                    Thanks. I am using spring mvc and not spring boot. After add

                                    spring-boot-starter-integration, WildFly was crashing from a TIMEOUT error.

                                    After a long analysis of the error, I noted there is a class mentioned at

                                    the end of this line

                                    "Failed to link

                                    org/springframework/http/server/reactive/AbstractListenerWriteProcessor

                                    (Module "deployment.Unduire-1.0-SNAPSHOT.war:main" from Service Module

                                    Loader): org/reactivestreams/Processor"

                                    ie. org/reactivestreams/Processor. Thus I added the dependency

                                     

                                     

                                     

                                    and its working right now. Thanks all for the help.