Skip to Content
avatar image
Former Member

Runtime exception:java.lang.NoClassDefFoundError

Dear all:

I create two dc project in my local track

demo_web DC Type:J2EE / WebModule

demo_app DC Type:J2EE / Enterprise Application

user.jsp in demo_web,this jsp file used useBean to get user info


   try {
    IWDClientUser cuser = WDClientUser.getCurrentUser();
    if (cuser == null || cuser.isAnonymousUser()) {

    IUser iuser = cuser.getSAPUser();
    usrid = iuser.getUniqueName().trim().toUpperCase();
   } catch (WDUMException e) {
    // TODO Auto-generated catch block


DC build is OK,but runtime get error:


500 Internal Server Error is returned for HTTP request []:
  component [jsp],
  web module [],
  application [],
  DC name [],
  CSN component[],
  problem categorization [],
  internal categorization [-1063655795].

java.lang.NoClassDefFoundError: com/sap/tc/webdynpro/services/sal/um/api/WDUMException
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(
at java.lang.Class.getConstructor0(
at java.lang.Class.newInstance0(
at java.lang.Class.newInstance(
at java.beans.Beans.instantiate(
at java.beans.Beans.instantiate(


EP:7.40  NWDS:7.3.17



dependencies.jpg (19.1 kB)
dependencies2.jpg (14.3 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Mar 16, 2016 at 01:25 PM

    hi lei,

    you're using deprecated dependencies (warning/yellow icon entries).

    try to replace them with the following:

    • tc/bl/exception/lib
    • tc/bl/logging/api
    • tc/wd/api
    • /tc/je/usermanagement/api

    this should do the trick.

    besides i think it is not best practice to use web dynpro specific APIs in non web dynpro related context. based on your provided information i assume you want to read user related data. if that's the case try the UME API of SAP (UMFactory, IUserFactory)



    Add comment
    10|10000 characters needed characters exceeded