problem using JCO within EJB
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
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!