//T JOB (),'TOMCAT',MSGCLASS=H,NOTIFY=&SYSUID //PROCLIB JCLLIB ORDER=&SYSUID..JZOS.JCL //* //********************************************************************* //* //* Batch job to run Tomcat under JZOS //* //* Tailor the proc and job for your installation: //* 1.) Modify the Job card per your installation's requirements //* 2.) Modify the PROCLIB card to point to JZOS proclib //* 3.) Set VERSION='14' for Java 1.4 or VERSION='50' for Java 5 //* 4.) Set JZOS_HOME to point to the hfs directory where JZOS //* was installed //* 5.) Set JAVA_HOME to point the location of the Java SDK //* 6.) Set CATALINA_HOME to point to the shared Tomcat install dir //* 7.) (Optional) set CATALINA_BASE to point to instance specific //* Tomcat base dir //* //********************************************************************* //* //JAVA EXEC PROC=EXJZOSVM,VERSION='50', //* LOGLVL='+D', // JAVACLS='org.apache.catalina.startup.Bootstrap', // ARGS='start' //STDENV DD * # This is a shell script which configures # any environment variables for the Java JVM. # Variables must be exported to be seen by the launcher. . /etc/profile export JZOS_HOME= export JAVA_HOME= CATALINA_HOME= CATALINA_BASE=${CATALINA_HOME} export PATH=/bin:"${JAVA_HOME}"/bin: LIBPATH=/lib:/usr/lib:"${JAVA_HOME}"/bin LIBPATH="$LIBPATH":"${JAVA_HOME}"/bin/classic LIBPATH="$LIBPATH":"${JZOS_HOME}" export LIBPATH="$LIBPATH": CLASSPATH="${JAVA_HOME}/lib/tools.jar" CLASSPATH="$CLASSPATH":"${CATALINA_HOME}/bin/bootstrap.jar" CLASSPATH="$CLASSPATH":"${CATALINA_HOME}/bin/commons-logging-api.jar" CLASSPATH="$CLASSPATH":"${JZOS_HOME}/jzos.jar" export CLASSPATH="$CLASSPATH": # Set JZOS specific options # Use this variable to specify encoding for DD STDOUT and STDERR #export JZOS_OUTPUT_ENCODING=Cp1047 # Use this variable to prevent JZOS from handling MVS operator commands #export JZOS_ENABLE_MVS_COMMANDS=false # Use this variable to supply additional arguments to main #export JZOS_MAIN_ARGS="" # Configure JVM options # Note that Tomcat requires default ASCII file.encoding IJO="-Xms64m -Xmx128m" IJO="$IJO -Djzos.home=${JZOS_HOME}" IJO="$IJO -Dfile.encoding=ISO8859-1" IJO="$IJO -Dcatalina.base=${CATALINA_BASE}" IJO="$IJO -Dcatalina.home=${CATALINA_HOME}" IJO="$IJO -Djava.io.tmpdir=${CATALINA_BASE}/temp" IJO="$IJO -Djava.endorsed.dirs=" IJO="${IJO}${CATALINA_HOME}/common/endorsed" # Configure SDK5.0 to use shared classes (at group level) # You must comment this out if you are not running SDK 5 groupname=`id -gn` #IJO="$IJO -Xshareclasses:name=$groupname,groupAccess" export IBM_JAVA_OPTIONS="$IJO " export JAVA_DUMP_HEAP=false export JAVA_PROPAGATE=NO export IBM_JAVA_ZOS_TDUMP=NO //