Skip to Content
author's profile photo Former Member
Former Member

sapjcorfc.dll already loaded in another classloader

Hi all,

I was trying to use JCO connecting to BAPI. I have wrote two J2EE web applications (e.g. A and B) and create the java proxy using the follow codes:

JCO.Client jclient = JCO.createClient(.....);

jclient.connect();

myproxy = new FirstConnector_PortType();

myproxy.messageSpecifier.setJcoClient(jcoclient);

Each time I can only run one of my applications, e.g. after runing A, if I run B, it would give error like:

sapjcorfc.dll already loaded in another classloader

I think that the error was caused by "JCO.createClient(.....)", which will load "sapjcorfc.dll" everytime when callinng the function. Do anyone know that how I can handle this case ?

Thx a lot~

Add comment
10|10000 characters needed characters exceeded

1 Answer

  • Posted on May 04, 2004 at 06:46 AM

    Hi,

    for this we developed the proxy generator, that is available with 6.40. Those proxies you can use without such conflict. Otherwise you have to write a peoxy yourself that handles this conflict.

    Regards,

    Benny

    Add comment
    10|10000 characters needed characters exceeded