7 Replies Latest reply on May 6, 2015 2:00 PM by tomlux

    problems with FrontEndLoadBalancer support in 9.0.0.CR1

    tomlux

      Hy,

      I tried to get running the FrontEndLoadBalancer in Wildfly 9.0.0.CR1.

      I followed the example of Stuart Douglas which was posted here:

      Developer Interview (#DI 11) - Stuart Douglas (@stuartwdouglas) about WildFly9 and Undertow ~ Enterprise Software Develo…

      http://www.youtube.com/embed/xa_gtRDpwyQ

      stuartwdouglas/modcluster-example · GitHub

       

      I'm getting running the backends with the deployments but I don't get running the modcluster.

      I did the tests under a Windows environment.

      I'm getting the error below.

       

      Thanks for any help,

      Tom

      [Server:load-balancer] 07:21:43,456 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-12) MSC000001: Failed to start service jboss.undertow.filter.modcluster: org.jboss.msc.service.StartExcepti

      on in service jboss.undertow.filter.modcluster: Failed to start service

      [Server:load-balancer]  at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1904)

      [Server:load-balancer]  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

      [Server:load-balancer]  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

      [Server:load-balancer]  at java.lang.Thread.run(Thread.java:745)

      [Server:load-balancer] Caused by: java.lang.RuntimeException: java.net.BindException: Cannot assign requested address: bind

      [Server:load-balancer]  at org.wildfly.extension.undertow.filters.ModClusterService.start(ModClusterService.java:103)

      [Server:load-balancer]  at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)

      [Server:load-balancer]  at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)

      [Server:load-balancer]  ... 3 more

      [Server:load-balancer] Caused by: java.net.BindException: Cannot assign requested address: bind

      [Server:load-balancer]  at sun.nio.ch.Net.bind0(Native Method)

      [Server:load-balancer]  at sun.nio.ch.Net.bind(Net.java:444)

      [Server:load-balancer]  at sun.nio.ch.DatagramChannelImpl.bind(DatagramChannelImpl.java:702)

      [Server:load-balancer]  at sun.nio.ch.DatagramSocketAdaptor.bind(DatagramSocketAdaptor.java:91)

      [Server:load-balancer]  at org.xnio.nio.NioXnioWorker.createUdpServer(NioXnioWorker.java:216)

      [Server:load-balancer]  at io.undertow.server.handlers.proxy.mod_cluster.MCMPAdvertiseTask.advertise(MCMPAdvertiseTask.java:70)

      [Server:load-balancer]  at io.undertow.server.handlers.proxy.mod_cluster.ModCluster.advertise(ModCluster.java:149)

      [Server:load-balancer]  at org.wildfly.extension.undertow.filters.ModClusterService.start(ModClusterService.java:101)

      [Server:load-balancer]  ... 5 more

      [Server:load-balancer]

      [Server:load-balancer] 07:21:43,478 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-6) WFLYUT0006: Undertow HTTP listener default listening on N-10-006/192.168.56.1:8080

      [Server:load-balancer] 07:21:43,941 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-13) WFLYJCA0001: Bound data source [java:jboss/datasources/ExampleDS]

      [Server:load-balancer] 07:21:44,008 INFO  [org.jboss.ws.common.management] (MSC service thread 1-6) JBWS022052: Starting JBoss Web Services - Stack CXF Server 5.0.0.Final

      [Server:load-balancer] 07:21:44,014 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([

      [Server:load-balancer]     ("subsystem" => "undertow"),

      [Server:load-balancer]     ("configuration" => "filter"),

      [Server:load-balancer]     ("mod-cluster" => "modcluster")

      [Server:load-balancer] ]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.undertow.filter.modcluster" => "org.jboss.msc.service.StartException in service jboss.undertow.filter.modclu

      ster: Failed to start service

      [Server:load-balancer]     Caused by: java.lang.RuntimeException: java.net.BindException: Cannot assign requested address: bind

      [Server:load-balancer]     Caused by: java.net.BindException: Cannot assign requested address: bind"}}

      [Server:load-balancer] 07:21:44,087 INFO  [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0183: Service status report

      [Server:load-balancer] WFLYCTL0186:   Services which failed to start:      service jboss.undertow.filter.modcluster: org.jboss.msc.service.StartException in service jboss.undertow.filter.modcluster: F

      ailed to start service

      [Server:load-balancer]