on 02-21-2007 7:08 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.