4 Replies Latest reply on Apr 24, 2017 10:12 AM by Richard Janík

    Unable to start current Wildfly

    Daniel Simko Newbie

      Hello,

       

      I've just builded current Wildfly from master branch, but I am not able to run it. I tried:

       

      ./dist/target/wildfly-11.0.0.Beta1-SNAPSHOT/bin/standalone.sh -c standalone-full.xml

       

      and I've got:

       

      2017-04-21 14:45:09,587 WARN  [org.jboss.modules] (ServerService Thread Pool -- 65) Failed to define class org.wildfly.clustering.web.infinispan.session.DistributedRouteCacheGroupBuilderProvider in Module "org.wildfly.clustering.web.infinispan" from local module loader @282ba1e (finder: local module finder @13b6d03 (roots: /home/dsimko/work/github/wildfly/wildfly/dist/target/wildfly-11.0.0.Beta1-SNAPSHOT/modules,/home/dsimko/work/github/wildfly/wildfly/dist/target/wildfly-11.0.0.Beta1-SNAPSHOT/modules/system/layers/base)): java.lang.NoClassDefFoundError: Failed to link org/wildfly/clustering/web/infinispan/session/DistributedRouteCacheGroupBuilderProvider (Module "org.wildfly.clustering.web.infinispan" from local module loader @282ba1e (finder: local module finder @13b6d03 (roots: /home/dsimko/work/github/wildfly/wildfly/dist/target/wildfly-11.0.0.Beta1-SNAPSHOT/modules,/home/dsimko/work/github/wildfly/wildfly/dist/target/wildfly-11.0.0.Beta1-SNAPSHOT/modules/system/layers/base))): org/wildfly/clustering/spi/DistributedCacheGroupBuilderProvider

          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:422)

          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:77)

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

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

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:412)

          at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:400)

          at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:116)

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

          at java.lang.Class.forName(Class.java:348)

          at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:370)

          at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:404)

          at java.util.ServiceLoader$1.next(ServiceLoader.java:480)

          at org.wildfly.clustering.web.infinispan.session.InfinispanRouteLocatorBuilderProvider.getRouteLocatorConfigurationBuilders(InfinispanRouteLocatorBuilderProvider.java:72)

          at org.wildfly.clustering.web.undertow.session.DistributableSessionIdentifierCodecBuilderProvider.lambda$getServerBuilders$5(DistributableSessionIdentifierCodecBuilderProvider.java:61)

          at java.util.Optional.ifPresent(Optional.java:159)

          at org.wildfly.clustering.web.undertow.session.DistributableSessionIdentifierCodecBuilderProvider.getServerBuilders(DistributableSessionIdentifierCodecBuilderProvider.java:61)

          at org.wildfly.extension.undertow.ServerAdd.lambda$performRuntime$53(ServerAdd.java:88)

          at java.util.Optional.ifPresent(Optional.java:159)

          at org.wildfly.extension.undertow.ServerAdd.performRuntime(ServerAdd.java:88)

          at org.jboss.as.controller.AbstractAddStepHandler$1.execute(AbstractAddStepHandler.java:151)

          at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:979)

          at org.jboss.as.controller.AbstractOperationContext.processStages(AbstractOperationContext.java:722)

          at org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:441)

          at org.jboss.as.controller.ParallelBootOperationStepHandler$ParallelBootTask.run(ParallelBootOperationStepHandler.java:381)

          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

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

          at org.jboss.threads.JBossThread.run(JBossThread.java:320)

       

      2017-04-21 14:45:09,592 ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool -- 65) WFLYCTL0013: Operation ("add") failed - address: ([

          ("subsystem" => "undertow"),

          ("server" => "default-server")

      ]): java.lang.NoClassDefFoundError: Failed to link org/wildfly/clustering/web/infinispan/session/DistributedRouteCacheGroupBuilderProvider (Module "org.wildfly.clustering.web.infinispan" from local module loader @282ba1e (finder: local module finder @13b6d03 (roots: /home/dsimko/work/github/wildfly/wildfly/dist/target/wildfly-11.0.0.Beta1-SNAPSHOT/modules,/home/dsimko/work/github/wildfly/wildfly/dist/target/wildfly-11.0.0.Beta1-SNAPSHOT/modules/system/layers/base))): org/wildfly/clustering/spi/DistributedCacheGroupBuilderProvider

          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:422)

          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:77)

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

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

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:412)

          at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:400)

          at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:116)

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

          at java.lang.Class.forName(Class.java:348)

          at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:370)

          at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:404)

          at java.util.ServiceLoader$1.next(ServiceLoader.java:480)

          at org.wildfly.clustering.web.infinispan.session.InfinispanRouteLocatorBuilderProvider.getRouteLocatorConfigurationBuilders(InfinispanRouteLocatorBuilderProvider.java:72)

          at org.wildfly.clustering.web.undertow.session.DistributableSessionIdentifierCodecBuilderProvider.lambda$getServerBuilders$5(DistributableSessionIdentifierCodecBuilderProvider.java:61)

          at java.util.Optional.ifPresent(Optional.java:159)

          at org.wildfly.clustering.web.undertow.session.DistributableSessionIdentifierCodecBuilderProvider.getServerBuilders(DistributableSessionIdentifierCodecBuilderProvider.java:61)

          at org.wildfly.extension.undertow.ServerAdd.lambda$performRuntime$53(ServerAdd.java:88)

          at java.util.Optional.ifPresent(Optional.java:159)

          at org.wildfly.extension.undertow.ServerAdd.performRuntime(ServerAdd.java:88)

          at org.jboss.as.controller.AbstractAddStepHandler$1.execute(AbstractAddStepHandler.java:151)

          at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:979)

          at org.jboss.as.controller.AbstractOperationContext.processStages(AbstractOperationContext.java:722)

          at org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:441)

          at org.jboss.as.controller.ParallelBootOperationStepHandler$ParallelBootTask.run(ParallelBootOperationStepHandler.java:381)

          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

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

          at org.jboss.threads.JBossThread.run(JBossThread.java:320)

       

      The whole log is attached.

      Thanks,

      Dan

        • 1. Re: Unable to start current Wildfly
          Tomaz Cerar Master

          Looks like you don't have something build properly

           

          2017-04-21 14:45:09,587 WARN  [org.jboss.modules] (ServerService Thread Pool -- 65) Failed to define class org.wildfly.clustering.web.infinispan.session.DistributedRouteCacheGroupBuilderProvider in Module "org.wildfly.clustering.web.infinispan" from local module loader @282ba1e (finder: local module finder @13b6d03 (roots: /home/dsimko/work/github/wildfly/wildfly/dist/target/wildfly-11.0.0.Beta1-SNAPSHOT/modules,/home/dsimko/work/github/wildfly/wildfly/dist/target/wildfly-11.0.0.Beta1-SNAPSHOT/modules/system/layers/base)): java.lang.NoClassDefFoundError: Failed to link org/wildfly/clustering/web/infinispan/session/DistributedRouteCacheGroupBuilderProvider (Module "org.wildfly.clustering.web.infinispan" from local module loader @282ba1e (finder: local module finder @13b6d03 (roots: /home/dsimko/work/github/wildfly/wildfly/dist/target/wildfly-11.0.0.Beta1-SNAPSHOT/modules,/home/dsimko/work/github/wildfly/wildfly/dist/target/wildfly-11.0.0.Beta1-SNAPSHOT/modules/system/layers/base))): org/wildfly/clustering/spi/DistributedCacheGroupBuilderProvider

           

          this tells that you have some mismach in the modules.

           

          You maybe need to do full rebuild, as code that is in master for sure works (at least it boots fine)

           

          try with mvn clean install -DskipTests

          to rebuild whole server.

          • 2. Re: Unable to start current Wildfly
            Richard Janík Newbie

            @Tomaz

            I've been seeing similar issues with DistributedCacheGroupBuilderProvider on master recently as well:

            * I'm currently on a76a4ed725f894cf5c614dce4b7f3d0621a5e001

            * When building WildFly via mvn clean install, everything passes, server starts,etc.

            * When building WildFly via ./build.sh, this test fails:

             

            Running org.wildfly.clustering.web.infinispan.ServiceLoaderTestCase

            Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.065 sec <<< FAILURE! - in org.wildfly.clustering.web.infinispan.ServiceLoaderTestCase

            load(org.wildfly.clustering.web.infinispan.ServiceLoaderTestCase)  Time elapsed: 0.065 sec  <<< ERROR!

            java.util.ServiceConfigurationError: org.wildfly.clustering.spi.DistributedCacheBuilderProvider: Provider org.wildfly.clustering.web.infinispan.session.DistributedRouteCacheGroupBuilderProvider not found

                at java.util.ServiceLoader.fail(ServiceLoader.java:239)

                at java.util.ServiceLoader.access$300(ServiceLoader.java:185)

                at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:372)

                at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:404)

                at java.util.ServiceLoader$1.next(ServiceLoader.java:480)

                at java.lang.Iterable.forEach(Iterable.java:74)

                at org.wildfly.clustering.web.infinispan.ServiceLoaderTestCase.load(ServiceLoaderTestCase.java:48)

                at org.wildfly.clustering.web.infinispan.ServiceLoaderTestCase.load(ServiceLoaderTestCase.java:57)

            • 3. Re: Unable to start current Wildfly
              Tomaz Cerar Master

              so difference is between building via your local maven or via build.sh script.

               

              that is interesting.

               

              what version of maven are you using? as mvnw we have in project is using 3.3.9.

              also what is your jvm version and os / distribution.

               

              One thing that comes to my mind is that maybe both tools manage to build via different versions of JDK you have on a system.

              clustering subsystems are quite particular that only work / build right with recent versions of JDK8, so update 85+ is recommended

              • 4. Re: Unable to start current Wildfly
                Richard Janík Newbie

                I'm using this:

                 

                > java -version

                java version "1.8.0_131"

                Java(TM) SE Runtime Environment (build 1.8.0_131-b11)

                Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)

                 

                > mvn --version

                Apache Maven 3.5.0 (ff8f5e7444045639af65f6095c62210b5713f426; 2017-04-03T21:39:06+02:00)

                Maven home: /home/rjanik/Tools/apache-maven-3.5.0

                Java version: 1.8.0_131, vendor: Oracle Corporation

                Java home: /home/rjanik/Tools/jdk1.8.0_131/jre

                Default locale: en_US, platform encoding: UTF-8

                OS name: "linux", version: "4.4.14-200.fc22.x86_64", arch: "amd64", family: "unix"

                 

                OS is Fedora 22. I upgraded to mvn 3.5 and java *_131 today, I was using 3.3.9 and *_112 before and also hit it.