Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

IUWLService throwing class cast exception.

Hello experts,

Following code is causing class cast exception.

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

Any idea?


Former Member replied


You can use this approach for getting the right name to give in the webdynpro Referance:

if you know the jar file name which houses the service class

you can search that file on Portal server.

when you will get the path where the jar file resides

then your service reference string will formulate like this:--<Folder name on server which houses the jar file>

add the service in shared reference.

Right click ur webdynpro project -> Properties -> Webdynpro references ->shared reference -> Add -><Folder name on server which houses the jar file>

I would suggest not deploying the jar file along with Webdynpro project because later on it can cause some class loader problems.

Hope this Helps..


0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question