child process exited with exit code 1 (JZOSVM - failed,)

General discussion on the JZOS batch launcher and toolkit
Post Reply
coz
Posts: 392
Joined: Fri Jul 30, 2004 5:29 pm

Post by coz »

This may be a problem with the PATH environment variable in the 1.1.2 JCL. Try replacing:

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

with:

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

And let me know if that takes care of the problem.
Guest

Post by Guest »

Hello, jzos support.

Unfortunately, even though I followed your guide, the result was same.
Please, guide me how can I pursue this.

Best Regards, SK.
dovetail
Site Admin
Posts: 2025
Joined: Thu Jul 29, 2004 12:12 pm

Post by dovetail »

According to the information, the shell (whose input is taken from //STDENV) is exiting with a exitcode of 1.

This could be caused by a failure in launching /bin/sh (what we first suspected), or it could be that it is just a typo or bug in the shell script itself.

Here are a couple of suggestions:

1) Try executing the shell script contents of //STDENV as a stand-alone shell script under Unix System Services, to make sure that there are no bugs in the script.

2) Try adding the following line to the beginning of the shell:
set -x

This will cause the shell to outout a trace... the JZOS trace output should display this (assuming that it is getting this far).
Guest

Post by Guest »

Hello, support.
As your guide, I copy & paste the //STDENV part into jzos14.sh under USS. Also, I added set -x in the beginning of this shell script.
In addition, I added 3 lines at end of this script.
java -version
java -fullversion
java com.dovetail.jzos.testing.HelloWorld
.
As you can see below my result, the shecll script run successfully without any error including above 3 java commands
.
SKCHUNG:/WebSphere/ZSW1/myTest:>sh jzos14.sh
+ export JZOS_HOME=/WebSphere/JzOS/jzos
+ export JAVA_HOME=/WebSphere/PROD_WAS510/usr/lpp/java/J1.4
+ export PATH=/bin:/WebSphere/PROD_WAS510/usr/lpp/java/J1.4/bin:
+ LIBPATH=/lib:/usr/lib:/WebSphere/PROD_WAS510/usr/lpp/java/J1.4/bin
+ LIBPATH=/lib:/usr/lib:/WebSphere/PROD_WAS510/usr/lpp/java/J1.4/bin:/WebSphere/PROD_WAS510/usr/lpp/java/J1.4/bin/classic
+ LIBPATH=/lib:/usr/lib:/WebSphere/PROD_WAS510/usr/lpp/java/J1.4/bin:/WebSphere/PROD_WAS510/usr/lpp/java/J1.4/bin/classic:/WebSpher
+ export LIBPATH=/lib:/usr/lib:/WebSphere/PROD_WAS510/usr/lpp/java/J1.4/bin:/WebSphere/PROD_WAS510/usr/lpp/java/J1.4/bin/classic:/W
+ CLASSPATH=
+ CLASSPATH=:/WebSphere/JzOS/jzos/application.jar
+ CLASSPATH=:/WebSphere/JzOS/jzos/application.jar:/WebSphere/JzOS/jzos/junit.jar
+ CLASSPATH=:/WebSphere/JzOS/jzos/application.jar:/WebSphere/JzOS/jzos/junit.jar:/WebSphere/JzOS/jzos/jzos.jar
+ CLASSPATH=:/WebSphere/JzOS/jzos/application.jar:/WebSphere/JzOS/jzos/junit.jar:/WebSphere/JzOS/jzos/jzos.jar:/WebSphere/JzOS/jzos
+ export CLASSPATH=:/WebSphere/JzOS/jzos/application.jar:/WebSphere/JzOS/jzos/junit.jar:/WebSphere/JzOS/jzos/jzos.jar:/WebSphere/Jz
+ IJO=-Xms16m -Xmx128m
+ IJO=-Xms16m -Xmx128m -Djzos.home=/WebSphere/JzOS/jzos
+ export IBM_JAVA_OPTIONS=-Xms16m -Xmx128m -Djzos.home=/WebSphere/JzOS/jzos
+ export JAVA_DUMP_HEAP=false
+ export JAVA_PROPAGATE=NO
+ export IBM_JAVA_ZOS_TDUMP=NO
+ java -fullversion
java full version "J2RE 1.4.2 IBM z/OS Persistent Reusable VM build cm142sr1a-20050209"
+ java -version
java version "1.4.2"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2)
Classic VM (build 1.4.2, J2RE 1.4.2 IBM z/OS Persistent Reusable VM build cm142sr1a-20050209 (JIT enabled: jitc))
+ java com.dovetail.jzos.testing.HelloWorld
Hello World! (stdout)
Hello World! (stderr)
SKCHUNG:/WebSphere/ZSW1/myTest:>
Post Reply