File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JBoss/WildFly and the fly likes Unique node during installation. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Unique node during installation." Watch "Unique node during installation." New topic

Unique node during installation.

Mp Ramkumar

Joined: Apr 28, 2009
Posts: 26
I have set the clustering of JBOSS EAP 4.3.0 and I am encountering the following error. Can some one tell me when do I get this error.

2009-05-02 19:58:56,116 DEBUG [org.jboss.messaging.core.jmx.MessagingPostOfficeService] Starting failed jboss.messaging:service=PostOffice
java.lang.IllegalArgumentException: Cannot start post office since there is already a post office in the cluster with the same node id (0). Are you sure you have given each node a unique node id during installation?

I have done the following for cluster setup.

6. Extract JBOSS 4.3.0 Enterprise Application Platform CP02 build in to Hard disk after downloading it from the location.

7. Copy the production folder under jboss-eap-4.3\jboss-as\server folder into another folder named Node1 to create a node instance.
8. Add the jvmRoute= <Node name> parameter to the given line as shown in the example in the file server.xml available under jboss-eap-4.3\jboss-as\server\Node2\deploy\jboss-web.deployer folder.
<Engine name="jboss.web" defaultHost="localhost" jvmRoute="Node1">

9. Locate the <attribute> element with a name of UseJK, and set its value to true in the file jboss-service.xml available under jboss-eap-4.3\jboss-as\server\Node2\deploy\jboss-web.deployer\META-INF folder.
<attribute name="UseJK">true</attribute>

10. Update the tag <distributable/> in the file “web.xml” available at JBoss_HOME\server\all\deploy\jmx-console.war\WEB-INF\web.xml as given below:
<?xml version="1.0"?>
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"


 update the below line after the above content.

11. Uncomment the line #admin=admin in the files, files which are available under folders JBOSS_HOME\server\Node3\deploy\management\console-mgr.sar\web-console.war\WEB-INF\classes and JBoss_HOME\server\Node3\conf\props respectively.

12. Perform the steps from 7 to 10 on machine to for Node2.

Suggest me what is wrong in my setup.

Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

"MP Ramkumar"

Please click on the My Profile link above and change your display name to meet the JavaRanch Naming Policy of using your real first and real last names.


Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
Mp Ramkumar

Joined: Apr 28, 2009
Posts: 26
Hi Mark,
I have given my real name in First(which is my surname initials are MP) and Lastname(that is Ramkumar). I do not have any intention to hide my identity. This is a common indian name.

Let me know if it requires any updation further.

Thanks & Regards,
Thangamani Mohan

Joined: Apr 13, 2007
Posts: 2
Hi Ramkumar ,
is your issue resolved now ?

If not check the <attribute name="ServerPeerID">${jboss.messaging.ServerPeerID:1}</attribute>
in <Jboss_home>/server/<Node_NAME>/deploy/messaging/messaging-service.xml . In a cluster each node MUST have a unique value.

You can give 0 for node1 and 1 for node2 and bounce the servers and check.

This works for JBoss 5.0.0 GA. But not sure if the same would work in your case as well.

Ramakanta Sahoo
Ranch Hand

Joined: Aug 23, 2008
Posts: 255

Thank You Thangamani Mohan

You saved my 1 day of debugging.


Regards, Ricky
Oracle Weblogic 10g Certified Expert TechPaste.Com
I agree. Here's the link:
subject: Unique node during installation.
jQuery in Action, 3rd edition