"Failed to bind to: localhost/127.0.0.1:5153" due to "Address already in use" by starting multiple JBoss BRMS 5 instances

Solution Verified - Updated -

Environment

  • Red Hat JBoss Enterprise Business Rule Management System (BRMS) 5.3.1

Issue

We are getting the following error by trying to start second BRMS instance on the same host:

SEVERE [org.hornetq.core.server.impl.HornetQServerImpl] (Thread-25) Failure in initialisation
org.jboss.netty.channel.ChannelException: Failed to bind to: localhost/127.0.0.1:5153
...
Caused by: java.net.BindException: Address already in use

Resolution

It is due to the other instance running on the same host, so that it will cause a port conflict. You should change HornetQ server port in jbpm-human-task.war/WEB-INF/web.xml as follows:

. . . 
<init-param>
  <param-name>hornetq.port</param-name>
  <param-value>5222</param-value>
</init-param>
. . .

Also, to run multiple BRMS server on same machine you will have to change some additional ports as described in How to change the address where Guvnor and Designer are running ?.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.