RC 121

General discussion on the JZOS batch launcher and toolkit
Post Reply
Guy Hughes

RC 121

Post by Guy Hughes »

Can anyone see an issue with this :

10:31:40 JZOSVM13(N): log level has been set to: T
10:31:40 JZOSVM13(T): -> JzosVM()
10:31:40 JZOSVM13(N): Copyright (C) 2004 Dovetailed Technologies LLC. All rights reserved.
10:31:40 JZOSVM13(N): JZOS Version 1.2.1
10:31:40 JZOSVM13(T): <- JzosVM()
10:31:40 JZOSVM13(T): -> run()
10:31:40 JZOSVM13(I): Region requested = 0K, Actual below/above limit = 8192K / 1024M
10:31:40 JZOSVM13(T): -> adoptEnvironment()
10:31:41 JZOSVM13(T): Writing shell script to child's stdin:
10:31:41 JZOSVM13(T): # This is a shell script which configures
10:31:41 JZOSVM13(T): # any environment variables for the Java JVM.
10:31:41 JZOSVM13(T): # Variables must be exported to be seen by the launcher.
10:31:41 JZOSVM13(T): . /etc/profile
10:31:41 JZOSVM13(T): export JZOS_HOME=/tmp/jzos/jzos
10:31:41 JZOSVM13(T): export JAVA_HOME=/usr/lpp/java/IBM/J1.3
10:31:41 JZOSVM13(T):
10:31:41 JZOSVM13(T): export PATH=/bin:"£{JAVA_HOME}"/bin:
10:31:41 JZOSVM13(T):
10:31:41 JZOSVM13(T): LIBPATH=/lib:/usr/lib:"£{JAVA_HOME}"/bin
10:31:41 JZOSVM13(T): LIBPATH="£LIBPATH":"£{JAVA_HOME}"/bin/classic
10:31:41 JZOSVM13(T): LIBPATH="£LIBPATH":"£{JZOS_HOME}"
10:31:41 JZOSVM13(T): export LIBPATH="£LIBPATH":
10:31:41 JZOSVM13(T):
10:31:41 JZOSVM13(T): # Customize your CLASSPATH here
10:31:41 JZOSVM13(T): CLASSPATH=
10:31:41 JZOSVM13(T):
10:31:41 JZOSVM13(T): # Add JZOS required jars to end of CLASSPATH
10:31:41 JZOSVM13(T): for i in "£{JZOS_HOME}"/*.jar; do
10:31:41 JZOSVM13(T): CLASSPATH="£CLASSPATH":"£i"
10:31:41 JZOSVM13(T): done
10:31:41 JZOSVM13(T): export CLASSPATH="£CLASSPATH":
10:31:41 JZOSVM13(T):
10:31:41 JZOSVM13(T): # Set JZOS specific options
10:31:41 JZOSVM13(T): # Use this variable to specify encoding for DD STDOUT and STDERR
10:31:41 JZOSVM13(T): #export JZOS_OUTPUT_ENCODING=Cp1047
10:31:41 JZOSVM13(T): # Use this variable to prevent JZOS from handling MVS operator commands
10:31:41 JZOSVM13(T): #export JZOS_ENABLE_MVS_COMMANDS=false
10:31:41 JZOSVM13(T): # Use this variable to supply additional arguments to main
10:31:41 JZOSVM13(T): #export JZOS_MAIN_ARGS=""
10:31:41 JZOSVM13(T):
10:31:41 JZOSVM13(T): # Configure JVM options
10:31:41 JZOSVM13(T): IJO="-Xms16m -Xmx128m"
10:31:41 JZOSVM13(T): IJO="£IJO -Djzos.home=£{JZOS_HOME}"
10:31:41 JZOSVM13(T): # Uncomment the following if you want to run with Ascii file encoding..
10:31:41 JZOSVM13(T): #IJO="£IJO -Dfile.encoding=ISO8859-1"
10:31:41 JZOSVM13(T): export IBM_JAVA_OPTIONS="£IJO "
10:31:41 JZOSVM13(T):
10:31:41 JZOSVM13(T): export JAVA_DUMP_HEAP=false
10:31:41 JZOSVM13(T): export JAVA_PROPAGATE=NO
10:31:41 JZOSVM13(T): export IBM_JAVA_ZOS_TDUMP=NO
10:31:41 JZOSVM13(T): waiting for child
10:31:46 JZOSVM13(T): child process exited with exit code 0
10:31:46 JZOSVM13(D): Output from DD:STDENV config shell script:
10:31:46 JZOSVM13(D): stty: !FSUMB045 failed to get termios attributes: EDC5137I Inappropriate I/O control operation.
10:31:46 JZOSVM13(T): Found environment start string
10:31:46 JZOSVM13(D): ___JZOS_ENV_START___
10:31:46 JZOSVM13(I): MAIL=/usr/mail/
10:31:46 JZOSVM13(I): JAVA_PROPAGATE=NO
10:31:46 JZOSVM13(I): PATH=/bin:/usr/lpp/java/IBM/J1.3/bin:
10:31:46 JZOSVM13(I): IBM_JAVA_ZOS_TDUMP=NO
10:31:46 JZOSVM13(I): JZOS_HOME=/tmp/jzos/jzos
10:31:46 JZOSVM13(I): IBM_JAVA_OPTIONS=-Xms16m -Xmx128m -Djzos.home=/tmp/jzos/jzos
10:31:46 JZOSVM13(I): PS1=£LOGNAME:£PWD: >
10:31:46 JZOSVM13(I): _=/bin/env
10:31:46 JZOSVM13(I): CLASSPATH=:/tmp/jzos/jzos/*.jar:
10:31:46 JZOSVM13(I): LANG=C
10:31:46 JZOSVM13(I): LIBPATH=/lib:/usr/lib:/usr/lpp/java/IBM/J1.3/bin:/usr/lpp/java/IBM/J1.3/bin/classic:/tmp/jzos/jzos
:
10:31:46 JZOSVM13(I): JAVA_DUMP_HEAP=false
10:31:46 JZOSVM13(I): JAVA_HOME=/usr/lpp/java/IBM/J1.3
10:31:46 JZOSVM13(I): TZ=GMT
10:31:46 JZOSVM13(I): MANPATH=/usr/man/%L
10:31:46 JZOSVM13(I): NLSPATH=/usr/lib/nls/msg/%L/%N
10:31:46 JZOSVM13(D): ___JZOS_ENV_STOP___
10:31:46 JZOSVM13(T): <- adoptEnvironment()
10:31:46 JZOSVM13(T): processing argvÝ2¨: com.dovetail.jzos.testing.HelloWorld
10:31:46 JZOSVM13(T): javaArgCount after processing PARM= 1
10:31:46 JZOSVM13(T): -> processExtraArgs()
10:31:46 JZOSVM13(T): No JZOS_MAIN_ARGS found
10:31:46 JZOSVM13(T): NO //DD:MAINARGS found
10:31:46 JZOSVM13(D): argBuf=''
10:31:46 JZOSVM13(T): <- processExtraArgs()
10:31:46 JZOSVM13(T): -> initializeVMArgs()
10:31:46 JZOSVM13(T): vm_args.version: 10002
10:31:47 JZOSVM13(T): Allocating JVM options
10:31:47 JZOSVM13(T): Setting exit hook option
10:31:47 JZOSVM13(T): Setting abort hook option
10:31:47 JZOSVM13(T): Getting CLASSPATH
10:31:47 JZOSVM13(T): Setting classpath option
10:31:47 JZOSVM13(T): <- initializeVMArgs()
10:31:47 JZOSVM13(T): -> createJvm()
10:31:50 JZOSVM13(N): Java Virtual Machine created. Version information follows:
10:31:50 JZOSVM13(T): -> invoke()
Could not find Class com.dovetail.jzos.ZUtil

Exception in thread "main"
10:31:52 JZOSVM13(T): <- invoke()
10:31:52 JZOSVM13(T): <- createJvm()
10:31:52 JZOSVM13(T): <- run()
10:31:52 JZOSVM13(T): -> cleanup()
10:31:52 JZOSVM13(I): Preparing to exit JVM...
10:31:52 JZOSVM13(T): -> invoke()
10:31:52 JZOSVM13(D): About to invoke java.lang.System.exit()
JZOSVM - failed. RC=121.
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Post by dovetail »

Here's the error message that matters:

Could not find Class com.dovetail.jzos.ZUtil

This is because your CLASSPATH is not set correctly. (From the log), is set to:

CLASSPATH=:/tmp/jzos/jzos/*.jar:

This is because the following line in the script couldn't find the directory:

for i in "${JZOS_HOME}"/*.jar; do

So, check to see that /tmp/jzos/jzos is where the JZOS_HOME directory is really located.
Guy Hughes

Post by Guy Hughes »

Hello,

/tmp/jzos/jzos is where JZOS is installed...I passed this to one of our developers who fixed it; he wrote :

It seems that the "unix script" embedded in the sample JCL dosent seem
to want to work on our installation. I'm not sure why. It is a simple
change to get it working, and it has to do with the FOR loop that is in
the script looking for .jar files in the jzos installation folder. There
must be a simple typo there somewhere but I couldn't find it. Anyways,
there is only one jar file need so I referenced it directly.

Thanks
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Post by dovetail »

We have been distributing this configuration script in the sample JCL for some time and this is the first report of a problem. Check to make sure that your job's unix userid has both read and execute permission to the directory.

From: http://www.unix.org.ua/orelly/networkin ... h05_04.htm
If you have execute access to a directory but do not have read access, you cannot list the names of files in the directory (e.g., you cannot read the contents of the directory). However, if you have access to individual files, you can run programs in the directory or open files in it. Some sites use this technique to create secret files - files that users can access only if they know the files' names.
Post Reply