on 06-30-2009 11:06 AM
Dear Forum,<br />
<br />
I have a webdynpro local DC. I have display the values from a .xls file into a webdynpro table. I am using jxl.jar for this. <br />
I have added this jar file into the project lib folder and have added this into build path as well. But upon running the application I ma getting the error:<br />
<br />
java.lang.ClassNotFoundException: jxl.read.biff.BiffException<hr />
Loader Info<hr />
ClassLoader name: <a class="jive-link-external" href="http://demo.sap.com/taxdataflow" target="_newWindow">http://demo.sap.com/taxdataflow</a> Living status: alive Direct parent loaders: <a href="https://forums.sdn.sap.com/" target="_newWindow">system:Frame</a> <a href="https://forums.sdn.sap.com/" target="_newWindow">service:servlet_jsp</a> <a href="https://forums.sdn.sap.com/" target="_newWindow">service:ejb</a> <a class="jive-link-external" href="http://sap.com/tcwdapi" target="_newWindow">http://sap.com/tcwdapi</a> <a href="https://forums.sdn.sap.com/" target="_newWindow">library:tcblexceptionlib</a> <a href="https://forums.sdn.sap.com/" target="_newWindow">library:tcblloggingapi</a> Resources: D:\usr\sap\DP7\J47\j2ee\cluster\apps\demo.sap.com\taxdataflow\servlet_jsp\webdynpro\resources\demo.sap.com\taxdataflow\root\WEB-INF\lib\app.jar<hr />
<p />
at com.sap.engine.boot.loader.MultiParentClassLoader.loadClass(MultiParentClassLoader.java:259)<br />
at com.sap.engine.boot.loader.MultiParentClassLoader.loadClass(MultiParentClassLoader.java:228)<br />
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:353)<br />
at com.sap.demo.taxdataflow.taxdataapp.comp.wdp.InternalTaxDataCompView.<init>(InternalTaxDataCompView.java:112)<br />
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)<br />
<br />
I have tried many ways to resolve the error but failed. <br />
Any help is appreciated.<br />
<br />
Thanks,<br />
Mickey.<br />
<br />
Problem resolved.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.