Start of changes to allow service to run with tomcat6 and Sun Java6.

This commit is contained in:
Juan Carlos Luciani
2008-07-17 17:35:59 +00:00
parent 794730a1ce
commit 98a2a66e2a
9 changed files with 304 additions and 16 deletions

View File

@@ -32,6 +32,15 @@
# Source our environment variables file
. /etc/CASA/authtoken/svc/envvars
# Perform the operation requested
$JAVA_HOME/bin/java -jar /usr/share/java/CASA/authtoken/bin/CasaIaRealmsEditor.jar $*
TEST_IBM_JVM=$($JAVA_HOME/bin/java -version 2>&1 | grep -i ibm)
# Proceed based on the JVM that we are utilizing
if [ -z "${TEST_IBM_JVM}" ]; then
# Perform the operation requested, assuming the Sun JVM in which case we need to load
# the xerces-j2 jar at boot time to avoid load class errors.
$JAVA_HOME/bin/java -Xbootclasspath/a:/usr/share/java/xerces-j2.jar -jar /usr/share/java/CASA/authtoken/bin/CasaIaRealmsEditor.jar $*
else
# Perform the operation requested
$JAVA_HOME/bin/java -jar /usr/share/java/CASA/authtoken/bin/CasaIaRealmsEditor.jar $*
fi