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-
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:
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)