3 Replies Latest reply on Nov 14, 2013 5:12 PM by Maciej Swiderski

    How to configure the ip of human task service in EAP 6.1?

    a_nat Newbie


      I have tried to configure the IP of human task service in EAP 6.1 by changing the web.xml as follows:

      <init-param>

            <param-name>hornetq.host</param-name>

            <param-value>${jboss.bind.address}</param-value>

      </init-param>

       

      But, I get the follwing errors in server startup:

       

      12:31:12,024 SEVERE [org.hornetq.core.server.impl.HornetQServerImpl] (Thread-90) Failure in initialisation: org.jboss.netty.channel.ChannelException: Failed to bind to: ${jboss.bind.address}:5153
              at org.jboss.netty.bootstrap.ServerBootstrap.bind(ServerBootstrap.java:272) [netty-3.6.2.Final-redhat-1.jar:3.6.2.Final-redhat-1]
              at org.hornetq.core.remoting.impl.netty.NettyAcceptor.startServerChannels(NettyAcceptor.java:508) [hornetq-core-2.2.10.GA.jar:]
              at org.hornetq.core.remoting.impl.netty.NettyAcceptor.start(NettyAcceptor.java:451) [hornetq-core-2.2.10.GA.jar:]
              at org.hornetq.core.remoting.server.impl.RemotingServiceImpl.start(RemotingServiceImpl.java:237) [hornetq-core-2.2.10.GA.jar:]
              at org.hornetq.core.server.impl.HornetQServerImpl.initialisePart2(HornetQServerImpl.java:1494) [hornetq-core-2.2.10.GA.jar:]
              at org.hornetq.core.server.impl.HornetQServerImpl.access$1200(HornetQServerImpl.java:137) [hornetq-core-2.2.10.GA.jar:]
              at org.hornetq.core.server.impl.HornetQServerImpl$NoSharedStoreLiveActivation.run(HornetQServerImpl.java:2094) [hornetq-core-2.2.10.GA.jar:]
              at org.hornetq.core.server.impl.HornetQServerImpl.start(HornetQServerImpl.java:371) [hornetq-core-2.2.10.GA.jar:]
              at org.jbpm.task.service.hornetq.BaseHornetQTaskServer.start(BaseHornetQTaskServer.java:160) [jbpm-human-task-5.3.1.BRMS.jar:5.3.1.BRMS]
              at org.jbpm.task.service.hornetq.BaseHornetQTaskServer.run(BaseHornetQTaskServer.java:98) [jbpm-human-task-5.3.1.BRMS.jar:5.3.1.BRMS
      ]
              at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_17]
      Caused by: java.net.SocketException: Unresolved address
              at java.net.ServerSocket.bind(ServerSocket.java:369) [rt.jar:1.7.0_17]
              at org.jboss.netty.channel.socket.oio.OioServerSocketPipelineSink.bind(OioServerSocketPipelineSink.java:128) [netty-3.6.2.Final-redhat-1.jar:3.6.2.Final-redhat-1]
              at org.jboss.netty.channel.socket.oio.OioServerSocketPipelineSink.handleServerSocket(OioServerSocketPipelineSink.java:79) [netty-3.6.2.Final-redhat-1.jar:3.6.2.Final-redhat-1]
              at org.jboss.netty.channel.socket.oio.OioServerSocketPipelineSink.eventSunk(OioServerSocketPipelineSink.java:53) [netty-3.6.2.Final-redhat-1.jar:3.6.2.Final-redhat-1]
              at org.jboss.netty.channel.Channels.bind(Channels.java:561) [netty-3.6.2.Final-redhat-1.jar:3.6.2.Final-redhat-1]
              at org.jboss.netty.channel.AbstractChannel.bind(AbstractChannel.java:189) [netty-3.6.2.Final-redhat-1.jar:3.6.2.Final-redhat-1]
              at org.jboss.netty.bootstrap.ServerBootstrap$Binder.channelOpen(ServerBootstrap.java:382) [netty-3.6.2.Final-redhat-1.jar:3.6.2.Final-redhat-1]
              at org.jboss.netty.channel.Channels.fireChannelOpen(Channels.java:170) [netty-3.6.2.Final-redhat-1.jar:3.6.2.Final-redhat-1]
              at org.jboss.netty.channel.socket.oio.OioServerSocketChannel.<init>(OioServerSocketChannel.java:78) [netty-3.6.2.Final-redhat-1.jar:3.6.2.Final-redhat-1]
              at org.jboss.netty.channel.socket.oio.OioServerSocketChannelFactory.newChannel(OioServerSocketChannelFactory.java:127) [netty-3.6.2.Final-redhat-1.jar:3.6.2.Final-redhat-1]
              at org.jboss.netty.channel.socket.oio.OioServerSocketChannelFactory.newChannel(OioServerSocketChannelFactory.java:87) [netty-3.6.2.Final-redhat-1.jar:3.6.2.Final-redhat-1]
              at org.jboss.netty.bootstrap.ServerBootstrap.bindAsync(ServerBootstrap.java:329) [netty-3.6.2.Final-redhat-1.jar:3.6.2.Final-redhat-1]
              at org.jboss.netty.bootstrap.ServerBootstrap.bind(ServerBootstrap.java:266) [netty-3.6.2.Final-redhat-1.jar:3.6.2.Final-redhat-1]
              ... 10 more

      12:31:12,087 INFO  [org.hornetq.core.server.impl.HornetQServerImpl] (Thread-90) HornetQ Server version 2.2.10.GA (HQ_2_2_10_EAP_GA_BUILD2, 122) [34825138-4bbb-11e3-b6e5-7eff20524153]) started
      12:31:12,246 SEVERE [org.hornetq.core.remoting.impl.netty.NettyConnector] (Thread-90) Failed to create netty connection: java.net.UnknownHostException: ${jboss.bind.address}
              at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:178) [rt.jar:1.7.0_17]
              at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:157) [rt.jar:1.7.0_17]
              at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:391) [rt.jar:1.7.0_17]
              at java.net.Socket.connect(Socket.java:579) [rt.jar:1.7.0_17]
              at org.jboss.netty.channel.socket.oio.OioClientSocketPipelineSink.connect(OioClientSocketPipelineSink.java:105) [netty-3.6.2.Final-redhat-1.jar:3.6.2.Final-redhat-1]
              at org.jboss.netty.channel.socket.oio.OioClientSocketPipelineSink.eventSunk(OioClientSocketPipelineSink.java:65) [netty-3.6.2.Final-redhat-1.jar:3.6.2.Final-redhat-1]
              at org.jboss.netty.channel.Channels.connect(Channels.java:634) [netty-3.6.2.Final-redhat-1.jar:3.6.2.Final-redhat-1]
              at org.jboss.netty.channel.AbstractChannel.connect(AbstractChannel.java:207) [netty-3.6.2.Final-redhat-1.jar:3.6.2.Final-redhat-1]
              at org.jboss.netty.bootstrap.ClientBootstrap.connect(ClientBootstrap.java:229) [netty-3.6.2.Final-redhat-1.jar:3.6.2.Final-redhat-1]

              at org.jboss.netty.bootstrap.ClientBootstrap.connect(ClientBootstrap.java:182) [netty-3.6.2.Final-redhat-1.jar:3.6.2.Final-redhat-1]

              at org.hornetq.core.remoting.impl.netty.NettyConnector.createConnection(NettyConnector.java:473) [hornetq-core-2.2.10.GA.jar:]
              at org.hornetq.core.client.impl.ClientSessionFactoryImpl.getConnection(ClientSessionFactoryImpl.java:1142) [hornetq-core-2.2.10.GA.jar:]
              at org.hornetq.core.client.impl.ClientSessionFactoryImpl.getConnectionWithRetry(ClientSessionFactoryImpl.java:992) [hornetq-core-2.2.10.GA.jar:]
              at org.hornetq.core.client.impl.ClientSessionFactoryImpl.connect(ClientSessionFactoryImpl.java:223) [hornetq-core-2.2.10.GA.jar:]
              at org.hornetq.core.client.impl.ServerLocatorImpl.createSessionFactory(ServerLocatorImpl.java:673) [hornetq-core-2.2.10.GA.jar:]
              at org.jbpm.task.service.hornetq.BaseHornetQTaskServer.start(BaseHornetQTaskServer.java:166) [jbpm-human-task-5.3.1.BRMS.jar:5.3.1.B
      RMS]
              at org.jbpm.task.service.hornetq.BaseHornetQTaskServer.run(BaseHornetQTaskServer.java:98) [jbpm-human-task-5.3.1.BRMS.jar:5.3.1.BRMS
      ]
              at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_17]

      12:31:12,257 ERROR [org.jbpm.task.service.TaskServer] (Thread-90) Unable to connect to server using configuration org-hornetq-core-remoting-
      impl-netty-NettyConnectorFactory?port=5153&host=${jboss-bind-address}