cancel
Showing results for 
Search instead for 
Did you mean: 

IUserMappingService class not found

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Thanks Prakash. It fixed it!

If you can enlight me what is the the difference between PrivateSharingReference vs

SharingReference. I found in other posts that

Property SharingRefence is added with value="com.sap.portal.usermapping". This alone didn't seem to fix my problem. I guess it has something to do that I was doinging it in the DynPage.

Thanks again,

Jenny

detlev_beutner
Active Contributor
0 Kudos

Hi Jenny,

see http://help.sap.com/saphelp_nw04/helpdata/en/95/1b1640a991c742e10000000a1550b0/frameset.htm for an explanation. SharingReference always is somehow "more" than PrivateSharingReference. So if setting some portal app as SharingReference, this app as to be "seen" from API as well as from CORE.

Hope it helps

Detlev

Answers (0)