on 06-27-2005 7:18 AM
hi all
i m trying to provide a feature in my project called download to excel. I have written the code and referenced appropriate jars still on deployment i get the no class def found error. Pls help.
regards
vln
Hi
Well there are 2 solutions. One is open up your Configtool and then set the classpath for the excel and restart your J2EE.
Well otherwise do the following
1. Create a new development component.
2. Extract the Jars in to src/Packages folder of your component.
3. Expose these folders as public part.
Use this DC in other DC's where you need these jars.
This is the best way and it works. :). You could have a separate component called SharedJars and then add all your JARS required to this component.
Hope that was helpful.
regards
ravi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ravi
i want to upload an Excel file into webDynpro,and display the content of cell in a textview--simple scenario.
i have imported API both design time(through java build path ) as well run time(through package explorer)
But in that i got jxl/WorkBook not found.
then i followed this
1. Create a new development component.
2. Extract the Jars in to src/Packages folder of your component.
3. Expose these folders as public part.
Use this DC in other DC's where you need these jars.
Then also i got the same error.
Can you give me any more other suggessions.
Thanks
Archana
Hi vln,
To add to Ravi's steps.
If you are using HSSF API in webdynpro component (not Development Component), then you right click the project, and set the jar files in the java build path. (This will solve the compilation erros). Add the API jar files in the config tool and restart the J2EE engine.
If it is a Development component, then you have to use the 2nd approach mentioned by Ravi.
Regards,
Santhosh.C
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
May be you can refer to "jakarta-poi-1.5.1-final-20020615.jar" in the buildpath.
(http://www.apache.org/dyn/closer.cgi/jakarta/poi/)
Regards, AnilKumar
Message was edited by: Anilkumar Vippagunta
Message was edited by: Anilkumar Vippagunta
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
If u can provide the error stack trace it will be more easy for someone to help !
Regards
Bharathwaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi
this is the error.
java.lang.NoClassDefFoundError: org/apache/poi/hssf/usermodel/HSSFWorkbook
at com.sap.keymap.KeymapappView.onActioncreate(KeymapappView.java:201)
at com.sap.keymap.wdp.InternalKeymapappView.wdInvokeEventHandler(InternalKeymapappView.java:136)
at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java(Compiled Code))
at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java(Compiled Code))
at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.handleAction(WebDynproMainTask.java(Inlined Compiled Code))
at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.handleActionEvent(WebDynproMainTask.java(Compiled Code))
at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java(Compiled Code))
at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java(Compiled Code))
at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java(Compiled Code))
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doWebDynproProcessing(DispatcherServlet.java(Compiled Code))
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java(Compiled Code))
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java(Compiled Code))
at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java(Compiled Code))
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java(Compiled Code))
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java(Inlined Compiled Code))
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java(Compiled Code))
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java(Compiled Code))
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java(Compiled Code))
at com.sap.engine.services.httpserver.server.Client.handle(Client.java(Compiled Code))
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java(Compiled Code))
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java(Compiled Code))
at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java(Compiled Code))
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java(Compiled Code))
at java.security.AccessController.doPrivileged1(Native Method)
at java.security.AccessController.doPrivileged(AccessController.java(Compiled Code))
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java(Compiled Code))
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java(Compiled Code))
regards
vln
User | Count |
---|---|
83 | |
24 | |
12 | |
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.