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

IConnectorGatewayService error


I am trying to use JCA Connection Framework for R/3 Connection Pooling. When i tried to connect to backend system, i am getting the following error at runtime. Could anyone please help me.

<b>Caused by: java.lang.NoClassDefFoundError: com/sapportals/portal/ivs/cg/IConnectorService

at TabStripExample.getPage(


The code I am trying to execute is

<b>Object connectorservice = PortalRuntime.getRuntimeResources().getService(IConnectorService.KEY);

IConnectorGatewayService cgService =((IConnectorService) connectorservice).getIConnectorGatewayService();</b>

After changing the code to

<b>Object connectorservice = PortalRuntime.getRuntimeResources().getService(IConnectorService.KEY);

IConnectorGatewayService cgService =(IConnectorService) connectorservice;</b>

the error changes to

<b>Caused by: java.lang.NoClassDefFoundError: com/sapportals/portal/ivs/cg/IConnectorGatewayService

at TabStripExample.getPage(


The change in portalapp.xml to following also do not help.


<property name="ClassName" value="com.xxxx.LeaveBalance"/>

<property name="SecurityZone" value="com.xxxx/high_safety"/>

<property name="ServicesReference" value=",,"/>


I have tried to upload this jar to two versions i.e.

Can any one help me in rectify this.

Thanks in Advance


Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on May 26, 2005 at 12:28 PM

    Delete your serviesreferences and add the following entry.


    <property name="PrivateSharingReference" value=""/>


    Message was edited by: Prakash Singh

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 26, 2005 at 01:17 PM

    Hi Prakash,

    Thanks for the reply .

    I changed in my portalapp.xml file to


    <property name="ClassName" value="com.xx.LeaveBalance"/>

    <property name="SecurityZone" value="com.xx/high_safety"/>

    <b><property name="PrivateSharingReference" value=""/></b>


    and tried to execute code

    Object connectorservice = PortalRuntime.getRuntimeResources().getService(IConnectorService.KEY);

    IConnectorGatewayService cgService =(IConnectorGatewayService)connectorservice;

    but got the same error

    Caused by: java.lang.NoClassDefFoundError: com/sapportals/portal/ivs/cg/IConnectorGatewayService

    It is that 'connectorservice' name need to be same for

    <property name="PrivateSharingReference" value="<b>connectorservice</b>"/>

    and in

    IConnectorGatewayService cgService =(IConnectorGatewayService)<b>connectorservice</b>;



    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Sorry, your portalapp.xml is incorrect. it should loook like following.

      <?xml version="1.0" encoding="utf-8"?>
          <property name="PrivateSharingReference" value=","/>
          <component name="display">
              <property name="ClassName" value="com.ust.explodebom.display"/>
              <property name="SecurityZone" value="com.ust.explodebom.display/high_safety"/>

      PS: Please reward points for helpful answers. thank you.

      Message was edited by: Prakash Singh

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.