Skip to Content
author's profile photo Former Member
Former Member

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

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 19, 2006 at 03:35 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 19, 2006 at 01:50 PM

    Try:

    The following sharing references to WD project:

    PORTAL_HOME/com.sap.portal.usermapping

    Message was edited by: Roberto Tagliento

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 19, 2006 at 02:14 PM

    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?

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.