Skip to Content

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


Hi All,

I am getting a class cast exception on executing the following snippet in a Portal Application.

IPortalBasicRoleFactoryService rfsrv = (IPortalBasicRoleFactoryService) PortalRuntime



Error is - Caused by: java.lang.ClassCastException:

at RolePortlet.doContent(

Funny thing is this implementation class is not present in the jar file. Also the interface IPortalBasicRoleFactoryService doesnot extend from IService which is what the portal runtime resources.getService(KEY) returns.

Is this code valid for a later version of EP stack? We are using EP 6.0, UME 4.0, PDK 6.0

Please help.



Former Member
Not what you were looking for? View more on this topic or Ask a question