cancel
Showing results for 
Search instead for 
Did you mean: 

How to use standard APIs for customized services

0 Kudos

Hello,

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.

Thanks,

Yan

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

0 Kudos

Hi Akhilesh,

I don't provide anything about this service in portalapp.xml file. Maybe this is a problem. Could you provide an examle of entry I have to insert into portalapp.xml, please?

Thanks a lot.

Yan

Former Member
0 Kudos

Hi Yan,

Here's a snippet from the portalapps.xml file

<application-config>

<property name="SharingReference" value="com.sap.portal.htmlb,usermanagement"/>

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

</application-config>

Hope this helps..

Answers (0)