Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

problem using JCO within EJB

hi,

i get the following exception making a JCO call from within an EJB:

Caused by: java.lang.ExceptionInInitializerError: JCO.classInitialize(): Could not load middleware layer 'com.sap.mw.jco.rfc.MiddlewareRFC'

JCO.nativeInit(): Could not initialize dynamic link library sapjcorfc [Native Library C:\WINNT\system32\sapjcorfc.dll already loaded in another classloader]. java.library.path ...

the example worked at first, but after re-deploying the same EAR i get the exception. i also tried to undeploy/remove the EAR, but it didn't change anything.

os: windows 2000

jdk: 1.4.2

sap netweaver 2004

following jars are included in the EAR: aii_proxy_rt.jar, aii_util_misc.jar, sapjco.jar, SAPmdi.jar

thanks for your help!

heiko

Not what you were looking for? View more on this topic or Ask a question