on 07-22-2009 8:13 AM
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
solved
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kishore
Check first
com.sap.security.api jar file added to the DC
Regards
Ruturaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Have you added the "com.sap.security.api " as a used DC?
Are you doing the build from the "Development Component" menu?
Aviad
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Check the com.sap.security.api jar file added to the DC
Regards
Raghu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
10 | |
9 | |
9 | |
7 | |
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.