When you use the IP address 0.0.0.0, JBoss AS connects to all IP address on the machine, including localhost. Therefore, you will run into port conflicts. Try using "-b xxx.xxx.xxx.xxx" instead, where xxx.xxx.xxx.xxx is the IP address of the machine. Note that when you do that you will not have localhost access to that server.
The only other possibility is to use different port numbers.
Hi Peter, thanks for your help.
I didn't know that with 0.0.0.0 al IPs are used on the machine.
Now is clear to me that there would be conflicts.
I followed your suggestion and assigned the IP of the machine to the jboss instance that would be accessed remotely, and 127.0.0.1 to the other instance.
Now everything works fine !
Thanks a lot.