on 07-04-2007 4:35 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.