cancel
Showing results for 
Search instead for 
Did you mean: 

TypeNotFoundException - when reusing a DC in NWDI

Former Member
0 Kudos

Hello Experts,

I have created a local DC which has the TableSorter java class. I created two public parts - AssemblyPP and CompilationPP - in this DC and selected the Java Class File above as a public part. I consumed the above class as a used DC in my local DC. For AssemblyPP I selected Deploy Time and Run Time dependency. For CompilationPP I selected the Build time dependency. This scenrio is WORKING FINE.

Then we migrated these DC's in NWDI. Now when I repeat the above process and when I run I get the following error(end).

Please let me know what am I doing wrong here.

Regards,

Mathan

com.sap.tc.webdynpro.services.exceptions.TypeNotFoundException: type java:com.arteriatech.gen.tablesorter.java.TableSorter not found.....

at com.sap.tc.webdynpro.services.datatypes.core.DataTypeBroker.getDataType(DataTypeBroker.java:224)

at com.sap.tc.webdynpro.progmodel.context.DataAttributeInfo.init(DataAttributeInfo.java:319)

at com.sap.tc.webdynpro.progmodel.context.NodeInfo.initUnmappedAttributes(NodeInfo.java:687)

at com.sap.tc.webdynpro.progmodel.context.DataNodeInfo.doInit(DataNodeInfo.java:238)

at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:671)

at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:674)

at com.sap.tc.webdynpro.progmodel.context.Context.init(Context.java:40)

at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:199)

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

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

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

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

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

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

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

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

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)

Accepted Solutions (0)

Answers (1)

Answers (1)

snehal_kendre
Active Contributor
0 Kudos

HI,

Dont create public part of just tabalesorter.java class..

create public part of complete package.

But one thing why are you using a seperate DC for just tablesorter.java class.

instead you can put it in you web dynpro src package itself.

Former Member
0 Kudos

Thank you Snehal for your reply,

I tried the way had your mentioned. But, that too is ending up in the same error.

My question is; when I made the Java Class file as a Public Part in a Local Development Component; it worked fine. But, when I migrated the same to NWDI, it fails. Can you provide a suggestion for this issue.

Regards,

Mathan MP

Former Member
0 Kudos

Hi Mathan ,

check inside the generated web dynpro .ear archive if there is a jar file for the public part.

There is a known problem for this kind of scenario for some SPS.

snehal_kendre
Active Contributor
0 Kudos

Hi,

just tell me wheather the package in your local DC and you NWDI DC are same.

when a java application run on server, it check for the file according to the import path you added in class.

sometimes these things happen. your dynpro application is unable to locate the location.

Why dont you try just keep the tablesorter.java file in webdynpro itself.. and access it from there.

Former Member
0 Kudos

Thanks for your response,

Yes the jar file is inside the the ear file. Is there any way to solve this?