cancel
Showing results for 
Search instead for 
Did you mean: 

build in error when i add security.api jar file

Former Member
0 Kudos

Hi gurus,

I used to IUSER Package in the process of capturing SAP user from webdynpro java.

For this i have added com.sap.security.api to my DC.

When try to build to build i am getting build error (no Build Error with out this IUSER Package)

Following is the Error:

[javac] Compiling 364 source files to C:\Documents and Settings\947844\.dtc\4\t\5F381506D1E6B88E11EB91CE9E4157F3\classes

[javac] ERROR: C:\Documents and Settings\947844\.dtc\4\t\5F381506D1E6B88E11EB91CE9E4157F3\gen_wdp\packages\com\sap\xss\hr\ecm\BEcmPlanningComp.java:27: package com.sap.security.api does not exist

[javac] ERROR: import com.sap.security.api.IUser;

[javac] ERROR: ^

Thanks

kishore

Accepted Solutions (0)

Answers (9)

Answers (9)

Former Member
0 Kudos

solved

ravindra_bollapalli2
Active Contributor
0 Kudos

hi kishore,

check this link

bvr

Former Member
0 Kudos

Hi Kishore

Check first

com.sap.security.api jar file added to the DC

Regards

Ruturaj

Former Member
0 Kudos

You should not add jar to the DC. I see in the error message you are trying to add jar to BEcmPlanning component which is BLC of MSS-ECM.

To resolve the prob go to DCMetadata-> DcDefinition ->UsedDc and in the used DC right click and add the used dc "com.sap.security.api.sda" which is present in SAP_JEE Software Component. This will resolve the issue.

Former Member
0 Kudos

hi

i have also face the similar error when i had added the same jar file to the project when i had build a DC .

when building the DC i have even faced a build error , when we do the same for the simple webdynpro project

and i have checked i didnot faced the problem .

Thanks

Former Member
0 Kudos

Hi,

U have to import these statements,

import com.sap.security.api.IUser;

import com.sap.security.api.UMException;

import com.sap.security.api.umap.IUserMappingData;

import com.sap.security.api.umap.NoLogonDataAvailableException;

Refer this thread,

https://wiki.sdn.sap.com/wiki/display/EP/PointersforTroubleshootingPortalRuntime+Errors

Code

import com.sap.security.api.*;

import com.sapportals.portal.prt.component.*;

IUserFactory iuf;

ISearchResult isr;

IUser user

String userid;

iuf = UMFactory.getUserFactory();

isr = iuf.getUniqueIDs();

you will need to iterate the ISearchResult object but you can get IUser objects by

userid = (String)isr.next();

user = iuf.getUser(userid);

Regards,

Sunaina Reddy T

Former Member
0 Kudos

Have you added the "com.sap.security.api " as a used DC?

Are you doing the build from the "Development Component" menu?

Aviad

Former Member
0 Kudos

Hi,

Add the jar file DC .

DC propertis>java build path>add external jars -->add com.sap.security.pi.jar file to DC and build.

Regards,

Srikanth

Former Member
0 Kudos

Hi,

Check the com.sap.security.api jar file added to the DC

Regards

Raghu