cancel
Showing results for 
Search instead for 
Did you mean: 

webdynpro and uwl

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Lionsir,

The syntax of Sharing refrence is :

PORTAL:sap.com/< your service name>

just try this once.

Thanks & Regards,

Namrta Mahajan

Former Member
0 Kudos

Hi Namrta,

Thanks for your response.

I have tried to add Share Reference "PORTAL:sap.com/com.sap.netweaver.bc.uwl".But it does not solve my problem and the error is same.

Any more ideas?

Lionsir

Former Member
0 Kudos

I found a thread that talk about the same problem with me, and the poster has solved the problem . But I don't know what is the meaning of that he wrote.

The link of the thread is below:

[;

Answers (3)

Answers (3)

Former Member
0 Kudos

Lionsir, Could you please tell me, how to add the library? Is it in Plugins?.

Thanks,

Sunita.

Former Member
0 Kudos

Useing library tckmcbc.uwl~api solved my problem. I have gave rewards.

thanks

Former Member
0 Kudos

Hi,

I just tried to execute the same in my portal, It returns "Portal Runtime Error", I have declared the library reference and also included the corresponding JAR files.

Can u just guide me the the steps u followed to achieve the task to trigger a notification from WebDynpro.

Regards / Guru

former_member188498
Active Participant
0 Kudos

Deleted question

Edited by: Ladislav Pomezny on Mar 13, 2008 3:44 PM

Former Member
0 Kudos

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