cancel
Showing results for 
Search instead for 
Did you mean: 

ClassDefFoundError in webdynproDC

Former Member
0 Kudos

Hi,

I have created a Java-Classes-DC and a WebDynpro-DC . I use this Java-class-DC as model in my webdynprod DC

I deployed both DCs without any Warning...but when i run the webdynpro-Dc its showing the follwing Error....

com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Failed to create delegate for component com.cpt.modelcomp.ModelComp. (Hint: Is the corresponding DC deployed correctly?

Does the DC contain the component?)

at com.sap.tc.webdynpro.progmodel.generation.ControllerHelper.createDelegate(ControllerHelper.java:110)

Here Modelcomp is my webdynpro component name....

Caused by: java.lang.NoClassDefFoundError: com.cpt.Commandbean.CommandBean

at com.cpt.modelcomp.wdp.InternalModelComp.<init>(InternalModelComp.java:41)

Here commandBean is my JAva-class -Dc name....

what could be the problem????

regards,

Thirumurugan

<b></b>

Accepted Solutions (1)

Accepted Solutions (1)

suresh_krishnamoorthy
Active Contributor
0 Kudos

Hi thirumurugan,

DC name we can add - Build, Compile and Deploy time

Did u added commandBean DC name in Libsfordeploy to your Webdynpro..

Regards

Suresh

Former Member
0 Kudos

Hi suresh,

Thanks for ur reply..

I created two Public part in Java Dc with compilation purpose and assemply purpose...

When i included compilation purpose public part, its auto matically included in webdynpro Dc build path...

I deployed Assembly purpose Public part of javaDC using the Library ....

Other way i included Assembly purpose Public part of javaDC in webdynpro Dc which must be run time dependency as discussed in the one the webdynpro forum...

Both of them raising an error at run time.....

regards,

Thirumurugan.

Former Member
0 Kudos

Hi Thirumurugan,

Adding to suresh's comments,

Go to webdypro build path->Sharing Reference Tab, and put your application name.[Eg: MyEarProject].

~Sasidhar

Answers (0)