Skip to Content
author's profile photo Former Member
Former Member

error : export to excel

Hi,

I have a webdynpro dc where i am using the export to excel functionality.I have added jxl.jar,Jexcel.jar and Jexcel-install.jar in the libraries.As soon as i build and deploy i get an error :

java.lang.NoClassDefFoundError: jxl/write/WriteException

at com.sap.darpan.component.wdp.InternalTdc_AllocationOutputView.<init>(InternalTdc_AllocationOutputView.java:154)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

at java.lang.reflect.Constructor.newInstance(Constructor.java:274)

Any clues on this?

I have no code at line no InternalTdc_AllocationOutputView.java:154

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Dec 23, 2008 at 12:43 PM

    Hi,

    As your using DC .

    You have to add the jars in external library DC.

    And create public part for that and should declare that DC as used DC in the DC which you are using the export to excel functionality.

    Note:- create public parts of both SDA and API type.

    Could you please let us know which version are you using.

    Thanks & Regards,

    Lokesh

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 23, 2008 at 09:43 AM

    Hi,

    If yours is a normal webdynpro project then add the 3rd partt tool jxl.jar ifrom the build path.

    If it is DC then

    Go through this thread

    How to add jxl.jar (3rd party tool) to a DC

    Regards,

    Padma N

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      It's not the problem with your DC. The error is coming because, the library is missing at server.

      For this, you have to create J2EE library project ,add jxl.jar to it and deploy it in server. as follows

      1: choose File->new->project->other->J2EE Server Component-->

      2: select 'Library' and click on 'Next'

      3: Give sample name 'JExcelLib' and click on 'Finish'

      4: Now goto navigator, copy jxl.jar from your pc and paste it into your project 'JExcelLib'

      5: Now goto J2EE explorer, right click on 'JExcelLib' and select 'Build Library Archive'.

      6: Right click on the .sda file that is generated and select 'Deploy To J2EE Engine'

      Regards

      Narayana

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.