FTP-SSH proxy install

General discussion on the JZOS batch launcher and toolkit
Post Reply
cmcgavic
Posts: 14
Joined: Wed Jul 07, 2010 1:55 pm
Location: Louisville, Ky

FTP-SSH proxy install

Post by cmcgavic » Mon Mar 05, 2012 2:07 pm

Trying to run the JZOS and get the following:

JVMJZBL1001N JZOS batch Launcher Version: 2.4.0 2010-11-16
JVMJZBL1002N Copyright (C) IBM Corp. 2005. All rights reserved.
java version "1.6.0"
Java(TM) SE Runtime Environment (build 20110418_80450)
IBM J9 VM (build 2.6, JRE 1.6.0 z/OS s390-31 20110418_80450 (JIT enabled, AOT enabled)
J9VM - R26_Java626_GA_FP1_20110418_1915_B80450
JIT - r11_20110215_18645ifx8
GC - R26_Java626_GA_FP1_20110418_1915_B80450
J9CL - 20110418_80450)
JVMJZBL1023N Invoking com.dovetail.ftpsshproxy.ProxyServer.main()...
JVMJZBL2008E Could not find or load class: com.dovetail.ftpsshproxy.ProxyServer
JVMJZBL2007E Stack trace follows:
java.lang.NoClassDefFoundError: com.dovetail.ftpsshproxy.ProxyServer
Caused by: java.lang.ClassNotFoundException: com.dovetail.ftpsshproxy.ProxyServer
.at java.net.URLClassLoader.findClass(URLClassLoader.java:434)
.at java.lang.ClassLoader.loadClass(ClassLoader.java:646)
.at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:358)
.at java.lang.ClassLoader.loadClass(ClassLoader.java:612)

JVMJZBL1047W JZOS batch launcher completed with Java exception, return code=100

JCL:
//FTPSSH JOB 1234,'CHRIS MCGAVIC',MSGCLASS=A,CLASS=A,NOTIFY=&SYSUID
//*********************************************************************
//*
//* Sample job to run Co:Z ftpsshproxy
//*
//* Tailor the proc and job for your installation:
//* 1.) Modify the Job card per your installation's requirements
//* 2.) Add PROCLIB card if needed to point to JVMPRC61 proc
//* 3.) Modify JAVA_HOME to point the location of the SDK
//* 4.) Modify APP_HOME to point to the location of ftpsshproxy.jar
//*
//* Note: this JCL may also be converted to run as a started task
//*********************************************************************
//JAVA EXEC PROC=JVMPRC61, <-- the IBM SDK JZOS proc
// JAVACLS='com.dovetail.ftpsshproxy.ProxyServer',
// ARGS='-h 127.0.0.1:1080' <- listen on loopback interface, port 1080
//* ARGS='-h 1080' <- listen on all interfaces, port 1080 (default)
//*
//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

# Modify these two lines to match your installation:
COZ_HOME=/usr/local/ftpsshproxy
export JAVA_HOME=/usr/lpp/java/J6.0.1

export PATH=/bin:"${JAVA_HOME}"/bin:
LIBPATH=/lib:/usr/lib:"${JAVA_HOME}"/bin
LIBPATH="$LIBPATH":"${JAVA_HOME}"/bin/classic
export LIBPATH="$LIBPATH":

APP_HOME=$COZ_HOME/ftpsshproxy
CLASSPATH=$APP_HOME
# Add Application required jars to end of CLASSPATH
for i in "${APP_HOME}"/*.jar; do
CLASSPATH="$CLASSPATH":"$i"
done
export CLASSPATH="$CLASSPATH":

# Configure JVM options
IJO="-Xms16m -Xmx128m"
# A default encoding of ISO8859-1 is required
IJO="$IJO -Dfile.encoding=ISO8859-1"
export IBM_JAVA_OPTIONS="$IJO "

//

I'm sure it's something simple, but I'm not a Java guy, only a lowly z/OS Sys Pro. I have the FTP-SSH proxy installed on USS and simply attempting to use the Batch jcl to start the proxy.

Any direction is appreciated....

cmcgavic
Posts: 14
Joined: Wed Jul 07, 2010 1:55 pm
Location: Louisville, Ky

Re: FTP-SSH proxy install

Post by cmcgavic » Mon Mar 05, 2012 5:41 pm

This has been resolved. I had the ftpsshproxy folder in COZ_HOME and all I needed was /usr/local because ftpsshproxy is appended at the variable level.

COZ_HOME=/usr/local
export JAVA_HOME=/usr/lpp/java/J6.0.1

export PATH=/bin:"${JAVA_HOME}"/bin:
LIBPATH=/lib:/usr/lib:"${JAVA_HOME}"/bin
LIBPATH="$LIBPATH":"${JAVA_HOME}"/bin/classic
export LIBPATH="$LIBPATH":

APP_HOME=$COZ_HOME/ftpsshproxy

Post Reply