2 Replies Latest reply on Feb 25, 2013 9:06 PM by kanji1981

    Error while starting Jboss Server via run.bat –c CIM –b 0.0.0.0

    kanji1981

      Hi

       

      I am new to Jboss. I have scenario where i need deploy by ear file in Jboss and start Jboss with below command. I have just unzipped jboss-5.1.0.GA and using as is by creating my own server "CIM" under JBOSS_HOME/Server dir.

       

      run.bat –c CIM –b 0.0.0.0

       

      But i am getting below error after running this. I dont understand this.  Can any one help me with this. I have give both echo off and echo on error details below.

       

      With echo Off: Error is below.

      ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

       

      C:\tibco\jboss5.1\bin>run.bat -c CIM -b 0.0.0.0

      Calling C:\tibco\jboss5.1\bin\run.conf.bat

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

       

       

        JBoss Bootstrap Environment

       

       

        JBOSS_HOME: C:\tibco\jboss5.1

       

       

        JAVA: C:\JDK1.6\bin\java

       

       

        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 -server

       

       

        CLASSPATH: C:\tibco\jboss5.1\bin\run.jar

       

       

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

       

       

      Usage: java [-options] class [args...]

                 (to execute a class)

         or  java [-options] -jar jarfile [args...]

                 (to execute a jar file)

       

       

      where options include:

          -server       to select the "server" VM

          -hotspot      is a synonym for the "server" VM  [deprecated]

                        The default VM is server.

       

       

          -cp <class search path of directories and zip/jar files>

          -classpath <class search path of directories and zip/jar files>

                        A ; separated list of directories, JAR archives,

                        and ZIP archives to search for class files.

          -D<name>=<value>

                        set a system property

          -verbose[:class|gc|jni]

                        enable verbose output

          -version      print product version and exit

          -version:<value>

                        require the specified version to run

          -showversion  print product version and continue

          -jre-restrict-search | -jre-no-restrict-search

                        include/exclude user private JREs in the version search

          -? -help      print this help message

          -X            print help on non-standard options

          -ea[:<packagename>...|:<classname>]

          -enableassertions[:<packagename>...|:<classname>]

                        enable assertions

          -da[:<packagename>...|:<classname>]

          -disableassertions[:<packagename>...|:<classname>]

                        disable assertions

          -esa | -enablesystemassertions

                        enable system assertions

          -dsa | -disablesystemassertions

                        disable system assertions

          -agentlib:<libname>[=<options>]

                        load native agent library <libname>, e.g. -agentlib:hprof

                          see also, -agentlib:jdwp=help and -agentlib:hprof=help

          -agentpath:<pathname>[=<options>]

                        load native agent library by full pathname

          -javaagent:<jarpath>[=<options>]

                        load Java programming language agent, see java.lang.instrument

       

       

          -splash:<imagepath>

                        show splash screen with specified image

      Press any key to continue . . .

      ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

       

       

      With Echo on,Error are below:

       

      ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

       

      C:\tibco\jboss5.1\bin>rem set "PROFILER=C:\tibco\jboss5.1\bin\jboss-profiler.pro

      perties"

       

       

      C:\tibco\jboss5.1\bin>rem #

       

       

      C:\tibco\jboss5.1\bin>rem # Specify the location of the Java home directory (it

      is recommended that

       

       

      C:\tibco\jboss5.1\bin>rem # this always be set). If set, then "C:\JDK1.6\bin\jav

      a" will be used as

       

       

      C:\tibco\jboss5.1\bin>rem # the Java VM executable; otherwise, "" will be used (

      see below).

       

       

      C:\tibco\jboss5.1\bin>rem #

       

       

      C:\tibco\jboss5.1\bin>rem set "JAVA_HOME=C:\opt\jdk1.6.0_13"

       

       

      C:\tibco\jboss5.1\bin>rem #

       

       

      C:\tibco\jboss5.1\bin>rem # Specify the exact Java VM executable to use - only u

      sed if JAVA_HOME is

       

       

      C:\tibco\jboss5.1\bin>rem # not set. Default is "java".

       

       

      C:\tibco\jboss5.1\bin>rem #

       

       

      C:\tibco\jboss5.1\bin>rem set "JAVA=C:\opt\jdk1.6.0_13\bin\java"

       

       

      C:\tibco\jboss5.1\bin>rem #

       

       

      C:\tibco\jboss5.1\bin>rem # Specify options to pass to the Java VM. Note, there

      are some additional

       

       

      C:\tibco\jboss5.1\bin>rem # options that are always passed by run.bat.

       

       

      C:\tibco\jboss5.1\bin>rem #

       

       

      C:\tibco\jboss5.1\bin>rem # JVM memory allocation pool parameters - modify as ap

      propriate.

       

       

      C:\tibco\jboss5.1\bin>set "JAVA_OPTS=-Xms128M -Xmx512M -XX:MaxPermSize=256M"

       

       

      C:\tibco\jboss5.1\bin>rem # Reduce the RMI GCs to once per hour for Sun JVMs.

       

       

      C:\tibco\jboss5.1\bin>set "JAVA_OPTS=-Xms128M -Xmx512M -XX:MaxPermSize=256M -Dsu

      n.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000"

       

       

      C:\tibco\jboss5.1\bin>rem # Warn when resolving remote XML DTDs or schemas.

       

       

      C:\tibco\jboss5.1\bin>set "JAVA_OPTS=-Xms128M -Xmx512M -XX:MaxPermSize=256M -Dsu

      n.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dor

      g.jboss.resolver.warning=true"

       

       

      C:\tibco\jboss5.1\bin>rem # Sample JPDA settings for remote socket debugging

       

       

      C:\tibco\jboss5.1\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,ser

      ver=y,suspend=n"

       

       

      C:\tibco\jboss5.1\bin>rem # Sample JPDA settings for shared memory debugging

       

       

      C:\tibco\jboss5.1\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,ser

      ver=y,suspend=n"

       

       

      C:\tibco\jboss5.1\bin>pushd C:\tibco\jboss5.1\bin\..

       

       

      C:\tibco\jboss5.1>if "xC:\tibco\jboss5.1" == "x" (set "JBOSS_HOME=C:\tibco\jboss

      5.1" )

       

       

      C:\tibco\jboss5.1>popd

       

       

      C:\tibco\jboss5.1\bin>set DIRNAME=

       

       

      C:\tibco\jboss5.1\bin>if "Windows_NT" == "Windows_NT" (set "PROGNAME=run.bat" )

      else (set "PROGNAME=run.bat" )

       

       

      C:\tibco\jboss5.1\bin>if "x-Xms128M -Xmx512M -XX:MaxPermSize=256M -Dsun.rmi.dgc.

      client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dorg.jboss.re

      solver.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:\tibco\jboss5.1\bin>if "xC:\JDK1.6" == "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:\JDK1.6\bin\java"

      if exist "C:\JDK1.6\lib\tools.jar" (set "JAVAC_JAR=C:\JDK1.6\lib\tools.jar" )

      )

       

       

      C:\tibco\jboss5.1\bin>rem Add -server to the JVM options, if supported

       

       

      C:\tibco\jboss5.1\bin>"C:\JDK1.6\bin\java" -server -version   2>&1  | findstr /I

      hotspot  1>nul

       

       

      C:\tibco\jboss5.1\bin>if not errorlevel 1 (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 -serve

      r" )

       

       

      C:\tibco\jboss5.1\bin>rem Set Java platform if 64-Bit JVM used

       

       

      C:\tibco\jboss5.1\bin>set JAVA_PLATFORM=

       

       

      C:\tibco\jboss5.1\bin>"C:\JDK1.6\bin\java" -version   2>&1  | findstr /I "64-Bit

      ^| x86_64"  1>nul

       

       

      C:\tibco\jboss5.1\bin>if not errorlevel 1 (if /I "AMD64" == "IA64" (set JAVA_PLA

      TFORM=i64 )  else if /I "AMD64" == "AMD64" (set JAVA_PLATFORM=x64 )  else if /I

      "AMD64" == "x64" (set JAVA_PLATFORM=x64 )  else if /I "" == "IA64" (set JAVA_PLA

      TFORM=i64 )  else if /I "" == "AMD64" (set JAVA_PLATFORM=x64 )  else (

      echo PROCESSOR_ARCHITECTURE is not set. Unexpected results may occur.

      echo Set PROCESSOR_ARCHITECTURE according to the 64-Bit JVM used.

      ) )

       

       

      C:\tibco\jboss5.1\bin>if "xx64" == "x" set JAVA_PLATFORM=x86

       

       

      C:\tibco\jboss5.1\bin>rem Add native to the PATH if present

       

       

      C:\tibco\jboss5.1\bin>set JBOSS_NATIVE_LOC=

       

       

      C:\tibco\jboss5.1\bin>if exist "C:\tibco\jboss5.1\bin\META-INF\lib\windows-x64"

      (set "JBOSS_NATIVE_HOME=C:\tibco\jboss5.1\bin\META-INF\lib\windows-x64" )  else

      if exist "C:\tibco\jboss5.1\bin\native" (set "JBOSS_NATIVE_HOME=C:\tibco\jboss5.

      1\bin\native" )

       

       

      C:\tibco\jboss5.1\bin>if not "x" == "x" (

      set "PATH=;C:\JDK1.6\bin;C:\tibco\ems\6.1\bin;C:\tibco\jboss5.1\bin;C:\app\kanum

      uri\product\11.2.0\dbhome_1\bin;C:\tibco\cim\8.2\bin\as\bin;C:\tibco\cim\8.2\bin

      \as\lib;C:\tibco\cim\8.2\bin\as\lib\as-common.jar;C:\app\kanumuri\product\11.2.0

      \dbhome_1\bin;C:\tibco\tibrv\8.3\bin;C:\Windows\system32;C:\Windows;C:\Windows\S

      ystem32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\tibco\jboss5.1\bin"

       

       

      set JAVA_OPTS=-Dprogram.name=run.bat -Xms128M -Xmx512M -XX:MaxPermSize=256M -Ds

      un.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Do

      rg.jboss.resolver.warning=true -server "-Djava.library.path=;C:\JDK1.6\bin;C:\ti

      bco\ems\6.1\bin;C:\tibco\jboss5.1\bin;C:\app\kanumuri\product\11.2.0\dbhome_1\bi

      n;C:\tibco\cim\8.2\bin\as\bin;C:\tibco\cim\8.2\bin\as\lib;C:\tibco\cim\8.2\bin\a

      s\lib\as-common.jar;C:\app\kanumuri\product\11.2.0\dbhome_1\bin;C:\tibco\tibrv\8

      .3\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System

      32\WindowsPowerShell\v1.0\;C:\tibco\jboss5.1\bin"

      )

       

       

      C:\tibco\jboss5.1\bin>rem Find run.jar, or we can't continue

       

       

      C:\tibco\jboss5.1\bin>if exist "C:\tibco\jboss5.1\bin\run.jar" (if "xC:\JDK1.6\l

      ib\tools.jar" == "x" (set "RUNJAR=C:\JDK1.6\lib\tools.jar;C:\tibco\jboss5.1\bin\

      run.jar" )  else (set "RUNJAR=C:\tibco\jboss5.1\bin\run.jar" ) )  else (

      echo Could not locate "C:\tibco\jboss5.1\bin\run.jar".

      echo Please check that you are in the bin directory when running this script.

       

       

      goto END

      )

       

       

      C:\tibco\jboss5.1\bin>rem If JBOSS_CLASSPATH empty, don't include it, as this wi

      ll

       

       

      C:\tibco\jboss5.1\bin>rem result in including the local directory in the classpa

      th, which makes

       

       

      C:\tibco\jboss5.1\bin>rem error tracking harder.

       

       

      C:\tibco\jboss5.1\bin>if "x" == "x" (set "RUN_CLASSPATH=C:\tibco\jboss5.1\bin\ru

      n.jar" )  else (set "RUN_CLASSPATH=;C:\tibco\jboss5.1\bin\run.jar" )

       

       

      C:\tibco\jboss5.1\bin>set JBOSS_CLASSPATH=C:\tibco\jboss5.1\bin\run.jar

       

       

      C:\tibco\jboss5.1\bin>rem Setup JBoss specific properties

       

       

      C:\tibco\jboss5.1\bin>rem Setup the java endorsed dirs

       

       

      C:\tibco\jboss5.1\bin>set JBOSS_ENDORSED_DIRS=C:\tibco\jboss5.1\lib\endorsed

       

       

      C:\tibco\jboss5.1\bin>echo =====================================================

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

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

       

       

      C:\tibco\jboss5.1\bin>echo.

       

       

       

       

      C:\tibco\jboss5.1\bin>echo   JBoss Bootstrap Environment

        JBoss Bootstrap Environment

       

       

      C:\tibco\jboss5.1\bin>echo.

       

       

       

       

      C:\tibco\jboss5.1\bin>echo   JBOSS_HOME: C:\tibco\jboss5.1

        JBOSS_HOME: C:\tibco\jboss5.1

       

       

      C:\tibco\jboss5.1\bin>echo.

       

       

       

       

      C:\tibco\jboss5.1\bin>echo   JAVA: C:\JDK1.6\bin\java

        JAVA: C:\JDK1.6\bin\java

       

       

      C:\tibco\jboss5.1\bin>echo.

       

       

       

       

      C:\tibco\jboss5.1\bin>echo   JAVA_OPTS: -Dprogram.name=run.bat -Xms128M -Xmx512M

      -XX:MaxPermSize=256M -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.serv

      er.gcInterval=3600000 -Dorg.jboss.resolver.warning=true -server

        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 -server

       

       

      C:\tibco\jboss5.1\bin>echo.

       

       

       

       

      C:\tibco\jboss5.1\bin>echo   CLASSPATH: C:\tibco\jboss5.1\bin\run.jar

        CLASSPATH: C:\tibco\jboss5.1\bin\run.jar

       

       

      C:\tibco\jboss5.1\bin>echo.

       

       

       

       

      C:\tibco\jboss5.1\bin>echo =====================================================

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

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

       

       

      C:\tibco\jboss5.1\bin>echo.

       

       

       

       

      C:\tibco\jboss5.1\bin>rem "C:\JDK1.6\bin\java" -Dprogram.name=run.bat -Xms128M -

      Xmx512M -XX:MaxPermSize=256M -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.d

      gc.server.gcInterval=3600000 -Dorg.jboss.resolver.warning=true -server ^   -Djav

      a.endorsed.dirs="C:\tibco\jboss5.1\lib\endorsed" ^   -classpath "C:\tibco\jboss5

      .1\bin\run.jar" ^   org.jboss.Main -c CIM -b 0.0.0.0

       

       

      C:\tibco\jboss5.1\bin>"C:\JDK1.6\bin\java" -Dprogram.name=run.bat -Xms128M -Xmx5

      12M -XX:MaxPermSize=256M -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.s

      erver.gcInterval=3600000 -Dorg.jboss.resolver.warning=true -server    -Djava.end

      orsed.dirs="C:\tibco\jboss5.1\lib\endorsed" -DMQ_HOME="C:\tibco\cim\8.2" -DMQ_LO

      G="C:\tibco\cim\8.2\log" -DOS="Windows_NT" -DMQ_COMMON_DIR="C:\tibco\cim\8.2\com

      mon" -DAS_HOME="C:\tibco\cim\8.2\bin\as" -DMQ_CONFIG_FILE="C:\tibco\cim\8.2\conf

      ig\ConfigValues.xml" -DLD_LIBRARY_PATH="" -DNODE_ID="Member1" -DPATH="C:\JDK1.6\

      bin;C:\tibco\ems\6.1\bin;C:\tibco\jboss5.1\bin;C:\app\kanumuri\product\11.2.0\db

      home_1\bin;C:\tibco\cim\8.2\bin\as\bin;C:\tibco\cim\8.2\bin\as\lib;C:\tibco\cim\

      8.2\bin\as\lib\as-common.jar;C:\app\kanumuri\product\11.2.0\dbhome_1\bin;C:\tibc

      o\tibrv\8.3\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windo

      ws\System32\WindowsPowerShell\v1.0\" -Dcom.sun.management.jmxremote -Dtangosol.c

      oherence.management=all -Dtangosol.coherence.management.remote=true -Dcom.sun.ma

      nagement.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -

      Dcom.sun.management.jmxremote.port=9999    -classpath "C:\tibco\jboss5.1\bin\run

      .jar"    org.jboss.Main -c CIM -b 0.0.0.0

      Usage: java [-options] class [args...]

                 (to execute a class)

         or  java [-options] -jar jarfile [args...]

                 (to execute a jar file)

       

       

      where options include:

          -server       to select the "server" VM

          -hotspot      is a synonym for the "server" VM  [deprecated]

                        The default VM is server.

       

       

          -cp <class search path of directories and zip/jar files>

          -classpath <class search path of directories and zip/jar files>

                        A ; separated list of directories, JAR archives,

                        and ZIP archives to search for class files.

          -D<name>=<value>

                        set a system property

          -verbose[:class|gc|jni]

                        enable verbose output

          -version      print product version and exit

          -version:<value>

                        require the specified version to run

          -showversion  print product version and continue

          -jre-restrict-search | -jre-no-restrict-search

                        include/exclude user private JREs in the version search

          -? -help      print this help message

          -X            print help on non-standard options

          -ea[:<packagename>...|:<classname>]

          -enableassertions[:<packagename>...|:<classname>]

                        enable assertions

          -da[:<packagename>...|:<classname>]

          -disableassertions[:<packagename>...|:<classname>]

                        disable assertions

          -esa | -enablesystemassertions

                        enable system assertions

          -dsa | -disablesystemassertions

                        disable system assertions

          -agentlib:<libname>[=<options>]

                        load native agent library <libname>, e.g. -agentlib:hprof

                          see also, -agentlib:jdwp=help and -agentlib:hprof=help

          -agentpath:<pathname>[=<options>]

                        load native agent library by full pathname

          -javaagent:<jarpath>[=<options>]

                        load Java programming language agent, see java.lang.instrument

       

       

          -splash:<imagepath>

                        show splash screen with specified image

       

       

      C:\tibco\jboss5.1\bin>if ERRORLEVEL 10 goto RESTART

       

       

      C:\tibco\jboss5.1\bin>if "x" == "x" pause

      Press any key to continue . . .

      +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++


        • 1. Re: Error while starting Jboss Server via run.bat –c CIM –b 0.0.0.0
          peterj

          Wow, this one was really subtle!

           

          Recall that with Java, a backslask is often treated as an escape character. Well, the "\" at the end of "C:\Windows\System32\WindowsPowerShell\v1.0\" was treated as an escape character, thus the launcher (java.exe) ignored the quote that should have ended the -DPATH= parameter, thus making the entire rest of the command part of the path.

           

          To fix this, go into your PATH and remove the offending backslash, or more the PowerShell location to another place in your path.

           

          (I just checked my PATH. It also has a "\" at the end of PowerShell. I'm amazed that noone has run into this before. But then most people add a PATH to their user env vars, often to add JAVA_HOME\bin, and that PATH gets added to the end of the system PATH.)

          • 2. Re: Error while starting Jboss Server via run.bat –c CIM –b 0.0.0.0
            kanji1981

            Hi Peter,

             

            Thanks a bunch for your reply.

             

            As per you suggestion i have made follwing changes to my PATH in system variables. I just changed the place of shell path and removed "\". and also i added C:\Java\bin path to my user variables. Finally it's working and i can able to login to my application. Thank you so much.

             

            Original

             

            %JAVA_HOME%\bin;%EMS_HOME%\bin;%JBOSS_HOME%\bin;%ORACLE_HOME%\bin;%AS_HOME%\bin;%AS_HOME%\lib;%AS_HOME%\lib\as-common.jar;C:\app\kanumuri\product\11.2.0\dbhome_1\bin;C:\tibco\tibrv\8.3\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\

             

            New

             

            %JAVA_HOME%\bin;%EMS_HOME%\bin;%JBOSS_HOME%\bin;%ORACLE_HOME%\bin;%AS_HOME%\bin;%AS_HOME%\lib;%AS_HOME%\lib\as-common.jar;C:\app\kanumuri\product\11.2.0\dbhome_1\bin;C:\tibco\tibrv\8.3\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\Wbem

             

            Thanks

            Veera.