Dear Sir,
I am using jzos version 1.1.1, my java programs use JDBC type 2 driver.
I keep got the following errors,( I added the "+I" to display more info)
JZOSVM14(N): Java Virtual Machine created. Version information follows:
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 cm142-
JZOSVM14(I): Using output encoding: 'IBM-1047'
JZOSVM14(I): MVS commands are ENABLED
Exception exceptionFailure in loading T2 native library db2jcct2
Could not load dll : /usr/lpp/db2810/jcc/lib/libdb2jcct2.so
: EDC5157I An internal error has occurred.
1) I don't have this error when I switch to JDBC type 4 driver, I am sure the library path is correct
2) when I run this program from command line insteaf of thru jzos, it run successfully.
Does that means JZOS can not support JDBC type2 driver ?
Failure in loading T2 native library db2jcct2
The type-2 jdbc drivers use dlls (.so shared libraries) that are in your LIBPATH, but these dlls have alias entries which reference the DB2 load module libraries. Under a USS shell, the "STEPLIB" environment variable points to any normal MVS libraries but under a batch job the STEPLIB variable is not used.... you have to put an actual //STEPLIB DD in your job.
Are you running JDBC under Tomcat? If so, you can take a look at the TCJDBC13 or TCJDBC14 sample JCL. If you are not running under Tomcat, you just need to add the DD statements and environment variable settings for JDBC to your batch JZOS launcher job.
Are you running JDBC under Tomcat? If so, you can take a look at the TCJDBC13 or TCJDBC14 sample JCL. If you are not running under Tomcat, you just need to add the DD statements and environment variable settings for JDBC to your batch JZOS launcher job.