6 Replies Latest reply on Aug 1, 2010 1:29 PM by Abhi pat

    JBoss 5.1.0.GA startup issue.

    larry lyons Newbie

      Greetings,

       

      I'm fairly new at using jboss. I followed the installation instuctions and everything worked perfectly when installing on my local machine. So after some tests I decided to try out jboss on our windows 2008 server.

       

      I set up the environment variables for both JAVA_Home and JBOSS_HOME no problem with both pointing to the appropriate bin directories (as in C:\Program Files\Java\jdk1.6.0_17\jre\bin for the JAVA_HOME variable and C:\jboss-5.1.0.GA\bin for JBOSS_HOME).

       

      However following the startup instructions I go to the command prompt level and navigate to to the <JBOSS_HOME>\bin directory. I then type run.

       

      At this point I would expect to see the normal startup messaging, with the normal JBOSS startup messages appearing. Instead all I get is the following echo:

       

      Calling c:\jobss=5.1.0.GA\bin\run.conf.bat

       

      Nothing else, no error messages, startup alerts etc.

       

      At this point I have no clue what the problem my be. Any suggestions would be most appreciated.

       

      thx,

       

      larry

        • 1. Re: JBoss 5.1.0.GA startup issue.
          Peter Johnson Master

          The best way to debug this is to comment out the "@echo off" line in the run.bat file and then run it again. That should give you some hint as to which command is casuing a problem.

          • 2. Re: JBoss 5.1.0.GA startup issue.
            larry lyons Newbie

            thanks for the suggestion. its most appreciated. Tthere was some output at least. I'm still clueless about what I need to look for in this case. Here's a copy:

             


            c:\jboss-5.1.0.GA\bin>rem @echo off

             

            c:\jboss-5.1.0.GA\bin>rem -------------------------------------------------------------------------

             

            c:\jboss-5.1.0.GA\bin>rem JBoss Bootstrap Script for Windows

             

            c:\jboss-5.1.0.GA\bin>rem -------------------------------------------------------------------------

             

            c:\jboss-5.1.0.GA\bin>rem $Id: run.bat 88978 2009-05-16 18:18:45Z alex.loubyansky@jboss.com $

             

            c:\jboss-5.1.0.GA\bin>if "Windows_NT" == "Windows_NT" (set "DIRNAME=c:\jboss-5.1.0.GA\bin\" )  else (set DIRNAME=.\ )

             

            c:\jboss-5.1.0.GA\bin>rem Read an optional configuration file.

             

            c:\jboss-5.1.0.GA\bin>if "x" == "x" (set "RUN_CONF=c:\jboss-5.1.0.GA\bin\run.conf.bat" )

             

            c:\jboss-5.1.0.GA\bin>if exist "c:\jboss-5.1.0.GA\bin\run.conf.bat" (
            echo Calling c:\jboss-5.1.0.GA\bin\run.conf.bat 
            call "c:\jboss-5.1.0.GA\bin\run.conf.bat" 
            )  else (echo Config file not found c:\jboss-5.1.0.GA\bin\run.conf.bat )
            Calling c:\jboss-5.1.0.GA\bin\run.conf.bat

             

            c:\jboss-5.1.0.GA\bin>rem ### -*- batch file -*- ######################################################

             

            c:\jboss-5.1.0.GA\bin>rem #                                                                          ##

             

            c:\jboss-5.1.0.GA\bin>rem #  JBoss Bootstrap Script Configuration                                    ##

             

            c:\jboss-5.1.0.GA\bin>rem #                                                                          ##

             

            c:\jboss-5.1.0.GA\bin>rem #############################################################################

             

            c:\jboss-5.1.0.GA\bin>rem # $Id: run.conf.bat 88820 2009-05-13 15:25:44Z dimitris@jboss.org $

             

            c:\jboss-5.1.0.GA\bin>rem #

             

            c:\jboss-5.1.0.GA\bin>rem # This batch file is executed by run.bat to initialize the environment 

             

            c:\jboss-5.1.0.GA\bin>rem # variables that run.bat uses. It is recommended to use this file to

             

            c:\jboss-5.1.0.GA\bin>rem # configure these variables, rather than modifying run.bat itself. 

             

            c:\jboss-5.1.0.GA\bin>rem #

             

            c:\jboss-5.1.0.GA\bin>if not "x" == "x" goto JAVA_OPTS_SET

             

            c:\jboss-5.1.0.GA\bin>rem #

             

            c:\jboss-5.1.0.GA\bin>rem # Specify the JBoss Profiler configuration file to load.

             

            c:\jboss-5.1.0.GA\bin>rem #

             

            c:\jboss-5.1.0.GA\bin>rem # Default is to not load a JBoss Profiler configuration file.

             

            c:\jboss-5.1.0.GA\bin>rem #

             

            c:\jboss-5.1.0.GA\bin>rem set "PROFILER=C:\jboss-5.1.0.GA\bin\bin\jboss-profiler.properties"

             

            c:\jboss-5.1.0.GA\bin>rem #

             

            c:\jboss-5.1.0.GA\bin>rem # Specify the location of the Java home directory (it is recommended that

             

            c:\jboss-5.1.0.GA\bin>rem # this always be set). If set, then "C:\Program Files (x86)\Java\jdk1.6.0_20\bin\bin\java" will be used as

             

            c:\jboss-5.1.0.GA\bin>rem # the Java VM executable; otherwise, "" will be used (see below).

             

            c:\jboss-5.1.0.GA\bin>rem #

             

            c:\jboss-5.1.0.GA\bin>rem set "JAVA_HOME=C:\opt\jdk1.6.0_13"

             

            c:\jboss-5.1.0.GA\bin>rem #

             

            c:\jboss-5.1.0.GA\bin>rem # Specify the exact Java VM executable to use - only used if JAVA_HOME is

             

            c:\jboss-5.1.0.GA\bin>rem # not set. Default is "java".

             

            c:\jboss-5.1.0.GA\bin>rem #

             

            c:\jboss-5.1.0.GA\bin>rem set "JAVA=C:\opt\jdk1.6.0_13\bin\java"

             

            c:\jboss-5.1.0.GA\bin>rem #

             

            c:\jboss-5.1.0.GA\bin>rem # Specify options to pass to the Java VM. Note, there are some additional

             

            c:\jboss-5.1.0.GA\bin>rem # options that are always passed by run.bat.

             

            c:\jboss-5.1.0.GA\bin>rem #

             

            c:\jboss-5.1.0.GA\bin>rem # JVM memory allocation pool parameters - modify as appropriate.

             

            c:\jboss-5.1.0.GA\bin>set "JAVA_OPTS=-Xms128M -Xmx512M -XX:MaxPermSize=256M"

             

            c:\jboss-5.1.0.GA\bin>rem # Reduce the RMI GCs to once per hour for Sun JVMs.

             

            c:\jboss-5.1.0.GA\bin>set "JAVA_OPTS=-Xms128M -Xmx512M -XX:MaxPermSize=256M -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000"

             

            c:\jboss-5.1.0.GA\bin>rem # Warn when resolving remote XML DTDs or schemas.

             

            c:\jboss-5.1.0.GA\bin>set "JAVA_OPTS=-Xms128M -Xmx512M -XX:MaxPermSize=256M -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dorg.jboss.resolver.warning=true"

             

            c:\jboss-5.1.0.GA\bin>rem # Sample JPDA settings for remote socket debugging

             

            c:\jboss-5.1.0.GA\bin>rem set "JAVA_OPTS=-Xms128M -Xmx512M -XX:MaxPermSize=256M -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dorg.jboss.resolver.warning=true -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n"

             

            c:\jboss-5.1.0.GA\bin>rem # Sample JPDA settings for shared memory debugging 

             

            c:\jboss-5.1.0.GA\bin>rem set "JAVA_OPTS=-Xms128M -Xmx512M -XX:MaxPermSize=256M -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dorg.jboss.resolver.warning=true -Xrunjdwp:transport=dt_shmem,address=jboss,server=y,suspend=n"

             

            c:\jboss-5.1.0.GA\bin>pushd c:\jboss-5.1.0.GA\bin\..

             

            c:\jboss-5.1.0.GA>if "xC:\jboss-5.1.0.GA\bin" == "x" (set "JBOSS_HOME=c:\jboss-5.1.0.GA" )

             

            c:\jboss-5.1.0.GA>popd

             

            c:\jboss-5.1.0.GA\bin>set DIRNAME=

             

            c:\jboss-5.1.0.GA\bin>if "Windows_NT" == "Windows_NT" (set "PROGNAME=run.bat" )  else (set "PROGNAME=run.bat" )

             

            c:\jboss-5.1.0.GA\bin>if "x-Xms128M -Xmx512M -XX:MaxPermSize=256M -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dorg.jboss.resolver.warning=true" == "x" (set "JAVA_OPTS=-Dprogram.name=run.bat" )  else (set "JAVA_OPTS=-Dprogram.name=run.bat -Xms128M -Xmx512M -XX:MaxPermSize=256M -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dorg.jboss.resolver.warning=true" )

             

            c:\jboss-5.1.0.GA\bin>if "xC:\Program Files (x86)\Java\jdk1.6.0_20\bin" == "x" (
            set  JAVA=java 
            echo JAVA_HOME is not set. Unexpected results may occur. 
            echo Set JAVA_HOME to the directory of your local JDK to avoid this message.
            )  else (
            set "JAVA=C:\Program Files (x86)\Java\jdk1.6.0_20\bin\bin\java" 
            if exist "C:\Program Files (x86)\Java\jdk1.6.0_20\bin\lib\tools.jar" (set "JAVAC_JAR=C:\Program Files (x86)\Java\jdk1.6.0_20\bin\lib\tools.jar" )
            )

             

            c:\jboss-5.1.0.GA\bin>rem Add -server to the JVM options, if supported

             

            c:\jboss-5.1.0.GA\bin>"C:\Program Files (x86)\Java\jdk1.6.0_20\bin\bin\java" -server -version   2>&1  | findstr /I hotspot  1>nul

            • 4. Re: JBoss 5.1.0.GA startup issue.
              larry lyons Newbie

              OK. so do I just comment out the findstr setting or do i set it somewhere? I'm a tad confused.

               

              thanks,

              larry

              • 5. Re: JBoss 5.1.0.GA startup issue.
                Peter Johnson Master

                Your two choices are:

                 

                a) Figure out why the findstr command isn't working for you and fix that

                b) Commend out the lines in run.bat that use findstr

                 

                Do whichever one works for you.

                • 6. Re: JBoss 5.1.0.GA startup issue.
                  Abhi pat Newbie

                  add path for your system32 directory in path variable.