Ask the Expert

What's wrong with my JCo-made R/3 connector?

I have made a SAP R/3 connector using JCO. It is part of my process server which is Servlets based server.

    Requires Free Membership to View


When I deploy and run my application in IBM WebSphere I get the following exception first time when JCO calls are made.

----------------------------------------
Worker#5 10.10.1.43 (spaneri;movaris) EAISystemProperties.execute: 
java.lang.NoSuchMethodError: dispatchRequest
at com.sap.mw.jco.rfc.MiddlewareRFC.nativeInitialize(Native Method)
at com.sap.mw.jco.rfc.MiddlewareRFC.(MiddlewareRFC.java:67)
at java.lang.Class.forName1(Native Method)
at java.lang.Class.forName(Class.java(Compiled Code))
at com.sap.mw.jco.JCO.(JCO.java:292)
at
com.movaris.eai.adapters.sapadapter.R3ConnectionFactory.(R3Connect
ionF
actory.java:69)
at
com.movaris.eai.adapters.sapadapter.R3ConnectionFactory.getInstance(R3Co
nnec
tionFactory.java:82)
at
com.movaris.eai.adapters.sapadapter.R3MethodMetaData.changeProperties(R3
Meth
odMetaData.java:781)
at
com.movaris.oc.task.EAISystemProperties.updateProperties(EAISystemProper
ties
.java:207)
at
com.movaris.oc.task.EAISystemProperties.executeInternal(EAISystemPropert
ies.
java:447)
at com.movaris.oc.task.EAIBaseTask.execute(EAIBaseTask.java:135)
at
com.movaris.oc.core.kernel.Dispatcher.dispatchInternal(Dispatcher.java:4
00)
at com.movaris.oc.core.kernel.Dispatcher.dispatch(Dispatcher.java:211)
at OC.service(OC.java:234)
----------------------------------------

I have put the jRFC11.DLL, jRFC12.DLL adn LIBRFC32.DLL in WINNT/System32 and jCO.jar is in my CLASSPATH. This works fine with other application servers and/or servlet runners. Can you please let me know what the problem could be?


It could be that you have not put the appropriate JCo JNI DLL (jRFC12.DLL) into the directory where WebSphere expects it. Please check the WebSphere documentation.


This was first published in May 2002

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: