Skip to Content
author's profile photo Former Member
Former Member

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


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 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,


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Jul 31, 2012 at 05:10 AM


    What version is this, 7 or 7.3?

    Also what are the DC dependency you have selected (out of design time, build & run time)?


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.