Start of changes to allow service to run with tomcat6 and Sun Java6.
This commit is contained in:
@@ -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/CasaAuthPolicyEditor.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/CasaAuthPolicyEditor.jar $*
|
||||
else
|
||||
# Perform the operation requested
|
||||
$JAVA_HOME/bin/java -jar /usr/share/java/CASA/authtoken/bin/CasaAuthPolicyEditor.jar $*
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user