cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Surender,

I have added both assembly type and compilation public parts. But I am getting same error.

Thanks,

Shilpa.

Former Member
0 Kudos

HI Shilpa,

Which version of NWDS you are using?

There are some problems for External Liabrary jar file in following versions of NWDS.

6.40 SP 16, 17 and 18

7.00 SP 8 and SP 9

Check the SAP Note 935334 for the same.

Thanks

Sandy

Former Member
0 Kudos

Hi Sandeep,

I am using CE 7.1, NWDS version - 7.1. Guess no problem with version.

Shilpa.

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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.