Skip to Content
0
Former Member
Jul 31, 2012 at 03:27 AM

NoClassDefFoundError: com/sapportals/portal/prt/runtime/PortalRuntime

32 Views

Hi,

I am trying to implement an EJB module which reads a system definition and retrieves information such as usermapping to connect to backend. I created a DC for this purpose and added the DC com.sap~tc~epbc~prt~api as dependency. When I bundled this into an EAR and deployed it I am getting the error message

javax.ejb.EJBException: nested exception is: java.lang.RuntimeException: java.lang.NoClassDefFoundError: com/sapportals/portal/prt/runtime/PortalRuntime

I also tried adding the above component as a weak reference to the DD of the EAR application but it does not help either. Please let me know what am I missing here. Below is the line where it is erroring out

IUserMappingService iums = (IUserMappingService)PortalRuntime.getRuntimeResources().getService(IUserMappingService.KEY);

Thanks for all help,

Rao