cancel
Showing results for 
Search instead for 
Did you mean: 

Failed to create delegate for component (Model Error)

Former Member
0 Kudos

Dear All,

I am getting exception while running one webdynpro application. Details of error is attached below.

I am getting this error just after binding the Component controller node to Model Node, without writing any code for model execution. My model is created from one webservice, and that web service is perfectly fine.

My server and IDE both running on same service pack SP12.

I have tried with re-creating model and rebuild the project but still getting the same error.

Kindly suggest.

Thanks & Regards

Manoj Sahoo

<i><u><b>Root Cause

The initial exception that caused the request to fail, was:</b></u></i>

<b>

java.lang.NoClassDefFoundError: com/sap/tc/webdynpro/model/webservice/gci/WSTypedModelClass -


Loader Info -


ClassLoader name: [chep.com/exchangeexchange_dynpro] Parent loader name: [Frame ClassLoader] References: common:service:http;service:servlet_jsp service:ejb common:service:iiop;service:naming;service:p4;service:ts service:jmsconnector library:jsse library:servlet common:library:IAIKSecurity;library:activation;library:mail;library:tcsecssl library:ejb20 library:j2eeca library:jms library:opensql common:library:com.sap.security.api.sda;library:com.sap.security.core.sda;library:security.class;library:webservices_lib;service:adminadapter;service:basicadmin;service:com.sap.security.core.ume.service;service:configuration;service:connector;service:dbpool;service:deploy;service:jmx;service:jmx_notification;service:keystore;service:security;service:userstore interface:resourcecontext_api interface:webservices interface:cross interface:ejbserialization sap.com/tcwddispwda sap.com/tcwdcorecomp chep.com/portglobalportfolio_common_dynpro service:webdynpro service:sld library:tcddicddicservices library:com.sap.aii.proxy.framework library:tcgraphicsigs library:com.sap.mw.jco library:com.sap.lcr.api.cimclient library:sapxmltoolkit library:com.sap.aii.util.rb library:com.sap.util.monitor.jarm library:tcddicddicruntime library:com.sap.aii.util.xml library:com.sap.aii.util.misc library:tccmi Resources: /usr/sap/MTD/JC00/j2ee/cluster/server0/apps/chep.com/exchangeexchange_dynpro/src.zip /usr/sap/MTD/JC00/j2ee/cluster/server0/apps/chep.com/exchangeexchange_dynpro/webdynpro/public/lib/chep.comportglobalportfolio_commonscommonsJAR.jar /usr/sap/MTD/JC00/j2ee/cluster/server0/apps/chep.com/exchangeexchange_dynpro/webdynpro/public/lib/chep.comexchange~exchange_dynpro.jar Loading model: {parent,references,local} -


The error occurred while trying to load "com.chep.portfolio.exchange.dynpro.model.EMSSummaryTO".

at com.sap.engine.frame.core.load.ReferencedLoader.loadClass(ReferencedLoader.java:401)

at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)

at java.lang.Class.forName0(Native Method)

at java.lang.Class.forName(Class.java:141)

at com.chep.portfolio.exchange.dynpro.summary.wdp.InternalExchangeManagementSummaryComp.class$(InternalExchangeManagementSummaryComp.java:25)

... 33 more</b>

<u><b>Detailed Exception Chain</b></u>

<b>

com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Failed to create delegate for component com.chep.portfolio.exchange.dynpro.summary.ExchangeManagementSummaryComp. (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)

at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.<init>(DelegatingComponent.java:51)

at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.init(ClientComponent.java:382)

at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:362)

at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.initApplication(ApplicationSession.java:748)

at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:283)

at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:759)

at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:712)

at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:261)

at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)

at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)

at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:46)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)

at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)

at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)

at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365)

at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)

at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)

at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)

at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)

at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)

at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)

at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)

at java.security.AccessController.doPrivileged(Native Method)

at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)

at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)

Caused by: java.lang.reflect.InvocationTargetException

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

at java.lang.reflect.Constructor.newInstance(Constructor.java:274)

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

... 27 more

Caused by: java.lang.NoClassDefFoundError: com/sap/tc/webdynpro/model/webservice/gci/WSTypedModelClass</b>

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi,

the problem is that you are missing a jar file called: webdynpromodel_webservice_default.jar

which should be present inside:

C:\Documents and Settings\<User Name>\.dtc\3\DCs\sap.com\tc\wd\wslib\_comp\gen\default\public\default\lib\java

For this you need to add tc/wd/wslib(default) DC as used DC. Go to DC Metadata -> DC Definition and expand used DCs. check whether it is present or not. If not then add it.

Just check this. Hope this will solve your problem

thanks & regards,

Manoj

Message was edited by:

Manoj Kumar

Answers (4)

Answers (4)

Former Member
0 Kudos

I have re-created the webservice and then re-created the model.

Former Member
0 Kudos

Thanks , but that jar file is already added.

and re-starting the server is my last option.

I will appreciate if any body have some other option.

Regards

Manoj Sahoo

former_member751941
Active Contributor
0 Kudos

Hi Manoj,

1> Remove the Model from used Model.

2> Remove the model from the Models.

3> Remove the model node from the context.

4> Reload and Rebuild project.Build Project.

5> Then create the model using webservice.

6> Do the Necessary mapping

7> Build and deploy the project.

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f07de95b-d81c-2a10-3daf-96172e84...

Regards,

Mithu

Former Member
0 Kudos

Hello,

Kindly ensure that all required jar files are available and rebuild the project and deploy it again..

Kind Regards,

Saravanan K

Former Member
0 Kudos

Hi Manoj,

If you had tried re-importing the model then there should be some cache persisting. May be one possible solution would be as everyone says.....

Try Restarting the server. This should work.

Regards,

Nagarajan.