cancel
Showing results for 
Search instead for 
Did you mean: 

Deployment with Warning: it has hard reference to resource com.sap.portal.u

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

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

roberto_tagliento
Active Contributor
0 Kudos

search inside this directories:

C:\$PROGRAM_FILES$\SAP\JDT\eclipse\plugins

Former Member
0 Kudos

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?

roberto_tagliento
Active Contributor
0 Kudos

The portal user is different from the user that you analize, like OBJECT

look here

or search about access to portal user information.

Sorry nothing to say at the moment.

Message was edited by: Roberto Tagliento

roberto_tagliento
Active Contributor
0 Kudos

Try:

The following sharing references to WD project:

PORTAL_HOME/com.sap.portal.usermapping

Message was edited by: Roberto Tagliento