cancel
Showing results for 
Search instead for 
Did you mean: 

Activation Error on NWDI - External Library

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (1)

Answers (1)

Former Member
0 Kudos

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