Skip to Content

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

java.lang.NoClassDefFoundError While executing Webdynpro

Hi,

When I try to execute a Webdynpro application which tries to access the user details, I get the following error

java.lang.NoClassDefFoundError: com/sapportals/wcm/util/usermanagement/WPUMFactory

I guess its because the jar file is missing for usermanagement. So how to fix the problem ?

NWDS code:

public void wdDoInit()

{

//@@begin wdDoInit()

IWDClientUser wdClientUser = WDClientUser.forceLoggedInClientUser();

com.sap.security.api.IUser sapUser = wdClientUser.getSAPUser();

IUser ep5User =WPUMFactory.getUserFactory().getEP5User(sapUser);

Sting strName=ep5User.getFirstName().toString();

//@@end

}

Below are the details of my EP SETUP:

My NWDS Version : 2.0.15

Web Dynpro Runtime : Vendor: SAP, Build ID: 6.4016.00.0000.20060126165422.0000 (release=630_VAL_REL, buildtime=2006-02-20:21:46:46[UTC], changelist=386861, host=PWDFM026)

J2EE Engine : 6.40 patchlevel 102141.313

Thanks in advance.

Regards,

Aditya Metukul

replied

aditya,

have you set the sharing reference in your wd-prohject as described in the above mentioned blog (see screenshot)?

Go to webdynpro refernces>sharing references in properties of webdynpro project

Add PORTAL:sap.com/com.sap.km.application

this should be the cause of the NoClassDefFound-Error during runtime. The WAS doesn√Ąt know, that you are referencinf these classes in your project.

kr, achim

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