Skip to Content
author's profile photo Former Member
Former Member

need service reference value

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 14, 2008 at 12:31 PM

    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/ 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/ 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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 14, 2008 at 08:47 AM

    Hi venki,

    That class will be under landscapeapi.jar file. Add this jar file in lib folder. So that your problem will be solved.

    Thanks

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi,

      Copy the jar to the lib folder and adding a sharing reference has the same result: the application will work.

      However, adding a sharing reference is the correct way because it points to the portal service which is already deployed to the server. Additionally, the project size stays small because no external jars are added...

      See this thread for jars/sharing references:

      /thread/523012 [original link is broken]

      Omri

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.