I Installed SAP Adapter 10.1 in Integration server 10.3, after post installation i placed sapidoc3.jar and sapjco3.jar at “C:\SoftwareAG103\IntegrationServer\packages\WmSAP\code\jars\static”
placed sapjco3.dll at “C:\SoftwareAG103\IntegrationServer\instances\default\lib”
sapjco3.jar version 3.1.2
sapidoc.jar version 3.1.0
jco version 3.1.2
after that i restarted the Integration server,but still WmSAP package is partially loaded.
Integration server throwing following errors:
Error Log Entries as of 2019-12-16 13:04:25 IST
Time Stamp Service Name Service Stack Error Message Stack Trace Root Context Parent Context Current Context
---------------------------------- End of Current Log ----------------------------------
wm.art.adapter.deployment:getMenu
[ART.114.9] Adapter Runtime: Error(s) while registering adapter type WmSAP.
null
Caused by: java.lang.NullPointerException: null
2019-12-16 13:04:21 IST wm.sap.Admin:registerLocalConnection
WmSAP Adapter: Error on creating new Object: [ART.118.5042] Adapter Runtime (Connection): Unable to enable connection resource wm.sap.internal.cs:emptyConnection.
[ART.118.5022] Adapter Runtime (Connection): Cannot create connection wm.sap.internal.cs:emptyConnection. Adapter type WmSAP does not exist.
2019-12-16 13:04:21 IST wm.sap.Admin:registerLocalConnection
[ART.118.5042] Adapter Runtime (Connection): Unable to enable connection resource wm.sap.internal.cs:emptyConnection.
[ART.118.5022] Adapter Runtime (Connection): Cannot create connection wm.sap.internal.cs:emptyConnection. Adapter type WmSAP does not exist.
Caused by: com.wm.pkg.art.error.DetailedException: [ART.118.5022] Adapter Runtime (Connection): Cannot create connection wm.sap.internal.cs:emptyConnection. Adapter type WmSAP does not exist.
2019-12-16 13:04:21 IST wm.sap.Admin:registerRoutingListener
WmSAP Adapter: Error on creating new Object: [ART.114.3] Adapter Runtime: Unable to get information about adapter type WmSAP.
2019-12-16 13:04:21 IST wm.sap.Admin:registerAdapter
WmSAP 10.1 build 10.1.0.0.1007 requires SAP JCo 3.0.18 (or higher) and is not compatible with earlier JCo versions 2.x or 3.0.0 to 3.0.17.
This is a pretty common scenario faced when the the SAP Adapter failed to locate the dynamic link library. You can check so by setting the java home environment variable, then run command “java -jar sapjco3.jar”. There will be a popup window appearing telling you the details whether your setup is correct. By right you should be seeing the sapjco3.jar location as well as the sapjco3.dll file location. If it doesn’t work, I will usually place it(sapjco3.dll) under C:\windows\system32\ and restart the IS again.
Also you should load the latest SAP JCo library. SAP Adapter 10.1 should be running with at least 3.0.18 and above.
SAP Adapter 10.1 requires Fix 4 (or higher) to support JCo 3.1. However, this newer SAP Adapter 10.1 Fix 4 (“SAP_10.1_Fix4”) is not available/released yet.
Please create a ticket with Global Support if you need further to work on this.
latest version of JCO 3.0 is 3.0.20 and for Idoc it is 3.0.14.
Please note the correct locations for jars and native libs:
Up to wM 9.5:
native: IntegrationServer/libs
jars: IntegrationServer/packages/WmSAP/code/jars/static
From wM 9.6 onwards:
native: IntegrationServer/instances/default/libs
jars: IntegrationServer/instances/default/packages/WmSAP/code/jars/static
When running on Unix, make sure that the native lib libsapjco3.sl or libsapjco3.so has executable flag set for user/group which is running the IntegrationServer.
Before placing a new version of sapjco3.dll under Windows/system directory, take a backup of an existing file just for the case that this might be needed by another SAP application installed on that system.
Stopping and Restarting is neccessary to correctly enable the native lib during startup.
Although seniors already provided information on this blog. Would like to add my comments here.
We have prepared 10.3 environments recently and to enable SAP Adapters on 10.3 servers we need to place 3 files (2 Jar and one another) in two directories, with additional SAP_10.1_Fix3.
Two jar
sapidoc3.jar
sapjco3.jar
Under: /opt/softwareag/esb/IntegrationServer/instances/default/packages/WmSAP/code/jars/static/
And one SO
libsapjco3.so:- Under /opt/softwareag/esb/IntegrationServer/instances/default/lib/
By looking at your comments it seems:- you missed libsapjco3.so file.
Please verify again, I hope this will resolve the issue at your end.
Two jar
sapidoc3.jar (This is the java library for IDoc)
sapjco3.jar (This is the java library for JCo)
Under: /opt/softwareag/esb/IntegrationServer/instances/default/packages/WmSAP/code/jars/static/
And one SO
libsapjco3.so:- Under /opt/softwareag/esb/IntegrationServer/instances/default/lib/ (This is the shared object library file)
All these must be present in the server in order for WmSAP package to load successfully. Please bear in mind especially for sapjco3.jar there are different flavors for different platforms. You cannot take a jar file for Windows and put it in linux server and expect it will work.
If you read the SAP User Guide, the instruction is already clear what you’ll need to do. This is a common scenario faced by user during initial setup.
By looking at your logs in previous comments I can see you place all 3 files in all 3 different directories. Whereas specific jar and ‘so’ file needs to be place inside only specific directories.
By looking at your logs, please remove these files from these specific directories which you have placed additionally.
Remove sapidoc3.jar from IS01/IntegrationServer/instances/default/lib/jars/sapidoc3.jar IS01/IntegrationServer/instances/default/lib/sapidoc3.jar
Remove sapjco3.jar from
IS01/IntegrationServer/instances/default/lib/sapjco3.jar
Remove libsapjco3.so from /WebM/IS01/IntegrationServer/instances/default/packages/WmSAP/code/jars/static/libsapjco3.so
And verify you have only files place accordingly sapidoc3.jar sapjco3.jar /WebM/IS01/IntegrationServer/instances/default/packages/WmSAP/code/jars/static/
And
libsapjco3.so under WebM/IS01/IntegrationServer/instances/default/lib/
Once you are done, try to restart the server and test the connection again.
Also, you need to verify whether your WebM system is allowed to have a connection with SAP system. There are many specific settings are required there end as well.
Thank you so much for you assistance, with your help and some checks here I managed to solve the issue.
The real issue was that I downloaded the wrong SAP IDoc jar version (LOLOLOLOL).
The correct one is 3.1.0 but I downloaded the 3.0.14.
After downloading the correct one and putting it in the places that you specified the problem was solved!
One more time: Thank you for your assistance and congratulations for your concise description about the steps that I should follow to solve this issue.
SAP Adapter 10.1 is not available on IS 9.6. You will have to use SAP Adapter 7.1 with latest Fixes which should allow for the latest SAP JCo 3.0.x libs.
JCo 3.1.x libs seems to be only supported on SAP Adapter 10.1 with Fix or newer.
SAP Adapter 10.1 requires IS 10.1 or newer.
The Jar-Files should be under
IntegrationServer/instances/default/packages/WmSAP/code/jars/static/
and the native part (either DLL, SL or SO file) should be under
IntegrationServer/instances/default/lib
Please remove the other copies of the sap jco jars from lib directory.
On closing this loop can you finally confirm what is your SAP Adapter version (now) and it’s running on on-prem IS v9.6 or v10.1 instance in this case?
Yes! I can confirm that after putting the SAP libsapjco3.so and the sapidoc3.jar files in the correct folder and restarting the IS the problem was solved.