Skip to Content
avatar image
Former Member

java dc use another java dc with java.lang.NoClassDefFoundError

Dear All:

I've created 2 java dc.

I assinged the second dc as a used dc for the first dc.

I've created a web dynpro dc and add the first dc as used dc.

I can build those three dc without any error, but when I deploy to server and run I got an exception "java.lang.NoClassDefFoundError"

Is there anyone know how to fix it.

thanks in advance.


Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Oct 21, 2009 at 07:02 AM

    You need to include both java DCs in your Web Dynpro DC, since a Java DC is not deployed by itself, but always needs to be wrapped in some other DC (Web Dynpro/J2EE library/Web Module).

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 09, 2009 at 02:06 PM

    Hi Allen,

    I believe the following link will help you create two public parts (for Compile Time and for Runtime) of the wrapper DC and then include the Public Parts in the Used DCs of the Final Development Component.

    Without adding the Public Parts, your final DC to consume the Java Library would not show any Compile Time Error but would throw Class Definition Not Found Exception even though you deploy the wrapper DC on the Server. This should solve your problem. For any clarification you can always come back to me.


    Tushar Sinha,



    Add comment
    10|10000 characters needed characters exceeded

    • Former Member


      Thanks for ur help, i've solved this on my own.

      The key point is check box of build time and run time when I add used DC.