cancel
Showing results for 
Search instead for 
Did you mean: 

Caused by: java.lang.NoClassDefFoundError: IConnectorGatewayService

Former Member
0 Kudos

We are encountering the following ( 2 ) errors:

Caused by: java.lang.NoClassDefFoundError:

com/sap/portal/services/api/connectorgateway/IConnectorGatewayService

at pagelet._sapportalsjsp_toplevelnavigationJS.subDoContent

(_sapportalsjsp_toplevelnavigationJS.java:147)

at pagelet._sapportalsjsp_toplevelnavigationJS.doContent

(_sapportalsjsp_toplevelnavigationJS.java:82)

... 18 more

Caused by: java.lang.NoClassDefFoundError:

com/sapportals/portal/ivs/cg/IConnectorGatewayService

at role.RoleAutomation.roleStarter(RoleAutomation.java:37)

at pagelet._sapportalsjsp_toplevelnavigationJS.subDoContent

(_sapportalsjsp_toplevelnavigationJS.java:148)

at pagelet._sapportalsjsp_toplevelnavigationJS.doContent

(_sapportalsjsp_toplevelnavigationJS.java:82)

We are compiling against the following Netweaver JAR files:

\sap\SP1\JC01\j2ee\cluster\server0

\apps\sap.com\irj\servlet_jsp\irj\root\WEB-

INF\portal\portalapps\com.sap.portal.ivs.connectorservice\lib\com.sap.portal.ivs.connectorservice_api.jar

This contains a class called:

com.sapportals.portal.ivs.cg.IConnectorGatewayService

\sap\SP1\JC01\j2ee\cluster\server0

\bin\ext\com.sap.portal.services.api\portal_services_api_lib.jar

This contains a class called:

com.sap.portal.services.api.connectorgateway.IConnectorGatewayService

In EP6 SP2 the com.sap.portal.ivs.connectorservice_api.jar had a class

called ConnectionProperties which was no longer in the current JAR file

in Netweaver 2004S. We found a definition of ConnectionProperties in

the portal_services_api_lib.jar file which included a 2nd definition of

IConnectorGatewayService.

In the theory that somehow the portal_services_api_lib.jar was not

available at runtime I decided to deploy my PAR with the JAR included

(folder = dist/PORTAL-INF/lib/). Upon running it, we get the alternate

NoClassDefFoundError:

Caused by: java.lang.NoClassDefFoundError:

com/sapportals/portal/ivs/cg/IConnectorGatewayService

at role.RoleAutomation.roleStarter(RoleAutomation.java:37)

at pagelet._sapportalsjsp_toplevelnavigationJS.subDoContent

(_sapportalsjsp_toplevelnavigationJS.java:148)

at pagelet._sapportalsjsp_toplevelnavigationJS.doContent

(_sapportalsjsp_toplevelnavigationJS.java:82)

... 18 more

Can we assume there's a name clash in the Class Loader? I cannot use

the ConnectionProperties import statement without using the Services

API lib, not will it compile with its exclusion as there is an indirect

reference to com.sap.portal.services.api.connectorgateway (see below).

The project was not built since its classpath is incomplete. Cannot

find the class file for

com.sap.portal.services.api.connectorgateway.IConnectorGatewayService.

Fix the classpath then try rebuilding this project.

Thanks

Jean Seguin

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Did u add the following tag in portalapps.xml.If not please add the following tag and add the .jar files of Iconnector service in the application build path.


<application-config>
<property name="SharingReference"
value="com.sap.portal.htmlb,com.sap.portal.ivs.connectorservice"/>
</application-config>

If this is useful please do reward with points.

Thanks

ritu

Former Member
0 Kudos

Hi R.Saha,

Thanks a lot for your help and yes it did fix our issue with our Iview.

Jean Seguin

Answers (0)