Skip to Content
0
Former Member
Apr 01, 2010 at 06:59 AM

ClassCastException in retrieving UWL Items

13 Views

Hi Experts,

I am getting a ClassCastException in the very first line of the code mentioned below

IUWLService uwlService =(IUWLService) WDPortalUtils.getServiceReference(IUWLService.ALIAS_KEY);

when I am trying to get the UWL Service in a web dynpro DC maintained on NWDI track. I have created an external Library DC to put the following jars-

bc.uwl.service.api_api.jar

com.sap.security.api.jar

com.sap.security.api.perm.jar

prtapi.jar

And, have also created J2EE Library to deploy the jars in the External Library by adding dependency using public parts and used the Def public part of this J2EE Library in my target application. Apart from adding in the used DC I have put the following entries in the Web Dynpro References>Library References as well:

tckmcbc.uwl~api

bhi.com~bhmdm_uwl_j2eelib (where bhmdm_uwl_j2eelib is the J2EE Library and bhi.com is the vendor name)

The same set of code works all fine when I follow the same approach for Local Development Component (not on track).

Can you suggest me the possible reasons for it?

I am not sure if I have missed any jars as in compile time as well as in runtime it is working for Local DCs (not on track)

Regards,

Tushar S