[jboss-user] problem in starting jboss AS 5.1.0.GA

Sandhya Sree sandhyachinnaraj at gmail.com
Tue Apr 1 14:20:19 EDT 2014


Hi..

i get the following error when i try run.bat

C:\apps\Jboss\jboss-5.1.0.GA\bin>rem ### -*- batch file -*-
####################
##################################

C:\apps\Jboss\jboss-5.1.0.GA\bin>rem #
                                ##

C:\apps\Jboss\jboss-5.1.0.GA\bin>rem #  JBoss Bootstrap Script Configuration
                                ##

C:\apps\Jboss\jboss-5.1.0.GA\bin>rem #
                                ##

C:\apps\Jboss\jboss-5.1.0.GA\bin>rem
###########################################
##################################

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

C:\apps\Jboss\jboss-5.1.0.GA\bin>rem #

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

C:\apps\Jboss\jboss-5.1.0.GA\bin>rem # variables that run.bat uses. It is
recomm
ended to use this file to

C:\apps\Jboss\jboss-5.1.0.GA\bin>rem # configure these variables, rather
than mo
difying run.bat itself.

C:\apps\Jboss\jboss-5.1.0.GA\bin>rem #

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

C:\apps\Jboss\jboss-5.1.0.GA\bin>rem #

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

C:\apps\Jboss\jboss-5.1.0.GA\bin>rem #

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

C:\apps\Jboss\jboss-5.1.0.GA\bin>rem #

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

C:\apps\Jboss\jboss-5.1.0.GA\bin>rem #

