Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Steps to do Jboss clustering

 
harish palepu
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone provide me the steps to do Jboss clustering.
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JBoss in Action, chapters 12 and 13.
 
Mark E Hansen
Ranch Hand
Posts: 650
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would just like to point out that if you need to work with the JBoss application server, you really need this book. It has proven to be a great tutorial and reference for all aspects of JBoss I've yet had to deal with. The chapters on Clustering and Replication are terrific.

Really, you can't go wrong. Great job Peter and Javid!

Best Regards,
 
harish palepu
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I am trying to create nodes on different machines for jboss5.1 using the command " -c node1 -g DocsPartition -u 239.255.100.100 \ -b 152.144.119.207 - Djboss.messaging.ServerPeerID=1" in command prompt. But I am getting exception--> "Failed to boot JBoss: java.lang.RuntimeException:Error unmarshalling bootstrap.xml with jboss clustering". I tried searching in google but unable to resolve the issue. So I need help to solve the problem. Can any one help me on this?
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
harish palepu wrote: But I am getting exception--> "Failed to boot JBoss: java.lang.RuntimeException:Error unmarshalling bootstrap.xml with jboss clustering".


Please post the entire exception stacktrace.

While posting logs or xml content or code, please remember to wrap it in a code block by using the Code button in the message editor window. Please use the Preview button to ensure that your post is correctly formatted.
 
harish palepu
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tried with both cases:
1)
run.bat -c node1 -g DocsPartition -u 239.255.100.100 \
-b 152.144.119.207 -Djboss.messaging.ServerPeerID=1
2)
run.bat -c node1 -g DocsPartition -u 239.255.100.100
-b 152.144.119.207 -Djboss.messaging.ServerPeerID=1





 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Caused by: java.io.FileNotFoundException: W:\jboss-5.1.0.GA\server\node1\conf\bootstrap.xml


Is that file present? How did you create the "node1" configuration?
 
harish palepu
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The file is not present in W:\jboss-5.1.0.GA\server\node1\conf\bootstrap.xml.
But I copied "all" directory under %JBOSS_HOME%/server/ to "node1" directory.
Even then also its leading to some indifinete loop which consists of exceptions.

How to check whether the node is created or not???
 
Mark E Hansen
Ranch Hand
Posts: 650
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
harish palepu wrote:The file is not present in W:\jboss-5.1.0.GA\server\node1\conf\bootstrap.xml.
But I copied "all" directory under %JBOSS_HOME%/server/ to "node1" directory.
Even then also its leading to some indifinete loop which consists of exceptions.

How to check whether the node is created or not???

Does that file exist under the all server directory? It exists in mine. Why didn't the file get copied when you created the node1 server directory? Perhaps you need to create the node1 server directory again?
 
Aalok Singh
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ServerPeerID MUST BE UNIQUE for each node in a cluster So this must be other than 1 say 2 or 3 first node you have set it as 1
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic