on 01-22-2008 9:07 AM
Hi,
I'm trying to use the UWL-API as described here within my Web Dynpro-App. My coding looks somehow like this:
IUWLService uwlService=(IUWLService)PortalRuntime.getRuntimeResources().getService(IUWLService.ALIAS_KEY);
UWLContext myContext = new UWLContext();
try {
IUWLSession mySession = uwlService.getUwlSessionForWebDynproClient(myContext);
} catch (Exception e) {
IWDMessageManager myMan = wdComponentAPI.getMessageManager();
myMan.reportSuccess(e.toString());
}
Well when i deploy that app and run it (i integrated the app into an iview, although i'm not sure whether have to or not) i get the following error:
java.lang.NoClassDefFoundError: com/sap/netweaver/bc/uwl/IUWLSession
Maybe i have to add a sharing reference or s.th. similar in order to use that API?
I'll reward points for any useful answer.
thanks a lot
Hi Lionsir,
The syntax of Sharing refrence is :
PORTAL:sap.com/< your service name>
just try this once.
Thanks & Regards,
Namrta Mahajan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Lionsir, Could you please tell me, how to add the library? Is it in Plugins?.
Thanks,
Sunita.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Useing library tckmcbc.uwl~api solved my problem. I have gave rewards.
thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Lionsir,
You are correct, you have to add the either the library or the sharing refrence for the UWL API.
We get these error when the appplication doesn't find the jars at runtime.
Thanks,
Namrta
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.