aspose file tools*
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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Unique node during installation." Watch "Unique node during installation." New topic
Author

Unique node during installation.

Mp Ramkumar
Greenhorn

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.
https://support.redhat.com/jbossnetwork/restricted/listSoftware.html?downloadType=distributions&product=appplatform&version=4.3.0.GA_CP02

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.
Eg:
<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.
Eg:
<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:
Eg:
<?xml version="1.0"?>
<!DOCTYPE web-app PUBLIC
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">

<web-app>

 update the below line after the above content.
<distributable/>


11. Uncomment the line #admin=admin in the files web-console-users.properties, jmx-console-users.properties 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
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17257
    
    6

"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.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Mp Ramkumar
Greenhorn

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,
RamkumarMP
Thangamani Mohan
Greenhorn

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: 254

Thank You Thangamani Mohan

You saved my 1 day of debugging.


-Ricky


Regards, Ricky
Oracle Weblogic 10g Certified Expert TechPaste.Com
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unique node during installation.