1 2 Previous Next 24 Replies Latest reply on Nov 8, 2011 10:08 AM by peterj Go to original post
      • 15. Re: How to configure multiple instances/nodes/domains?
        peterj

        This is not a port issue. The problem is that the DLQ is defined twice in node1. How is messaging configured? Is messaging in both default and node1 using the same database?

         

        Also, you should upgrade to a newer JDK, 1.5.0_07 is really old.

        • 16. Re: How to configure multiple instances/nodes/domains?
          msurenderforu

          Hi Peter,

           

          Thanks for reply.

           

          Yes, both default, node1 are connecting to same database.

           

          Is there any problem using same database by both default, node1?

           

          Please guide me.

           

          Thanks in advance.

           

          Thanks,

          Surender.

          • 17. Re: How to configure multiple instances/nodes/domains?
            wdfink

            As  Peter Johnson menitoned, it looks like that the configuration of one server contains a duplicate configuration for JBossMessaging.

             

            What about if you start default and node1 not together, I suppose one must fail.

            Do you copy or change any configuration file?

            If unsure, try a fresh installation and copy default to node1 and start both without any additional change.

             

            Also I don't understand what "run_orisinal.bat -c node1 -b  131.107.0.83 220.227.247.124 -DBT_II_HOME=D:\BT_HOME_DIR" the IP and MCAST address means in your startup. If you use default the 220 address might be superfluous.

            • 18. Re: How to configure multiple instances/nodes/domains?
              peterj

              If you have not set up JBoss Messaging as clustered, then you need to use different databases.

              • 19. Re: How to configure multiple instances/nodes/domains?
                msurenderforu

                Hi,

                 

                I have taken a fresh copy of jboss-eap-4.3.0.GA_CP07.zip (extracted as jboss-eap-4.3).

                and tried to run using run.bat but it is not able to run.

                Even I ahve changed any configurations and not copied default folder to node1 also.

                Just tried to run of fresh copy of jboss-eap-4.3.

                But it is also not able to run.

                 

                I think it is trying to run Production not default. but production also is also not able to run.

                Do I need to do any configurations to run default (or) production?

                 

                The following console output:

                 

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

                 

                  JBoss Bootstrap Environment

                 

                  JBOSS_HOME: D:\jboss-eap-4.3_New2\jboss-eap-4.3\jboss-as

                 

                  JAVA: C:\Program Files\Java\jdk1.5.0_07\bin\java

                 

                  JAVA_OPTS: -Xms512M -Xmx1024M -XX:MaxPermSize=256M -Dprogram.name=run.bat -server -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000

                 

                  CLASSPATH: C:\Program Files\Java\jdk1.5.0_07\lib\tools.jar;D:\jboss-eap-4.3_New2\jboss-eap-4.3\jboss-as\bin\run.jar

                 

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

                 

                11:57:03,656 INFO  [Server] Starting JBoss (MX MicroKernel)...

                11:57:03,656 INFO  [Server] Release ID: JBoss [EAP] 4.3.0.GA_CP03 (build: SVNTag=JBPAPP_4_3_0_GA_CP03 date=200810241616)

                11:57:03,656 INFO  [Server] Home Dir: D:\jboss-eap-4.3_New2\jboss-eap-4.3\jboss-as

                11:57:03,656 INFO  [Server] Home URL: file:/D:/jboss-eap-4.3_New2/jboss-eap-4.3/jboss-as/

                11:57:03,656 INFO  [Server] Patch URL: null

                11:57:03,656 INFO  [Server] Server Name: production

                11:57:03,656 INFO  [Server] Server Home Dir: D:\jboss-eap-4.3_New2\jboss-eap-4.3\jboss-as\server\production

                11:57:03,656 INFO  [Server] Server Home URL: file:/D:/jboss-eap-4.3_New2/jboss-eap-4.3/jboss-as/server/production/

                11:57:03,656 INFO  [Server] Server Log Dir: D:\jboss-eap-4.3_New2\jboss-eap-4.3\jboss-as\server\production\log

                11:57:03,656 INFO  [Server] Server Temp Dir: D:\jboss-eap-4.3_New2\jboss-eap-4.3\jboss-as\server\production\tmp

                11:57:03,656 INFO  [Server] Root Deployment Filename: jboss-service.xml

                11:57:04,218 INFO  [ServerInfo] Java version: 1.5.0_07,Sun Microsystems Inc.

                11:57:04,218 INFO  [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.5.0_07-b03,Sun Microsystems Inc.

                11:57:04,218 INFO  [ServerInfo] OS-System: Windows XP 5.1,x86

                11:57:04,718 INFO  [Server] Core system initialized

                11:57:07,984 INFO  [WebService] Using RMI server codebase: http://127.0.0.1:8083/

                11:57:07,984 INFO  [Log4jService$URLWatchTimerTask] Configuring from URL: resource:jboss-log4j.xml

                 

                 

                 

                 

                 

                Please guide/help me.

                 

                Thanks in advance.

                • 20. Re: How to configure multiple instances/nodes/domains?
                  wdfink

                  The outout show no error!

                  Do you see any error in boot.log or server.log?

                  And what options do you use for starting?

                   

                  Please be a bit detailed if you post your problem that we are able to help you.

                  • 21. Re: How to configure multiple instances/nodes/domains?
                    msurenderforu

                    hi,

                     

                    thanks for reply.

                     

                    I don't see any error in boot.log or server.log of production folder.

                    I just downloaded the jboss-eap-4.3.0.GA_CP07.zip (extracted as jboss-eap-4.3),

                    then run the run.bat file of jboss-eap-4.3\jboss-as\bin folder, that' it.

                     

                     

                    The above output is only shown and is not able to move further (or) is not able run/start complete process of jboss-eap-4.3


                    Please guide/help me.

                    • 22. Re: How to configure multiple instances/nodes/domains?
                      wdfink

                      The your server is up and running perfect.

                      You should see a message 'Started in ....'  in the server.log

                      • 23. Re: How to configure multiple instances/nodes/domains?
                        msurenderforu

                        Hi,

                         

                        Thanks again. Yes, server is up & running.

                         

                        Now I tried to run mutliple ports of 8080, 9090.

                        For this I copied Production folders(conf, data, deploy, deploy-hasingleton, farm, lib, log, tmp, work) to \jboss-eap-4.3\jboss-as\server\node1 then

                        In node1 folder, I uncommented the Service Binding tag at D:\jboss-eap-4.3\jboss-as\server\ node1\conf\jboss-service.xml. then

                        Tried to run run.bat but giving error as below (or) attached error log file.

                         

                        The server is up on only 8080, not 8180/9090

                        I even changed port 8080 to 9090 in D:\jboss-eap-4.3\jboss-as\server\ node1\deploy\jboss-web.deployer\server.xml but not running.

                         

                        Should I need to do any other configurations? (or) configurations related to default folder?


                         

                        java.sql.SQLException: Table already exists: JBM_DUAL in statement [CREATE TABLE JBM_DUAL]

                            at org.hsqldb.jdbc.Util.sqlException(Unknown Source)

                            at org.hsqldb.jdbc.jdbcStatement.fetchResult(Unknown Source)

                            at org.hsqldb.jdbc.jdbcStatement.executeUpdate(Unknown Source)

                        ......

                        java.sql.SQLException: Table already exists: JBM_MSG_REF in statement [CREATE TABLE JBM_MSG_REF]

                            at org.hsqldb.jdbc.Util.sqlException(Unknown Source)

                            at org.hsqldb.jdbc.jdbcStatement.fetchResult(Unknown Source)

                        ...

                        2011-11-08 13:11:50,500 DEBUG [org.jboss.messaging.core.impl.JDBCSupport] Failed to execute: CREATE INDEX JBM_MSG_REF_TX ON JBM_MSG_REF (TRANSACTION_ID, STATE)

                        java.sql.SQLException: Index already exists: JBM_MSG_REF_TX in statement [CREATE INDEX JBM_MSG_REF_TX ON JBM_MSG_REF]

                            at org.hsqldb.jdbc.Util.sqlException(Unknown Source)

                            at org.hsqldb.jdbc.jdbcStatement.fetchResult(Unknown Source)

                            at org.hsqldb.jdbc.jdbcStatement.executeUpdate(Unknown Source)

                        ....

                        2011-11-08 13:11:50,500 DEBUG [org.jboss.messaging.core.impl.JDBCSupport] Failed to execute: CREATE TABLE JBM_MSG (MESSAGE_ID BIGINT, RELIABLE CHAR(1), EXPIRATION BIGINT, TIMESTAMP BIGINT, PRIORITY TINYINT, TYPE TINYINT, HEADERS LONGVARBINARY, PAYLOAD LONGVARBINARY, PRIMARY KEY (MESSAGE_ID))

                        java.sql.SQLException: Table already exists: JBM_MSG in statement [CREATE TABLE JBM_MSG]

                            at org.hsqldb.jdbc.Util.sqlException(Unknown Source)

                            at org.hsqldb.jdbc.jdbcStatement.fetchResult(Unknown Source)

                            at org.hsqldb.jdbc.jdbcStatement.executeUpdate(Unknown Source)

                        .....

                         

                         

                        Please guide/help me.

                        Thanks in advance.

                        • 24. Re: How to configure multiple instances/nodes/domains?
                          peterj

                          The reason that you did not see anything beyond this line:

                           

                          11:57:07,984 INFO  [Log4jService$URLWatchTimerTask] Configuring from URL: resource:jboss-log4j.xml

                           

                          is that you are running a production version of the app server (EAP is assumed to be production-ready) and not logging to the console is a standard practice in production. The log output you did see was from the bootstrap code, and that last line printed indicates that the bootstrap is done and that control (and logging) is being passed to the app server core.

                           

                          It still okks like you have not yet configured JBoss Messaging to run clustered. This should help:

                          http://docs.jboss.org/jbossmessaging/docs/userguide-1.2.0.GA/html/c_overview.html

                          1 2 Previous Next