on 08-14-2008 8:40 AM
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
8 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.