I am having difficulties getting two instances of JBoss 7 to run on a Windows machine.
I have the main instance listening on the default ports.
I copied the entire folder structure to a new one called JBoss-AS-Web-Org2.
I edited the standalone.xml file to add a port offset on the Org2 copy. It looks like this:
Here is the management ports section:
| <management-interfaces> |
| <native-interface interface="management" port="29999"/> |
| <http-interface interface="management" port="29990"/> |
| </management-interfaces> |
| </management> |
Here is the port bindings section:
</interface>
<interface name="public">
<inet-address value="${jboss.bind.address:127.0.0.1}"/>
</interface>
</interfaces>
<socket-binding-group name="standard-sockets" default-interface="public" port-offset="200">
<socket-binding name="http" port="8080"/>
<socket-binding name="https" port="8443"/>
<socket-binding name="jmx-connector-registry" port="1090" interface="management"/>
<socket-binding name="jmx-connector-server" port="1091" interface="management"/>
<socket-binding name="jndi" port="1099"/>
<socket-binding name="osgi-http" port="8081" interface="management"/>
<socket-binding name="remoting" port="4447"/>
<socket-binding name="txn-recovery-environment" port="4712"/>
<socket-binding name="txn-status-manager" port="4713"/>
</socket-binding-group>
</server>
When I start it up it still binds to the default ports and populates the logs in the original copy of JBoss.
I have tried editing the set DIRNAME parm in the standalone.bat file with no luck. Here is what I tried:
set DIRNAME=E:\JBoss-AS-Web-Org2\bin\
I tried it with several iterations of the path with no luck.
I tried this recommendation as well: http://community.jboss.org/wiki/MultipleInstancesOfJBossAS7OnTheSameMachine
At the bottom of this thread a poster mentions adding the -Djboss.server.base.dir=instance1 parm. I tried it using my path with no luck. I tried it several ways with no luck.
Any ideas?