on 01-31-2007 2:43 PM
Hi,
I get the following error when I try to activate an activity in the NWDI. Basically in the mentioned piece of code, I am trying to get the user id of the person logged into the EP. For this to work I am using the com.sap.security.api.jar file.
I have imported the file using the steps mentioned below:
1. Right click on project in NWDS
2. Select Properties
3. Goto Java Build path and then Add External Libs
4. Browse to the reqd file and then click OK.
Please let me know what needs to be done.
-
/adobe/prjccorderapproval/PrjCCOrderApprovalComp.java:116: cannot access com.sap.security.api.IUser
file com/sap/security/api/IUser.class not found
logonname = WDClientUser.getCurrentUser().getSAPUser().getUniqueName();
-
Thanks,
Vibha SInghal
Hi Vibha,
Instead of adding the "com.sap.security.api.jar" by going to the properties add the same as Used DC.
Go to DC Meta Data -> Used DCs - > Add Used Dcs ->Select the SAP-JEE under Local Development -> Select the DC <b>"com.sap.security.api.sda"</b>->Finish.
This solves your problem.
Regards,
Jhansi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
when it is a DC you need to add the external library in the DC metadata.
1. open the DC metadata.
2.rtclick on the usedDCs and select add Used DC
3.go to SAP-JEE compartment
4.select the com.sap.security.api.sda.
5. finish.
if you add library in this way your problem will be solved. if you add through javabuildpath then when you close the DC and reopen also you face this problem.
so its always better to add in this fashion.
Regards,
Gopi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.