cancel
Showing results for 
Search instead for 
Did you mean: 

GetServiceUser Deprecated

Former Member
0 Kudos

Hi all,

I used the following code in the my webdynpro appln:

IUser iuser = WPUMFactory.getServiceUserFactory().getServiceUser("cmadmin_service");

IResourceContext irCtx = new ResourceContext(iuser);

It is showing that getServiceUser() has deprecated.

When i run the application the following error is thrown:

java.lang.NoClassDefFoundError: com/sapportals/portal/security/usermanagement/UserManagementException

at com.sap.propfilter.wdp.InternalCPropertyFilter.<init>(InternalCPropertyFilter.java:91)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

at java.lang.reflect.Constructor.newInstance(Constructor.java:274)Filter.java:91)

... 32 more

What is the solution for this?

Thanks and regards,

Shyam.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Shyam,

I think u have to give sharing reference for usermanagement,

right click on the project name -> go to properties -> Web Dynpro References -> Sharing References -> Add a new reference for the usermapping

PORTAL:sap.com/com.sap.portal.usermapping

This may solve your problem.

Regards,

Kalaivani

Answers (0)