problem in starting jboss AS 5.1.0.GA
by Sandhya Sree
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(a)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.
9 years, 11 months
Problems with JBoss 4.2, MySQL and XAResources
by Juliano DeCarvalho
Hello all,
I apologize if this is not the correct place to ask this question, and if
not please let me know where I can submit this instead. We are having some
intermittent problems with JBoss 4.2, MySQL and XAResources. Every few
days our servers crash because the application is unable to get new MySQL
connections. Here is a portion of the exception:
-------------------
2014-04-09 06:26:16,640 ERROR
[com.linebuster.server.ServiceTransactionManagerBean] (http-[OMITTED])
System exception
java.lang.RuntimeException: javax.transaction.RollbackException:
[com.arjuna.ats.internal.jta.transaction.arjunacore.commitwhenaborted]
[com.arjuna.ats.internal.jta.transaction.arjunacore.commitwhenaborted]
Can't commit because the transaction is in aborted state
at
org.jboss.aspects.tx.TxPolicy.handleEndTransactionException(TxPolicy.java:198)
at org.jboss.aspects.tx.TxPolicy.endTransaction(TxPolicy.java:180)
[SNIP]
Caused by: javax.transaction.RollbackException:
[com.arjuna.ats.internal.jta.transaction.arjunacore.commitwhenaborted]
[com.arjuna.ats.internal.jta.transaction.arjunacore.commitwhenaborted]
Can't commit because the transaction is in aborted state
at
com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1401)
at
com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:135)
[SNIP]
2014-04-09 06:26:33,470 WARN [com.arjuna.ats.jta.logging.loggerI18N]
(http-[OMITTED])
[com.arjuna.ats.internal.jta.transaction.arjunacore.enliststarterror]
[com.arjuna.ats.internal.jta.transaction.arjunacore.enliststarterror]
TransactionImple.enlistResource - XAResource.start returned:
[com.arjuna.ats.jta.utils.unknownerrorcode] Unknown error code:0 for <
131075, 31, 29, 1-2e147705:aea1:534531a3:119ac42e147705:aea1:534531a3:119ac9
[SNIP]
-------------------
To me at least, this seems to occur because the DB connections we have
pooled go into the ABORT state, but I 'm not sure as to why. I don't see
any problems prior to these exceptions that would lead me to the root of
the problem. It's worth noting that this particular server does not have
heavy user loads.
I have attached a snippet of the stack trace, as well as our datasource
configurations. I tried to research the error messages, but only found a
handful of people having similar issues, and no response or replies to
their posts. We are running the following software versions:
OS: Ubuntu Linux 2.6.32-41-server (x86_64)
Java: 1.6.0_24-b07
JBoss: 4.2.3.GA
MYSQL: 5.1.63 (x86_64)
I would really appreciate any insight someone may have on this issue.
Please let me know if there's any other information you guys need at this
time. Thank you,
-Juliano DeCarvalho
10 years, 8 months