cancel
Showing results for 
Search instead for 
Did you mean: 

Exception while referring Model Bean in Java webdynpro DC

Former Member
0 Kudos

Hi All,

I am facing a strange error in NWDS while referring an imported Model in Java webdynpro DC.

There are 3 webdynpro projects.

1.Webdynpro Project PC1  - Created a new model and added a model class M1.

2.Webdynpro  Project PC2 containing DC2 - PC1 public parts, PC3 public parts  is added as a Used DCs

3. New Project PC3 containing new DC3 -  Added M1 as a reference model

Now when I am navigating from DC2 to DC3, I am getting the below runtime  error. There are no compilation error.

com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Failed to create delegate for component  com.example.component. (Hint: Is the corresponding DC deployed correctly? Does the DC contain the component?)

Caused by: java.lang.reflect.InvocationTargetException

Caused by: java.lang.NoClassDefFoundError:

But if I create New DC3 in PC1 project which contains a model class M1 and navigating from DC2 to DC3, then I am not getting any such error.

Am I  missing anything here?

Regards,

SPS

Accepted Solutions (0)

Answers (1)

Answers (1)

vijay_kumar49
Active Contributor
0 Kudos



seems like the version of jar you are using to build (on NWDS) is not the same you are using to execute (runtime on the server).


Are you usign external lib or used components?