C:\apps\Jboss\jboss-5.1.0.GA\bin>rem # Specify the location of the Java
home dir
ectory (it is recommended that

C:\apps\Jboss\jboss-5.1.0.GA\bin>rem # this always be set). If set, then
"C:\Jav
a\jdk1.6.0_37\bin\java" will be used as

C:\apps\Jboss\jboss-5.1.0.GA\bin>rem # the Java VM executable; otherwise,
"" wil
l be used (see below).

C:\apps\Jboss\jboss-5.1.0.GA\bin>rem #

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

C:\apps\Jboss\jboss-5.1.0.GA\bin>rem #

C:\apps\Jboss\jboss-5.1.0.GA\bin>rem # Specify the exact Java VM executable
to u
se - only used if JAVA_HOME is

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

C:\apps\Jboss\jboss-5.1.0.GA\bin>rem #

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

C:\apps\Jboss\jboss-5.1.0.GA\bin>rem #

C:\apps\Jboss\jboss-5.1.0.GA\bin>rem # Specify options to pass to the Java
VM. N
ote, there are some additional

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

C:\apps\Jboss\jboss-5.1.0.GA\bin>rem #

C:\apps\Jboss\jboss-5.1.0.GA\bin>rem # JVM memory allocation pool
parameters - m
odify as appropriate.

C:\apps\Jboss\jboss-5.1.0.GA\bin>set "JAVA_OPTS=-Xms128M -Xmx512M
-XX:MaxPermSiz
e=256M"

C:\apps\Jboss\jboss-5.1.0.GA\bin>rem # Reduce the RMI GCs to once per hour
for S
un JVMs.

C:\apps\Jboss\jboss-5.1.0.GA\bin>set "JAVA_OPTS=-Xms128M -Xmx512M
-XX:MaxPermSiz
e=256M -Dsun.rmi.dgc.client.gcInterval=3600000
-Dsun.rmi.dgc.server.gcInterval=3
600000"

C:\apps\Jboss\jboss-5.1.0.GA\bin>rem # Warn when resolving remote XML DTDs
or sc
hemas.

C:\apps\Jboss\jboss-5.1.0.GA\bin>set "JAVA_OPTS=-Xms128M -Xmx512M
-XX:MaxPermSiz
e=256M -Dsun.rmi.dgc.client.gcInterval=3600000
-Dsun.rmi.dgc.server.gcInterval=3
600000 -Dorg.jboss.resolver.warning=true"

C:\apps\Jboss\jboss-5.1.0.GA\bin>rem # Sample JPDA settings for remote
socket de
bugging

C:\apps\Jboss\jboss-5.1.0.GA\bin>rem set "JAVA_OPTS=-Xms128M -Xmx512M
-XX:MaxPer
mSize=256M -Dsun.rmi.dgc.client.gcInterval=3600000
-Dsun.rmi.dgc.server.gcInterv
al=3600000 -Dorg.jboss.resolver.warning=true
-Xrunjdwp:transport=dt_socket,addre
ss=8787,server=y,suspend=n"

C:\apps\Jboss\jboss-5.1.0.GA\bin>rem # Sample JPDA settings for shared
memory de
bugging

C:\apps\Jboss\jboss-5.1.0.GA\bin>rem set "JAVA_OPTS=-Xms128M -Xmx512M
-XX:MaxPer
mSize=256M -Dsun.rmi.dgc.client.gcInterval=3600000
-Dsun.rmi.dgc.server.gcInterv
al=3600000 -Dorg.jboss.resolver.warning=true
-Xrunjdwp:transport=dt_shmem,addres
s=jboss,server=y,suspend=n"

C:\apps\Jboss\jboss-5.1.0.GA\bin>pushd C:\apps\Jboss\jboss-5.1.0.GA\bin\..

C:\apps\Jboss\jboss-5.1.0.GA>if "xC:\apps\Jboss\jboss-5.1.0.GA" == "x" (set
"JBO
SS_HOME=C:\apps\Jboss\jboss-5.1.0.GA" )

C:\apps\Jboss\jboss-5.1.0.GA>popd

C:\apps\Jboss\jboss-5.1.0.GA\bin>set DIRNAME=

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

C:\apps\Jboss\jboss-5.1.0.GA\bin>if "x-Xms128M -Xmx512M
-XX:MaxPermSize=256M -Ds
un.rmi.dgc.client.gcInterval=3600000
-Dsun.rmi.dgc.server.gcInterval=3600000 -Do
rg.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=360
0000 -Dorg.jboss.resolver.warning=true" )

C:\apps\Jboss\jboss-5.1.0.GA\bin>if "xC:\Java\jdk1.6.0_37" == "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:\Java\jdk1.6.0_37\bin\java"
 if exist "C:\Java\jdk1.6.0_37\lib\tools.jar" (set
"JAVAC_JAR=C:\Java\jdk1.6.0_3
7\lib\tools.jar" )
)

C:\apps\Jboss\jboss-5.1.0.GA\bin>rem Add -server to the JVM options, if
supporte
d

C:\apps\Jboss\jboss-5.1.0.GA\bin>"C:\Java\jdk1.6.0_37\bin\java" -server
-version
   2>&1  | findstr /I hotspot  1>nul

C:\apps\Jboss\jboss-5.1.0.GA\bin>if not errorlevel 1 (set
JAVA_OPTS=-Dprogram.na
me=run.bat -Xms128M -Xmx512M -XX:MaxPermSize=256M
-Dsun.rmi.dgc.client.gcInterva
l=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000
-Dorg.jboss.resolver.warning=t
rue -server )

C:\apps\Jboss\jboss-5.1.0.GA\bin>rem Set Java platform if 64-Bit JVM used

C:\apps\Jboss\jboss-5.1.0.GA\bin>set JAVA_PLATFORM=

C:\apps\Jboss\jboss-5.1.0.GA\bin>"C:\Java\jdk1.6.0_37\bin\java" -version
2>&1
 | findstr /I "64-Bit ^| x86_64"  1>nul

C:\apps\Jboss\jboss-5.1.0.GA\bin>if not errorlevel 1 (if /I "AMD64" ==
"IA64" (s
et JAVA_PLATFORM=i64 )  else if /I "AMD64" == "AMD64" (set
JAVA_PLATFORM=x64 )
else if /I "AMD64" == "x64" (set JAVA_PLATFORM=x64 )  else if /I "" ==
"IA64" (s
et JAVA_PLATFORM=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:\apps\Jboss\jboss-5.1.0.GA\bin>if "xx64" == "x" set JAVA_PLATFORM=x86

C:\apps\Jboss\jboss-5.1.0.GA\bin>rem Add native to the PATH if present

C:\apps\Jboss\jboss-5.1.0.GA\bin>set JBOSS_NATIVE_LOC=

C:\apps\Jboss\jboss-5.1.0.GA\bin>if exist "C:\apps\Jboss\jboss-5.1.0.GA
\bin\META
-INF\lib\windows-x64" (set "JBOSS_NATIVE_HOME=C:\apps\Jboss\jboss-5.1.0.GA
\bin\M
ETA-INF\lib\windows-x64" )  else if exist "C:\apps\Jboss\jboss-5.1.0.GA
\bin\nati
ve" (set "JBOSS_NATIVE_HOME=C:\apps\Jboss\jboss-5.1.0.GA\bin\native" )
\Git\bin";"C:\Program was unexpected at this time.
C:\apps\Jboss\jboss-5.1.0.GA\bin>  set
"PATH=;C:\Windows\system32;C:\Windows;C:\
Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program
Fil
es\ThinkPad\Bluetooth Software\;C:\Program Files\ThinkPad\Bluetooth
Software\sys
wow64;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files
(x86)
\Intel\OpenCL SDK\2.0\bin\x64;C:\Program
Files\apache-maven-3.1.1\bin;"C:\Progra
m Files (x86)\Git\bin";"C:\Program
Files\ant\bin";C:\Windows\system32;C:\Windows
;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program
 Files\ThinkPad\Bluetooth Software\;C:\Program Files\ThinkPad\Bluetooth
Software
\syswow64;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program
Files (
x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program
Files\apache-maven-3.1.1\bin;"C:\Pr
ogram Files (x86)\Git\bin";"C:\Program
Files\ant\bin";C:\Java\jdk1.6.0_37;C:\Pro
gram Files\apache-maven-3.1.1\bin;C:\apps\Jboss\jboss-5.1.0.GA
\bin;C:\apps\Jboss
\jboss-5.1.0.GA\bin"
C:\apps\Jboss\jboss-5.1.0.GA\bin>


i have set JAVA_HOME and JBOSS_HOME without spaces in their path names..
kindly let me know what changes should i make to run.bat to start the
server.

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20140401/2b3ed6c4/attachment-0001.html 


More information about the jboss-user mailing list