on 10-19-2006 11:58 AM
Hi experts,
In my Web Dynpro i use IUserMappingService such as
IWDClientUser wdUser = WDClientUser.getCurrentUser();
IUser user = wdUser.getSAPUser();
IUserMappingService iums = (IUserMappingService) PortalRun-time.getRuntimeResources().getService(IUserMappingService.KEY);
IUserMappingData iumd = iums.getMappingData ("GI3CLNT001", user);
Map map = new HashMap ();
try {
iumd.enrich (map);
userid = (String)map.get( "user" );
}
catch (NoLogonDataAvailableException nldae) {
}
I added the following sharing references to my WD project:
PORTAL:sap.com/com.sap.portal.usermapping
When I deply my WD project. I get the following Warning
Result
=> deployed with warning : file:/C:/DOKUME1/g526466/LOKALE1/Temp/temp31253GisaGeburtstagsListe.ear
Finished with warnings: development component 'GisaGeburtstagsListe'/'local'/'LOKAL'/'0.2006.10.19.12.35.48':
Caught exception during application startup from SAP J2EE Engine's deploy service:
java.rmi.RemoteException: Error occurred while starting application local/GisaGeburtstagsListe and wait. Reason: Clusterwide exception: server ID 5551650:com.sap.engine.services.deploy.exceptions.ServerDeploymentException: Application local/GisaGeburtstagsListe cannot be started. Reason: it has hard reference to resource com.sap.portal.usermapping with type application, which is not active on the server.
at com.sap.engine.services.deploy.server.ReferenceResolver.processReferenceToApplication(ReferenceResolver.java:572)
Can anyone help ?
Thank you
So, do I need
IWDClientUser wdUser = WDClientUser.getCurrentUser();
IUser user = wdUser.getSAPUser();
IUser ep5User = WPUMFactory.getUserFactory().getEP5User(user);
.....
IUserMappingData iumd = iums.getMappingData ("GT3CLNT001", ep5User);
In which package is com.sapportals.portal.security.usermanagement.IUserFactory
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Roberto,
thank for answer. It work, Administrator has usermapping aktiviert.
But i have now NoLogonDataAvailableException.
IUser user is OK
Systemalis is OK
What is false?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try:
The following sharing references to WD project:
PORTAL_HOME/com.sap.portal.usermapping
Message was edited by: Roberto Tagliento
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
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.