miércoles, 30 de abril de 2008

Oracle SAP Adapter

Oracle Adapter for SAP y Oracle SOA Suite 10.1.3 sobre Windows

Spanish(1) and English(2) Document

1. Spanish

Tratando de ejecutar el application explorer del adaptador sobre la SOA Suite (Windows) salió el siguiente mensaje de error:

jue, 22 nov 2007 16:47:39.0653 CET - Thread[Thread-8,6,main] [error] [IWAF JCA] [container] [MySAP.service_mySAPTest] Problem activating adapter. (JCO.classInitialize(): Could not load middleware layer 'com.sap.mw.jco.rfc.MiddlewareRFC'
JCO.nativeInit(): Could not initialize dynamic link library sapjcorfc [C:\product\10.1.3.1\OracleAS_3\adapters\application\lib\sapjcorfc.dll: Can't find dependent libraries]. java.library.path [C:\product\10.1.3.1\OracleAS_3\jdk\bin;.;...

El problema se debe a la inexistencia de una librería, que en algunas versiones de Windows no viene por Default, y a la cual esta tratando de llamar la librería de SAP sapcorfc.dll

Para saber cual es la librería que hace falta, se puede bajar algún software que busque las dependencias que requiere sapcorfc.dll. Uno que a mi me resulto es: http://www.dependencywalker.com/

En este se abre la librería sapcorfc.dll y muestra las dependencias que faltan.

En mi caso hacían falta dos:

MSVCR71.DLL

MSVCP71.DLL

Es posible que las librerías faltantes se encuentren en el disco de instalación de SAP, en la siguiente ruta:

PRES1/GUI/Windows/WIN32/SYSTEM

Simplemente se deben de agregar al sistema operativo en la carpeta de windows32 y volver a ejecutar el "Application explorer"

Para hacer una prueba sencilla del adaptador con BPEL, puede utilizarse un servicio del adaptador que nos regresa la información del sistema SAP

El servicio es: RFC_SYSTEM_INFO

Recibe: Vacio

Regresa: Información básica del sistema SAP

2.English

Yu can get the following error when launchig the application explorer in the SAP Adapter for SOA Suite (in Windows):

jue, 22 nov 2007 16:47:39.0653 CET - Thread[Thread-8,6,main] [error] [IWAF JCA] [container] [MySAP.service_mySAPTest] Problem activating adapter. (JCO.classInitialize(): Could not load middleware layer 'com.sap.mw.jco.rfc.MiddlewareRFC' JCO.nativeInit(): Could not initialize dynamic link library sapjcorfc [C:\product\10.1.3.1\OracleAS_3\adapters\application\lib\sapjcorfc.dll: Can't find dependent libraries]. java.library.path [C:\product\10.1.3.1\OracleAS_3\jdk\bin;.;...

The error appears because a dynamic library is missing, and the sapcorfc.dll from SAP needs that dll. Theres is one software that can help you to know which is the missing library, you can download the software here: http://www.dependencywalker.com/

In my case, i need two more dlls:
MSVCR71.DLL
MSVCP71.DLL

You need to copy that libraries into the windows32 folder. Its better to copy the libraries from the SAP Installation CD, and you can find them in the following path:
PRES1/GUI/Windows/WIN32/SYSTEM

Thats it!.. this must work

To test it from BPEL, you can test the service RFC_SYSTEM_INFO. That service just return the main information about SAP.


SERVICE NAME: RFC_SYSTEM_INFO
Receives: null
returns: SAP basic info

Wanzjin

0 comentarios:

 
Themes by: Free Templates Studio. Powered by Blogger