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

IUserMappingService class not found

Hi, All,

I'm new to netweaver and IPortal.

I'm trying to use the IUserMappingService to retrieve mapped username and password. I got sample code from SAP library,and it got compiled by having the

/j2ee/cluster/server0/apps/ sap.com/irj/servlet_jsp/irj/root/webinf/portal/portalapps/com.sap.portal.usermapping/lib/com.sap.portal.usermapping_api.jar inhe class path. I created the system and mapped the user also.

However, when I access the uploaded iview from the portal, I got exception

IUserMappingService class not found.

I invoked the following code in the initialization of my JSPDynPage class. How would this class not in the class path of the portal?

...

IUserMappingService iums = (IUserMappingService)

PortalRuntime.getRuntimeResources().getService(IUserMappingService.KEY);

IUserMappingData iumd = iums.getMappingData (systemalias, iuser);

Map map = new HashMap ();

try {

iumd.enrich (map);

}

...

Do I need to configure something to make this work.

Any help is appreciated, thanks a lot!

Jenny Wang

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 Oct 07, 2005 at 07:06 PM

    Hi Jenny,

    You need to add a com.sap.portal.usermapping in your portalapp.xml as a sharing reference.

    Example:

    <property name="PrivateSharingReference" value="com.sap.portal.htmlb,com.sap.portal.usermapping"/>

    regards,

    prakash singh

    Add a comment
    10|10000 characters needed characters exceeded

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.