Skip to Content
avatar image
Former Member

java.lang.ClassNotFoundException

I have a SC that contains 2 DCs –a Web Dynpro DC, and a J2EE / EJBModule DC:

The J2EE/EJBModule DC have the following Public Parts (a public class - InterspecProcess, and an EJB):

In the Web Dynpro DC, the J2EE/EJBModule DC is referenced as below:

My problem is when I try to create an instance of InterspecProcess class (from J2EE/EJBModule DC) in the Web Dynpro DC, this error is encountered in the web page - "java.lang.ClassNotFoundException".

Can you please advise why I'm getting this error?

Let me know should you require more information. Thanks for your feedback in advance.

5.png (2.3 kB)
6.png (5.8 kB)
7.png (11.3 kB)
8.png (11.6 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Oct 01, 2014 at 10:41 AM

    Hello Erwin,

    this looks quite correct to me. NoCalssDefFoundError sounds like it is not depleyed correctly. Did you get any warnings / errors while deploying the WD which references your ejb? For testing you could try deploying your ejb in a separate ear and reference that ear in your WD (only runtime dependency).

    Regards,

    Tobias

    Add comment
    10|10000 characters needed characters exceeded