on 03-03-2006 11:38 AM
Hi all,
I have created a Web Dynpro application in which i am retrieving the mapped user id and password of the portal user.
I have imported all the necessary jar files.
However on deploying the code it gives me this error message.
********************************************
java.lang.NoClassDefFoundError: com/sapportals/portal/prt/runtime/PortalRuntime
at com.lti.TestApplView.wdDoInit(TestApplView.java:117)
at com.lti.wdp.InternalTestApplView.wdDoInit(InternalTestApplView.java:105)
at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.doInit(DelegatingView.java:61)
at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)
********************************************
The code written in the init() method is as follows -
try {
IWDClientUser clientUser = WDClientUser.getCurrentUser();
IUser user = clientUser.getSAPUser();
IUserMappingService umserv =
(IUserMappingService) PortalRuntime.getRuntimeResources().getService(IUserMappingService.KEY);
IUserMappingData umdata=umserv.getMappingData(sysalias,user);
Map map = new HashMap();
try {
umdata.enrich(map);
} catch (NoLogonDataAvailableException e1) {
e1.printStackTrace();
}
String userid = (String) map.get("user");
String passwd = (String) map.get("mappedpassword");
wdComponentAPI.getMessageManager().reportSuccess("userid = " + userid );
wdComponentAPI.getMessageManager().reportSuccess("pswd = " + passwd);
} catch (WDUMException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
Kindly help.
Thanks and Regards,
Samta Nichani
Hi Samta,
Did you specify shared reference to portal runtime in WD project? Check this http://help.sap.com/saphelp_nw04/helpdata/en/d2/0357425e060d53e10000000a155106/frameset.htm
Best regards, Maksim Rashchynski.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Maksim,
I added the following in the Sharing Reference -
PORTAL:sap.com/com.sap.km.application
However, it is now giving this error -
java.lang.NoClassDefFoundError: com/sapportals/portal/prt/service/usermapping/IUserMappingService
at com.lti.TestApplView.wdDoInit(TestApplView.java:117)
at com.lti.wdp.InternalTestApplView.wdDoInit(InternalTestApplView.java:105)
at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.doInit(DelegatingView.java:61)
Please help.
Thanks and Regards,
Samta Nichani
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.