on 07-01-2009 12:24 PM
Hi All,
while downloading the data from wd table i am getting the error
java.lang.NoSuchMethodError:org/apache/poi/POIDocument.<init>
(Lorg/apache/poi/poifs/filesystem/DirectoryNode;Lorg/apache/poi/poifs/filesystem/POIFSFilesystem;)V
i am added poi jarfiles as a External JAR's and i pasted those files under lib directory also.
can anyone gime the solution.
Thanks&Regards
Murthy
Hi Murthy.
Which version of NWDS are you using?
If you are using version 7.0.11 or earlier, make sure you use the latest POI jar files.
The older versions ( of POI i.e. ) dont get recognized during runtime, check the error
if you encounter NoClassDefFoundError or NoSuchMethodError upgrade to latest version of POI jar.
use poi-3.0.1-FINAL-20070705.jar or later versions if any.
Warm Regards,
Shibin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
At runtime that jar is not available that is why you are getting this error.
If you are using noraml WebDynpro project (not DC) then adding to build path works i guess.
There are two ways of using the external jars in WebDynpro DCs.
First you need to create one external library dc then you need to add the external jar to that dc.
You need to create two public parts for this jar.
1. API (design time purpose) 2. SDA (run time purpose)
Approach1:
After this you need to add these two public parts in WebDynpro DC as Used DCs. Now you should not deploy using RightClick > Deploy/ Deploy New Archieve and Run. You should deploy using RightClick>Development Component --> Deploy. Then only it works.
See the below blog for the same:
/people/bala.krishnan2/blog/2006/09/25/bid-adieu-to-bots--using-captchas
Approach2:
Add the API public part to WebDynpro DC for design time purpose as Used DC. Create J2EE Lib DC and add SDA public part to this DC and deploy this J2EE Lib DC. Now give the library reference to this J2EE Lib DC in WebDynpro DC properties.
See the below blog for the same:
/people/bertram.ganz/blog/2008/11/24/how-to-use-external-jar-files-in-web-dynpro-development-components
Regards,
Charan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.