Welcome Guest! Log in
×

Notice

The forum is in read only mode.
Stambia versions 2.x, 3.x, S17, S18, S19 and S20 are reaching End of Support January, 15th, 2024. Please consider upgrading to the supported Semarchy xDI versions. See Global Policy Support and the Semarchy Documentation.

The Stambia User Community is moving to Semarchy! All the applicable resources have already been moved or are currently being moved to their new location. Read more…

Topic-icon Solved Run SAP connector on Ubuntu Linux

  • informatique_etival
  • informatique_etival's Avatar Topic Author
  • Offline
More
08 Nov 2017 08:55 #1 by informatique_etival
Run SAP connector on Ubuntu Linux was created by informatique_etival
Dear Stambia Community,

We face an issue when trying to run SAP connector on Ubuntu Linux Server. The runtime works fine, but each time we try to run a mapping were a SAP connection is involved, it fails with error messages saying that a java class is missing. As far as there are no full details on how to setup this connector on Linux, it is not easy to determine where to put files.

For the moment, we have downloaded the SAP Jco zip file dedicated to our linux environment from the SAP support site. The Stambia runtime is installed into directory "/opt/stambiaRuntime". The SAP addon is installed as required into "/opt/stambiaRuntime/lib/addons/sap" where we have currently those files :

-rw-r--r-- 1 root root 4802 nov. 7 16:59 com.indy.engine.addons.sap.jar
-rwxr-xr-x 1 root root 5174670 nov. 8 08:45 libsapjco3.so
-rw-r--r-- 1 root root 303344 nov. 7 16:59 sapidoc3.jar
-rwxr-xr-x 1 root root 1479887 nov. 8 08:45 sapjco3.jar

On Windows environment, the "sapjco3.dll" file must be installed into "Windows\system32" directory, but there is no indication on where to put the "libsapjco3.so" file on Linux. Perhaps this is where the issue lies, but we would like some help on this.

Many thanks in advance for your contributions.
More
08 Nov 2017 10:13 #2 by risson
Replied by risson on topic Run SAP connector on Ubuntu Linux
Hello
I don't really know the SAP connector, but sometimes on Linux systems you need to reference the libraries in the LD_LIBRARY_PATH environment variable.
I found this page which seems to confirm this idea:
archive.sap.com/discussions/thread/3609518
  • informatique_etival
  • informatique_etival's Avatar Topic Author
  • Offline
More
08 Nov 2017 10:31 #3 by informatique_etival
Replied by informatique_etival on topic Run SAP connector on Ubuntu Linux
Thank you for your proposal. We've added a sapjco.conf file inside the /etc/ld.so.conf.d/ directory, and used the ldconfig command to update links. With -v option, it shows this line among others :
/opt/stambiaRuntime/lib/addons/sap:
libsapjco3.so -> libsapjco3.so

So this shall be OK, but the process still stops with the same error.
This attachment is hidden for guests.
Please log in or register to see it.

This message has an attachment file.
Please log in or register to see it.

  • informatique_etival
  • informatique_etival's Avatar Topic Author
  • Offline
More
10 Nov 2017 17:09 #4 by informatique_etival
Replied by informatique_etival on topic Run SAP connector on Ubuntu Linux
Well, finally we've found a solution, but it doesn't explain why it was not working. We just reinstalled completely the runtime with latest version 17.4.5 and it ran immediatly.