-
1. Re: How to start jboss 5.0 in cluster on Linux
dandare100 Aug 19, 2010 5:36 AM (in response to vpatchva)You have 2 choices :
Either bind each server instance to a different ip address (Assuming 2 network cards)
or specify a different port set for the second server with
-Djboss.service.binding.set=ports-02
See http://community.jboss.org/wiki/ConfigurePorts
also
-
2. Re: How to start jboss 5.0 in cluster on Linux
mschwery Aug 20, 2010 12:37 PM (in response to dandare100)I think I may be having a related problem with multicasting.
If I run ./run.sh -c node2 -u 199.134.220.30 -Djboss.service.binding.set=ports-01 -Djboss.messaging.ServerPeerID=1 I have port 8083 in use.
But if I run ./run.sh -c node2 -Djboss.service.binding.set-ports-01 -Djboss.messaging.ServerPeerID=1 I don't get the port conflict.
The only differance between the two ways of starting it up is the use of the multicast port.
I think that is where the problem is but I'm not sure what the next step should be.
-
3. Re: How to start jboss 5.0 in cluster on Linux
dandare100 Aug 21, 2010 4:10 AM (in response to mschwery)I think the multicast port is included in the port set and you are overiding it with the -u parameter.
ie You are forcing the 2 instances on the box to use the same multicast address.
Dont specify the -u multicast address and your cluster should be fine providing the 2 nodes use the same port set.
Is there a reason you are specifying the multicast address ?
PS : Are you sure the port conflict is on port 8083 ? Because this has nothing to do with the multicast address.
If it is definitely on port 8083 then do a netstat -a before starting the server to see what is running on that port.
-
4. Re: How to start jboss 5.0 in cluster on Linux
dinsceg Aug 23, 2010 4:43 AM (in response to vpatchva)Hi,
i think problem in multicasting.. better you try in without multicasting(-u option)...
Run both the server instances by specifying the below command.
For Node1:-
# ./run.sh -c node1 -g DefaultPartition -b <IP>For Node2:-
# ./run.sh -c node2 -g DefaultPartition -b <IP> -
5. Re: How to start jboss 5.0 in cluster on Linux
vpatchva Aug 23, 2010 11:49 AM (in response to dinsceg)Dinesh, thanks for your response.
Im getting the following error message when I run the command ./run.sh -c node1 -g DefaultPartition -b 199.*.*.*
10:34 Using RMI servercodebase: http://199.*.*.*:8083/
10:34 Error [AbstractKernelController] Error installing to Start name=jboss;service=WebServise state=Create mode=Manual requiredState=Installed
java.lang.Exception: port 8083 already in use.
But if I use the command ./run.sh -c node1 -g Default Partition, it is working and i was able to start the Jboss node1.
It is using RMI servercodebase: http://127.0.0.1:8083 and everything will start fine.
-
6. Re: How to start jboss 5.0 in cluster on Linux
saradakrishna Aug 25, 2010 1:44 AM (in response to vpatchva)Hi,
I had faced also the same issue as that of you.
But didn't get direct solution to it.I just restarted the system & it worked.
Probably the error "8083 port no already in use" is appearing as you would have started the JBoss AS instance which didn't closed it properly or
that particular port is already in use with some other service.
Moreover, in ./run.sh ,
-g option is for partition name or your cluster name that you have given to your cluster to differentiate from other cluster present in your network.
"DefaultPartition" is the default partition name given by jboss.You can change it.
Hopefully it will work for you.
Please let me know if your problem gets solved.