webMethods

 View Only

 Error after SAP Adapter 10.1 installed in IS 10.15

Corentin MOREAU's profile image
Corentin MOREAU posted Tue February 18, 2025 09:19 AM

Hi,

I'm having trouble migrating from webMethods 10.5 to 10.15 and need help with the WmSAP adapter on my new integration server.

I've installed sapidoc3.jar and sapjco3.jar in /wm/IntegrationServer/instances/default/packages/WmSAP/code/jars/static with rwxrwxrwx permissions, and libsapjco3.so in /wm/IntegrationServer/instances/default/lib with rwxrwxrwx permissions.

I also updated LD_LIBRARY_PATH to include the new library path: echo $LD_LIBRARY_PATH returns :/wm/IntegrationServer/instances/default/lib.

I verified the JAR files using the JVM's Java binary: /wm/jvm/jvm/bin/java -jar /wm/IntegrationServer/instances/default/packages/WmSAP/code/jars/static/sapidoc3.jar and /wm/jvm/jvm/bin/java -jar /wm/IntegrationServer/instances/default/packages/WmSAP/code/jars/static/sapjco3.jar. (attachments)

However, I'm getting errors: Unrecognized Adapter type: WmSAP, and unable to enable connection resource wm.sap.internal.cs:emptyConnection, with the connection already enabled or being shut down. I've checked configurations and permissions, but the issues persist. Any help would be appreciated.

Thanks,

Corentin

Holger von Thomsen's profile image
Holger von Thomsen

Hi Corentin,

is there anything in the IS server.log during startup related to loading issues while the WmSAP-Adapter package?
The Jars under packages/WmSAP/code/jars/static do not require the executable-permissions, only the native lib, which should be placed under lib/jars/custom.
The library path does not need to be changed, this lib directory should be part of the wrapper.conf/custom_wrapper.conf or the ini.cnf for this instance.

Are there any Fixes installed on this instance?
If so, please check the Readme for the SAP Adapter Fix, which exact version of the JCo lib is required.
Latest JCo-Version is 3.1.11 from 22.11.2024 and JCoIDoc 3.1.3 from 02.03.2023.

Remember: When hosting SAP Adapter on an IS instance, the instance must be shutdown and restarted, to make the JCo-libs load properly.

Regards,
Holger

Corentin MOREAU's profile image
Corentin MOREAU

Hi Holger,

Thanks for your response. After applying the latest fixes on webMethods, the issue is now resolved, and the WmSAP adapter is working correctly.

Looks like the fix addressed the compatibility issue with JCo 3.1.10.

Appreciate your help!

Best regards,
Corentin

Kailash Kumar Mishra's profile image
Kailash Kumar Mishra

Hi Corentin,

We had faced a similar error while performing IS Upgrade recently from 10.7 to 10.15. To resolve it we got the latest Jars from the SAP Team and placed these latest Jars in the IS Path ..\IntegrationServer\instances\default\lib and of WmSAP package ..\IntegrationServer\instances\default\packages\WmSAP\code\jars\static and post WmSAP Package Reload the error was resolved. (If Package Reload doesn't work then try IS restart)

JCo Version 3.1.11 (2024-11-15)

SAP Latest Jars

sapjco3.dll

sapjco3.jar

sapidoc3.jar

Error

WmSAP 10.1 build 10.1.0.13.1176 requires SAP JCo 3.1.8 (or higher) and is not compatible with earlier JCo versions 2.x or 3.0.0 to 3.1.7.


Holger von Thomsen's profile image
Holger von Thomsen

Hi Kailash, hi Correntin,

I would prefer keeping the jars in the adapter package only.
The native lib (DLL or SO) belongs under the lib directory.  This is correct so far.
Due to the fact that this driver is a so-called JNI-driver (Java-Native-Interface: This means it has a native lib, which is then wrapped by Java methods), it is required to stop and restart the IS completely every time when there are changes to driver classes/jars, otherwise the java classes will not load properly.

JCo 3.0.x is no longer supported by SAP and therefore no longer available for download from the SAP Marketplace.

If possible,  you can try to ask your SAP Support Team, if they can provide you with a S-Account, with which you can download the latest version of the JCo yourself:
https://support.sap.com/en/product/connectors/jco.html

In the readmes fore the WmSAP 10.1 Fixes there is a section in the beginning, where the minimum JCo version is mentioned.
For Fix 11 this JCo 3.1.5 and JCoIDoc 3.1.1, for Fix13 as mentioned in Kailashs post, this is JCo 3.1.8.
The Readmes are available on Empower (https://empower.softwareag.com/) if you have a valid support contract.

Regards,
Holger