Skip to Content

How to use standard APIs for customized services


I try to use IUserMappingService which has some hard coded paths to services (user mapping service). However sys admin customized the services location and it's impossible to use standard SAP libraries. For example, the standard library has a path: "com/sapportals/portal/prt/service/usermapping", but a customized path is "com/sap/portal/pdk/srv/usermapping". When I run this iView, I am getting a message: Caused by: java.lang.NoClassDefFoundError: com/sapportals/portal/prt/service/usermapping/IUserMappingService

Please advise.



Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Feb 03, 2005 at 07:10 AM

    I guess i know what the problem is. How have you given a reference to the UM service in the portalapps.xml file ??

    I think you would have given the reference as "UserMapping". Now the PRT will look for this particular service and in the portalapps.xml of this service the ClassName would be defined as com.sapportals.portal.prt.service.UserMapping, which the PRT is not able to find.

    You can try giving the FQN in the service reference, but i doubt it will work because the PRT will still look for the above class name at the predefined location.

    Regards, Akhilesh

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Yan Zhitnitsky

      Hi Yan,

      Here's a snippet from the portalapps.xml file


      <property name="SharingReference" value=",usermanagement"/>

      <property name="releasable" value="true"/>


      Hope this helps..

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.