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

IConnectorGatewayService error

Hi,

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(TabStripExample.java:30)

at com.sapportals.portal.htmlb.page.PageProcessorComponent</b>

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(TabStripExample.java:30)

at com.sapportals.portal.htmlb.page.PageProcessorComponent</b>

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

<b><component-config>

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

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

<property name="ServicesReference" value="com.sap.portal.ivs.connectorservice,com.sapportals.portal.ivs.cg.IConnectorGatewayService,com.sapportals.portal.ivs.cg.IConnectorService"/>

</component-config></b>

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

6.0.2.3.7.Enterprise_Portal_Service_Pack_2

6.0.2.5.0.Enterprise_Portal_Service_Pack_2

Can any one help me in rectify this.

Thanks in Advance

Vishal

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.

    <b>

    <property name="PrivateSharingReference" value="com.sap.portal.ivs.connectorservice"/>

    </b>

    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

    <component-config>

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

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

    <b><property name="PrivateSharingReference" value="com.sap.portal.ivs.connectorservice"/></b>

    </component-config>

    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="com.sap.portal.ivs.<b>connectorservice</b>"/>

    and in

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

    Thanks,

    Vishal

    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"?>
      <application>
        <application-config>
          <property name="PrivateSharingReference" value="com.sap.portal.htmlb,com.sap.portal.ivs.connectorservice"/>
        </application-config>
        <components>
          <component name="display">
            <component-config>
              <property name="ClassName" value="com.ust.explodebom.display"/>
              <property name="SecurityZone" value="com.ust.explodebom.display/high_safety"/>
            </component-config>
            <component-profile/>
          </component>
        </components>
        <services/>
      </application>

      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.