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

"Class not found" error at runtime when ExternalLib DC is included in WD DC

Hi All,

I am getting "Class not found" exception at runtime when external library DC is included in Webdynpro DC.

I am following the below steps..

1) Created a Webdynpro DC - "testProj" to which i need to add the external library DC.

2) Created a DC of type "External Library" called "externaljar"

3)Added Public Parts of type assembly and compilation to the "externaljar" DC (Component Properties Tab -> Public Parts)

4) Right click on the assembly Public Part name -> Manage entities, and added the JAR files as archive.

5)Right click on the compilation Public Part name -> Manage entities, and added the JAR files as archive.

6)Go to Webdynpro DC "testProj" .

Under Component Properties Tab -> Dependencies tab -> Add -> selected the "externaljar" DC -> Next -> for "externaljar" DC checked Deploy time and Run time.

For assembly Public Part and compilation Public Part "build" is selected by default.

7) I did build of both the DC's and deployed it.

Im getting "Class not found" error.

Please let me know where i am going wrong.

Thanks,

Shilpa.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jun 18, 2008 at 02:18 PM

    Hi shilpa,

    What do you want to do?

    Just to have Jar file, why are you doing such long process.

    What do you want to achieve?

    You can simply add the jar file to your existing DC.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 18, 2008 at 02:20 PM

    Hi,

    Verify the steps with all the steps mentioned in this blog:

    /people/valery.silaev/blog/2005/09/14/a-bit-of-impractical-scripting-for-web-dynpro

    Regards,

    Apurva

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 18, 2008 at 02:42 PM

    Hi Balakrishna,

    If I add Jar files in build path, at run time I dont get any errors, but I get error at comple time. So an external DC is made which includes all jar files in its public part and this DC is added as dependency in the webdynpro project (at deploy time,run time) as in below blog.

    /people/raphael.vogel/blog/2008/05/05/how-to-use-external-libraries-in-the-sap-component-model-part-ii

    Here im getting the error "class not found".

    Thanks,

    Shilpa.

    Edited by: Shilpa KG on Jun 18, 2008 4:42 PM

    Edited by: Shilpa KG on Jun 18, 2008 4:44 PM

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 18, 2008 at 04:09 PM

    Hi

    Instead of compilation public part you need to add

    Assembly public part in ur web dynpro DC.Create a

    Assembly type public part and add it to ur web dynpro Dc it

    will work.

    Regards

    Surender Dahiya

    Add a comment
    10|10000 characters needed characters exceeded

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.