Tomcat parameter with JZOS

General discussion on the JZOS batch launcher and toolkit
Post Reply
philippe
Posts: 2
Joined: Tue Sep 20, 2005 7:11 am

Tomcat parameter with JZOS

Post by philippe »

I try to use JFreechart with Tomcat but I have to specify
setenv CATALINA_OPTS -Djava.awt.headless=true in the catalina.sh script
to avoid problem with X11.
How can i specify this with JZOS ?

Please Help !
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Post by dovetail »

The CATALINA_OPTS environment variable is used by the catalina shell scripts to configure options for the java commandline. "-D" options are used by (any) JVM to set Java system properties.

In the JZOS batch launcher, you can set JVM options using the IBM_JAVA_OPTIONS environment variable.

In the following script fragment from the sample Tomcat JCL (TC13), I've added a line to set this option:



IJO="-Xms64m -Xmx128m"
IJO="$IJO -Djzos.home=${JZOS_HOME}"
IJO="$IJO -Dfile.encoding=ISO8859-1"
IJO="$IJO -Dcatalina.base=${TOMCAT_HOME}"
IJO="$IJO -Dcatalina.home=${TOMCAT_HOME}"
IJO="$IJO -Djava.io.tmpdir=${TOMCAT_HOME}/temp"
IJO="$IJO -Djava.endorsed.dirs="
IJO="${IJO}${TOMCAT_HOME}/common/endorsed"
IJO="$IJO -Djava.awt.headless=true"
export IBM_JAVA_OPTIONS="$IJO "


It would probably be a good idea if our sample JCL had this setting, since its a pretty common requirement when running Tomcat.
philippe
Posts: 2
Joined: Tue Sep 20, 2005 7:11 am

Post by philippe »

Thank you for your quick reply.
Everything works fine :D
Post Reply