on 05-27-2008 7:09 AM
Hi All,
I am using external .jar file in my DC Webdynpro project for Excel file Upload/Download, To add this external .jar file, I followed below blog for creating External Liabrary Project:
/people/valery.silaev/blog/2005/09/14/a-bit-of-impractical-scripting-for-web-dynpro
Now i could build & deploy project without error, But while running application i am getting below error:
java.lang.NoClassDefFoundError: org/apache/poi/hssf/usermodel/HSSFWorkbook
at ltli.com.UploadAppView.onActionUpload(UploadAppView.java:216)
at ltli.com.wdp.InternalUploadAppView.wdInvokeEventHandler(InternalUploadAppView.java:264)
at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)
at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doHandleActionEvent(WindowPhaseModel.java:420)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:132)
at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:299)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:752)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:705)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:261)
at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:154)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
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:160)
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)
What could be the possible reason for this?
I tryed all possible ways but no use.
Thanks
Sandy
Hi,
For creation and usage of External Library Projects into DCs you can refer to Bala's [blog|https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/4512] [original link is broken] [original link is broken] [original link is broken]; .
Has worked for me in similar problem.
Hope it helps.
Regards,
Alka.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Alka,
I tried this Blog, but still it is giving me the same error.
My main problem is i could not find .jar file on server.
If we deploy any external library project then corresponding jar file should present on server. But there is no such file present on server.
I have checked corresponding .jar file under Visual Administrator, path is:
Go to Visual Administrator -> Server 0-> Libraries-> here you
can find the deployed external library projects,
once you select any project it shows us the corresponding .jar file in JAR's Contained area.
In my case, it is not showing corresponding .jar file for the selected external library project in Visual Administrator (As mentioned above).
Can you tell me, what could be the possible reason for this?
Thanks
Sandy
Hi Sandeep,
Are you checking on right server instance.. as you said you checked on server_0.? maybe there is one more server_1 instance..
whatever. before deploying you lib project ear. just open that .ear file in winzip and make sure that .jar file is present there.
after that do the deployment...
just to make sure your NWDS building application correctly.
and in the project where you are using your library project.. add it as a library refrence.
User | Count |
---|---|
84 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.