cancel
Showing results for 
Search instead for 
Did you mean: 

External Jar disappears

Former Member
0 Kudos

Hi,

I have added the external jar "com.sap.security.api.jar" to my DC project.

Everytime I do a DC build, the Jar disappears from my project and thus shows an error in my code. I will have to add the jar again and then deploy. I tried adding the jar file many times, but it keeps vanishing

How can I stop the jar file from disappearing?

Thanks and Regards,

Reena

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Reena,

You manually copied this file?

Try to add "Used DC" com.sap.security.api and pecify both Build-time and Run-time dependency.

Valery Silaev

SaM Solutions

http://www.sam-solutions.net

Former Member
0 Kudos

Hi All,

Thanks a lot for your inputs.

Yes, I tried adding the jar file ( via project properties -> java build path -> add external jar ) to a WebDypro project which is a DC.

I first tried Valery's solution and it worked. I just went to "Add Used DC" and selected "com.sap.security.api.sda"

Didnt give a try to the external library DC method. But I just wanted to know when exactly I will need to use this external DC method. (since the "Add Used DC" method worked just fine in this case )

Thanks once again for your inputs.

Thanks and Regards,

Reena

Former Member
0 Kudos

Reena,

When you need a reference to standard SAP library (like UME API in this case) then "Add used DC" is the only right way.

When you are refering J2EE projects (EAR, WD) then "Add used DC" is the only valid option as well.

When you need to add third-party Java library that is not deployed to WebAS by default (think of Hibernate for example) then you have to run full-cycle of creating your own External Library project, building and deploying it, exposing your own public part(s), adding references to it/them.

Valery Silaev

SaM Solutions

http://www.sam-solutions.net

Former Member
0 Kudos

Thanks a ton Valery !

Regards,

Reena

Answers (3)

Answers (3)

Former Member
0 Kudos

Check <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/5a/2e2f4234135433e10000000a155106/content.htm">this link</a> to find out about external lib dc's.

Regards,

Christophe

Former Member
0 Kudos

Hi Reena

The jar file needs to be added using Used DC concept and not external jar files. And this way when you build then those jar files would built together.

Thanks

Srikant

Former Member
0 Kudos

Hi Reena,

Are u trying to add this jar ("com.sap.security.api.jar") in a Dynpro project which is a DC??

If so, then u need to create an external library DC (in which u will add this jar) and

then its wrapper and add it to ur Web Dynpro DC.

For creating the External Library DC u can refer to Valery Silaev's following blog:

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

Hope it Helps.

Regards,

Alka