cancel
Showing results for 
Search instead for 
Did you mean: 

IConnectorGatewayService error

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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