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 sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(

at java.lang.reflect.Constructor.newInstance(

... 32 more

What is the solution for this?

Thanks and regards,


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

This may solve your problem.



Answers (0)