SAP R3 Endpoint: UnsatisfiedLinkError with sapjco3.dll
search cancel

SAP R3 Endpoint: UnsatisfiedLinkError with sapjco3.dll

book

Article ID: 31135

calendar_today

Updated On:

Products

CA Identity Manager CA Identity Portal

Issue/Introduction

This problem and solution was found useful in the following conditions:

- IM Connector Server (CS) is installed Windows Server 2008 SP2 (not 2008 R2).

- SAPJCO3.JAR/SAPJCO3.DLL package version 3.0.10(2013-08-08)

 

Context:

You have properly run "sap_post_install" to generate sapConnectorLibsOsgi.jar with sapjco3.dll and sapjco3.jar binary files.

From IAM CS UI you have properly imported the com.ca.jcs.sap.libs pointing at this sapConnectorLibsOsgi.jar.

 

Description:

When you click on a SAP R3 Endpoint in Provisioning Manager, you get the following errors: 

" java.lang.ExceptionInInitializerError: Error getting the version of the native layer: java.lang.UnsatisfiedLinkError:

C:\Program Files (x86)\CA\Identity Manager\Connector Server\data\cache\org.eclipse.osgi\bundles\<nnn>\<m>\.cp\sapjco3.dll:

The application has failed to start because its side-by-side configuration is incorrect.

Please see the application event log for more detail.

The application event log shows the following "SideBySide" error message:

" Activation context generation failed for "C:\Program Files (x86)\CA\Identity Manager\Connector Server\data\cache\org.eclipse.osgi\bundles\<nnn>\<m>\.cp\sapjco3.dll".

Dependent Assembly

Microsoft.VC80.CRT,processorArchitecture="amd64",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="8.0.50727.4053

could not be found. Please use sxstrace.exe for detailed diagnosis."

 

Note: <nnn>\<m> depends on your custom implementations.

Environment

Identity Manager 14.x

Cause

The SAPJCO3.DLL needs to call MSVCR80.DLL (Microsoft Visual C Runtime).

But this dependency is not found; The following file is expected to be found:

C:\Windows\winsxs\amd64_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.4053_none_88e046c92fae6f57\msvcr80.dll

Since this dependency is missing the SAPJCO3.DLL cannot be loaded.

Resolution

Download "Microsoft Visual C++ 2005 Service Pack 1 Redistributable" from the following link:

http://www.microsoft.com/en-us/download/details.aspx?id=14431

Download vcredist_x86.exe and also vcredist_x64.exe and run both executable files.