Skip to Content
avatar image
Former Member

Can't obtain JCO client connection

Hello all,

I defined a destination in the Visual Admin.

Run a successful test with the test button.

Created an EJB that accesses the destination successfully, but getting an exception when trying to create a client (the last code line) :

RFCDestination dst = (RFCDestination) dstService.getDestination("RFC", "DGL_DEST_TEST");
Properties jcoProperties = dst.getJCoProperties();
JCO.Client client = JCO.createClient(jcoProperties);

Any suggestions?

Thanks for your time, Adi.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Jan 16, 2007 at 04:26 PM

    hi Adi,

    provide more details about exception you've got

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi again,

      Problem solved.

      The solution was:

      In the EJB project:

      1. Remove sapjco.jar from the Libraries in Java Build Path (project --> properties)

      2. in Project --> Set Additional Libraries choose

      In the Application project:

      Open application-j2ee-engine.xml go to general tab and add a new reference to the same library (

      Regards, Adi.