Troubleshooting
Problem
When you start WebSphere Adapter for SAP on an i5/OS V5R4 system, a runtime exception is thrown. This occurs even though you have added the sapjco.jar file into the
Symptom
The stacktrace in the trace file will look like the following example:
com.ibm.ws.exception.RuntimeWarning:
com.ibm.ws.exception.RuntimeWarning:
javax.resource.ResourceException:
java.lang.ExceptionInInitializerError: JCO.classInitialize(): Could not load middleware layer 'com.sap.mw.jco.rfc.MiddlewareRFC' JCO.nativeInit(): Could not initialize dynamic link library sapjcorfc [no sapjcorfc in java.library.path]. java.library.path.
Resolving The Problem
To resolve the problem:
- Add the following files to the /SAPJCO directory:
- sapjco.jar
- librfccm.o
- llibsapjcorfc.so
- Add a LIBPATH variable for the SAPJCO folder
- Add a CLASSPATH variable that points to the /SAPJCO/sapjco.jar directory.
- Add a system-wide variable QIBM_JAVA_PASE_STARTUP that points to the /usr/lib/start64 directory.
- Restart WebSphere Application Server and deploy the application again.
Was this topic helpful?
Document Information
Modified date:
15 June 2018
UID
swg21322455