Running Tomcat as a Started Task with JZos

General discussion on the JZOS batch launcher and toolkit
Post Reply
Nalini
Posts: 27
Joined: Thu Dec 30, 2004 7:03 pm

Running Tomcat as a Started Task with JZos

Post by Nalini »

Hello,

I am trying to run Tomcat as a started task. The JCL runs fine as a batch job, but somehow, when I converted it to a PROC, then I keep getting errors finding the class. I have tried all kinds of things to get the classpath right, but no luck!

Would appreciate any help.

First, the error messages:

JZOSVM13(N): Copyright (C) 2004 Dovetailed Technologies LLC. All rights reserved.
JZOSVM13(N): JZOS Version 1.2.0
JZOSVM13(N): Java Virtual Machine created. Version information follows:
java version "1.3.1"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1)
Classic VM (build 1.3.1, J2RE 1.3.1 IBM OS/390 Persistent Reusable VM build cm131s-20030418 (JIT enabled: jitc))
JZOSVM13(N): Invoking JAVACLS=bin.org.apache.catalina.startup.Bootstrap.main()
Could not find Class JAVACLS=bin.org.apache.catalina.startup.Bootstrap

Exception in thread "main"
JZOSVM - failed. RC=121.
java.lang.NoClassDefFoundError: JAVACLS=bin/org/apache/catalina/startup/Bootstrap


Now, the PROC:

//TOMCAT PROC
//********************************************************************
//* THIS PROC STARTS THE tomcat SERVER
//********************************************************************
//IEFPROC EXEC PGM=JZOSVM13,REGION=0M,
// PARM='JAVACLS=bin.org.apache.catalina.startup.Bootstrap'
//STEPLIB DD DSN=INSIDE1.JZOS.LOADLIB,DISP=SHR
//STDENV DD DSN=INSIDE1.ITS.CNTL(CLOUDTOM),DISP=SHR
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//STDOUT DD SYSOUT=*
//STDERR DD SYSOUT=*
//CEEDUMP DD SYSOUT=*
//ABNLIGNR DD DUMMY


Now, the ENV:

export JZOS_HOME=/u/inside1/jzos
export JAVA_HOME=/usr/lpp/java/IBM/J1.3
TOMCAT_HOME=/u/inside1

export PATH="$PATH":"${JAVA_HOME}"/bin:

LIBPATH="$LIBPATH":"${JAVA_HOME}"/bin
LIBPATH="$LIBPATH":"${JAVA_HOME}"/bin/classic
LIBPATH="$LIBPATH":"${JZOS_HOME}"
export LIBPATH="$LIBPATH":

CLASSPATH="${JAVA_HOME}/lib/tools.jar"
CLASSPATH="$CLASSPATH":"${TOMCAT_HOME}/bin/bootstrap.jar"
CLASSPATH="$CLASSPATH":"${TOMCAT_HOME}/derby"
CLASSPATH="$CLASSPATH":"${JZOS_HOME}/jzos.jar"
export CLASSPATH="$CLASSPATH":











IJO="-Xms128m -Xmx512m"
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 -Dderby.system.home="
IJO="${IJO}${TOMCAT_HOME}/common/endorsed"
export IBM_JAVA_OPTIONS="$IJO "

export JAVA_DUMP_HEAP=false
export JAVA_PROPAGATE=NO
export IBM_JAVA_ZOS_TDUMP=NO
//

Thanks very much!

Nalini Elkins
Inside Products, Inc.
(831) 659-8360
dovetail
Site Admin
Posts: 2025
Joined: Thu Jul 29, 2004 12:12 pm

Post by dovetail »

Try re-running with LOGLVL="+T" and double check that the correct CLASSPATH is being setup for Tomcat. If you still need assistance, please post the log and we'll take a look.
Post Reply