Today I wanted to experiment some load balancing with JBoss and Apache. For that I needed to run 2 JBoss servers on one single machine.
Server 1 is installed in D:\jboss-184.108.40.20600721-M4-Server1
Server 2 is installed in D:\jboss-220.127.116.1100721-M4-Server2
Of course if you run both servers at the same time, you will get errors such as “address already in use” because of services running on the same ports in both servers.
It turns out that you need to modify the D:\jboss-18.104.22.16800721-M4-Server1\server\default\conf\bindingservice.beans\META-INF\bindings-jboss-beans.xml file to avoid same port conflicts.
So I added 100 to all ports defined in that file, for server 1.
For server 2, I only modified the HTTP WEB SERVER port because port 8080 is already taken by Oracle.
There is no need to modify the D:\jboss-22.214.171.12400721-M4-Server1\server\default\deploy\jbossweb.sar\server.xml file.