2 Replies Latest reply on May 14, 2009 2:16 AM by apache605

    Problem in JBoss 5 clustering

      Hi i am trying to impl. the clustering in JBoss 5.0.0.GA with two nodes on
      two different system. the configuration called node1 and node2 .

      System A (node1) - 192.168.1.140
      System B (node2) - 192.168.1.141

      i am staring the two instances to form the cluster with the below command


      run.bat -c node1 -b 192.168.1.140 -Djboss.messaging.ServerPeerID=1

      run.bat -c node2 -b 192.168.1.141 -Djboss.messaging.ServerPeerID=2



      but the two instances does not form the cluster and while starting the instance itself.
      i am not getting the below messages in the server.
      i am using the default partition not changed any setting in the JBoss server.

      ------------------------------------------------------
      [DefaultPartition] Initializing partition DefaultPartition
      [DefaultPartition] Number of cluster members: 1
      [DefaultPartition] Other members: 0
      [DefaultPartition-HAPartitionCache] JBoss Cache version: JBossCache
      'Alegrias' 2.1.1.GA
      [DefaultPartition] Fetching serviceState (will wait for 30000 milliseconds):
      [DefaultPartition] State could not be retrieved (we are the first member in
      group)

      ------------------------------------------


      and when the instance starts it shows the below log


      *************************************************************

      ================================

      JBoss Bootstrap Environment

      JBOSS_HOME: E:\jboss-5.0.0.GA

      JAVA: D:\Program Files\Java\jdk1.5.0_12\bin\java

      JAVA_OPTS: -Dprogram.name=run.bat -server -Xms128m -Xmx512m -XX:MaxPermSize=256m -Dorg.jboss.resolver.warning=true -Ds
      un.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000

      CLASSPATH: E:\jboss-5.0.0.GA\bin\run.jar

      ===============================

      run.bat: unused non-option argument:c
      run.bat: unused non-option argument: node1
      run.bat: unused non-option argument: b
      run.bat: unused non-option argument: 192.168.1.140

      run.bat: unused non-option argument: Djboss.messaging.ServerPeerID=1
      12:16:24,605 INFO [ServerImpl] Starting JBoss (Microcontainer)...
      12:16:24,620 INFO [ServerImpl] Release ID: JBoss [Morpheus] 5.0.0.GA (build: SVNTag=JBoss_5_0_0_GA date=200812042120)
      12:16:24,620 INFO [ServerImpl] Bootstrap URL: null
      12:16:24,620 INFO [ServerImpl] Home Dir: E:\jboss-5.0.0.GA
      12:16:24,620 INFO [ServerImpl] Home URL: file:/E:/jboss-5.0.0.GA/
      12:16:24,620 INFO [ServerImpl] Library URL: file:/E:/jboss-5.0.0.GA/lib/
      12:16:24,620 INFO [ServerImpl] Patch URL: null
      12:16:24,620 INFO [ServerImpl] Common Base URL: file:/E:/jboss-5.0.0.GA/common/
      12:16:24,620 INFO [ServerImpl] Common Library URL: file:/E:/jboss-5.0.0.GA/common/lib/
      12:16:24,620 INFO [ServerImpl] Server Name: default
      12:16:24,620 INFO [ServerImpl] Server Base Dir: E:\jboss-5.0.0.GA\server
      12:16:24,620 INFO [ServerImpl] Server Base URL: file:/E:/jboss-5.0.0.GA/server/
      12:16:24,620 INFO [ServerImpl] Server Config URL: file:/E:/jboss-5.0.0.GA/server/default/conf/
      12:16:24,620 INFO [ServerImpl] Server Home Dir: E:\jboss-5.0.0.GA\server\default
      12:16:24,620 INFO [ServerImpl] Server Home URL: file:/E:/jboss-5.0.0.GA/server/default/
      12:16:24,620 INFO [ServerImpl] Server Data Dir: E:\jboss-5.0.0.GA\server\default\data
      12:16:24,620 INFO [ServerImpl] Server Library URL: file:/E:/jboss-5.0.0.GA/server/default/lib/
      12:16:24,620 INFO [ServerImpl] Server Log Dir: E:\jboss-5.0.0.GA\server\default\log
      12:16:24,620 INFO [ServerImpl] Server Native Dir: E:\jboss-5.0.0.GA\server\default\tmp\native
      12:16:24,620 INFO [ServerImpl] Server Temp Dir: E:\jboss-5.0.0.GA\server\default\tmp
      12:16:24,620 INFO [ServerImpl] Server Temp Deploy Dir: E:\jboss-5.0.0.GA\server\default\tmp\deploy
      12:16:25,449 INFO [ServerImpl] Starting Microcontainer, bootstrapURL=file:/E:/jboss-5.0.0.GA/server/default/conf/bootst
      rap.xml
      12:16:26,152 INFO [VFSCacheFactory] Initializing VFSCache [org.jboss.virtual.plugins.cache.IterableTimedVFSCache]
      12:16:26,167 INFO [VFSCacheFactory] Using VFSCache [IterableTimedVFSCache{lifetime=1800, resolution=60}]
      12:16:26,824 INFO [CopyMechanism] VFS temp dir: E:\jboss-5.0.0.GA\server\default\tmp
      12:16:27,667 INFO [ZipEntryContext] VFS force nested jars copy-mode is enabled.
      12:16:32,183 INFO [ServerInfo] Java version: 1.5.0_12,Sun Microsystems Inc.
      12:16:38,089 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.5.0_12-b04,Sun Microsystems Inc.
      12:16:38,089 INFO [ServerInfo] OS-System: Windows 2003 5.2,x86
      12:16:38,120 INFO [JMXKernel] Legacy JMX core initialized
      12:16:42,808 INFO [ProfileServiceImpl] Loading profile: default from: org.jboss.system.server.profileservice.repository
      .SerializableDeploymentRepository@113f501(root=E:\jboss-5.0.0.GA\server, key=org.jboss.profileservice.spi.ProfileKey@143
      b82c3[domain=default,server=default,name=default])
      12:16:42,808 INFO [ProfileImpl] Using repository:org.jboss.system.server.profileservice.repository.SerializableDeployme
      ntRepository@113f501(root=E:\jboss-5.0.0.GA\server, key=org.jboss.profileservice.spi.ProfileKey@143b82c3[domain=default,
      server=default,name=default])
      12:16:42,808 INFO [ProfileServiceImpl] Loaded profile: ProfileImpl@bc22eb{key=org.jboss.profileservice.spi.ProfileKey@1
      43b82c3[domain=default,server=default,name=default]}
      12:17:03,183 INFO [WebService] Using RMI server codebase: http://127.0.0.1:8083/


      ***************************************************

      it does not takes the four options given below

      run.bat: unused non-option argument: ûc
      run.bat: unused non-option argument: node1
      run.bat: unused non-option argument: ûb
      run.bat: unused non-option argument: 192.168.1.110


      please anybody help me to solve this.

      Or is there any approach for clustering in JBoss 5 .

      Or please provide steps to imple. clustering in JBoss 5.

      Thanks in Advance





        • 1. Re: Problem in JBoss 5 clustering
          brian.stansberry

          For draft docs on AS 5 clustering, see the file attached at the *bottom* of https://www.jboss.org/community/docs/DOC-12928 . It includes a Quick Start section.

          But, you're already doing what it says.

          Seems there is some problem parsing what you are passing on the command line; this isn't a clustering problem.

          Suggest you start node 2 from the command line and then cut from your console window the line including the command and everything through the the last "run.bat: unused non-option argument: 192.168.1.140" bit. Paste it here undedited, using the "code" button.

          • 2. Re: Problem in JBoss 5 clustering

            Thx i have figured out the prob in this.
            And now i am able to form the cluster between two nodes.

            - There was a error in typing the exact command with options in commandline with run.bat command.