cancel
Showing results for 
Search instead for 
Did you mean: 

need service reference value

Former Member
0 Kudos

Hi, Iam using the following code,

ILandscapeService landscapeService = (ILandscapeService) PortalRuntime.getRuntimeResources().getService(ILandscapeService.KEY);

but at run time it ie giving error that

java.lang.NoClassDefFoundError: com.sapportals.portal.prt.service.landscape.ILandscapeService

means i have to add service reference to solve this,

what is the value of service reference that i have to add to resolve this.

currently I am using this....

<property name="SharingReference"

value="com.sap.portal.ivs.api_iview, com.sap.portal.ivs.api_landscape "/>

</application-config>

Regards,

venki.

View Entire Topic
siddharth_jain
Active Contributor
0 Kudos

Hi Venki,

You can use this approach for getting the right name to give in the webdynpro Referance:

if you know the jar file name which houses the service class

you can search that file on Portal server.

when you will get the path where the jar file resides

then your service reference string will formulate like this:--

PORTAL:sap.com/<Folder name on server which houses the jar file>

Don't forget to add the service in shared reference.

Right click ur webdynpro project -> Properties -> Webdynpro references ->shared reference -> Add ->

PORTAL:sap.com/<Folder name on server which houses the jar file>

I would suggest not deploying the jar file along with Webdynpro project because later on it can cause some class loader problems.

Hope this Helps..

Please award points for an helpfull answer.

Regards,

Siddharth J.