Skip to Content
0
Former Member
Oct 19, 2006 at 10:58 AM

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

59 Views

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