Wildcard in sharing reference?

Hi,
We are about to start developing quite a few webservice consumers on the portal, and I would like to make a generic iview which reads the name of a service from a property value and outputs all methods it contains.
But in order to get the service I need a sharing reference, even for future services!
Is there any way to say, I want a sharing reference to all services ?
Or am I destined to write my own classloader and hack things

Hi Dagfinn,
using a wildcard * in the SharingReference doesn't work, at least not in the example I tried.
I would guess you need to implement your own classloader.
Regards
PD

Similar Messages

  • IMPORTANT: JARs and Sharing References: New Reference

    Hi Portal Developers,
    A new reference is available that lists ALL public portal APIs, and provides the following information:
    Class/interface name
    Package name
    JAR file for compilation
    Location of JAR file
    Required sharing reference for portalapp.xml (runtime reference)
    The list is provided as a spreadsheet in XML, enabling you to sort and filter as needed, and to get a quick overview of the available classes, packages and JARs.
    Click <a href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f08f37c1-992c-2a10-35a6-fbb1600aff51">here</a> for the spreadsheet.
    The spreadsheet also provides similar information for using the built-in tag libraries.
    Feel free to respond to this post, or email the author, if you have any suggestions.
    Daniel Wroblewski

    Hi Daniel,
    > Despite its existence, people still ask for JARs and sharingreferences
    I think the reason is more that these people do not know ClassLocator instead of not wanting to use it... These who have used it once within the SAP/Java/Portal world will <i>never</i> give it away again...
    > The spreadsheet does help with the sharing reference,
    > as well as listing the built-in tag libraries.
    As said before, I didn't want to say <i>anything</i> against your sheet, I would never say anything against anything produced by yours
    > Hope to see you at Tech Ed, Munich. We can have a debate on this there.
    That seems to be a promise that you will be there   Very nice to hear, and I'll be there, too!
    Best regards
    Detlev

  • Sharing References

    Hi all,
    I have a Web Dynpro application, and I want to use the PortalRuntime class to get a reference to a Portal Service.
    At runtime, when the PortalRuntime class is referenced by my code, I get 
    java.lang.NoClassDefFoundError: com/sapportals/portal/prt/runtime/PortalRuntime
    I've been searching for hours what sharing reference I must use to be able to use this class, without success.
    I've two questions:
    1. What sharing reference should I use (exactly)? Or is it sth. else I need?
    2. Why don't I find any information that tells me how to find out what sharing reference to use for a certain class? Isn't there a list of all available standard SAP sharing references?
    Many thanks,
    Jeroen

    I don't really understand what you mean
    e.g. I have this class that reads documents through the KM API
    import java.io.IOException;
    import org.apache.commons.io.IOUtils;
    import com.sapportals.portal.security.usermanagement.IUser;
    import com.sapportals.portal.security.usermanagement.UserManagementException;
    import com.sapportals.wcm.repository.IResource;
    import com.sapportals.wcm.repository.ResourceContext;
    import com.sapportals.wcm.repository.ResourceException;
    import com.sapportals.wcm.repository.ResourceFactory;
    import com.sapportals.wcm.util.content.ContentException;
    import com.sapportals.wcm.util.content.IContent;
    import com.sapportals.wcm.util.uri.RID;
    import com.sapportals.wcm.util.usermanagement.WPUMFactory;
    public final class KmService {
      private static final KmService KM_SERVICE = new KmService();
      private static final String PATH =
        "/documents/templates/";
      private static final String USER = "cmadmin_service";
      private KmService() {
      static KmService getInstance() {
        return KM_SERVICE;
      byte[] getTemplate(String id)
        throws UserManagementException, ResourceException, ContentException, IOException {
        if (id.indexOf('/') != -1) {
          throw new IllegalArgumentException("Template names containing "/" not allowed!");
        IUser user = WPUMFactory.getServiceUserFactory().getServiceUser(USER);
        ResourceContext resourceContext = new ResourceContext(user);
        IResource resource =
          ResourceFactory.getInstance().getResource(
            RID.getRID(PATH + id),
            resourceContext);
        IContent content = resource.getContent();
        return IOUtils.toByteArray(content.getInputStream());
    Do note that I had to create a separate External Library DC that contains the necessary jar files (portal APIs are not available as DCs, so you need to extract them from the server). My Web Dynpro DC then uses the API PP of the External Library DC. My External Library DC currently contains bc.rf.framework_api.jar, bc.sf.framework_api.jar, bc.sf.service.cache_api.jar, bc.util.public_api.jar and com.sap.security.api.ep5.jar (I also need it to use the KM cache service).
    There's an interesting post concerning this subject: Re: Portal Development via NWDI / massive ShowStoppers
    Kind regards,
    /Sigiswald

  • User management sharing reference

    Hi experts!!!
    What sharing reference do i have to add to my web dynpro project, so i can create a new user from it?????
    I tried the com.sap.portal.htmlb.usermanagement, but the deployement fails..
    Thanx in advance!!!

    Hi ,
      Remove the sharing reference u have added and deploy the application , it will work .
    Regards,
    Sunitha Hari

  • Naming Sharing Reference of a WD

    Hi forum:
        How can i to know the naming of a WD, for use like a Sharing Reference in another WD ?
    Thnks
    Josue

    Hallo Josue,
    deployable object names (correspond to Web Dynpro DCs) are named like this:
    <b><vendor-name>/<name segment 1>~<name segment 2>...</b>
    <u>Example:</u>
    <b>DC-name: sap.com/wd/test/ui
    Deployable Object Name: sap.com/wdtestui</b>
    You can list all deployed DC via the telnet console of your SAP J2EE engine:
    1) Open telnet via SAPMMC: tree node <i><system name> - <hostname></i> - open context menu and then select item <i>All Tasks -> Telnet</i>
    2) enter login and password
    3) enter jump 0
    4) enter "add deploy"
    5) enter shell command "list_app"
    You can then see all deployed applications/dcs with their deployable object names.
    Regards, Bertram

  • Sharing reference to UINavigationCommand

    Hi,
    I need the class com.sapportals.wcm.rendering.uicommand.cm.UINavigationCommand which is in the jar km.appl.ui.flex.uicommand_core.jar
    What is the correct sharing reference ? I can't find this anywere. Is there some sort of convention for sharing references? (f.e. "strip the .jar and your good to go")
    Thanks in advance,
    Pieter

    Hi,
    Go to SAP Netweaver Administartor -> System Management -> Applications -> Search for the application and click on the START button.
    If it doesn't worked, check the default trace file. Also check whether u made any naming error in the application.
    Regards
    Deb

  • Sharing reference for IUserPhotoService

    Hi,
    I am looking for the correct sharing reference for IUserPhotoService?
    PORTAL:sap.com/?
    IUserPhotoService service = (IUserPhotoService) WDPortalUtils.getServiceReference(IUserPhotoService.KEY);
    Regards,
    Ladislav

    Hi,
    when i searched in  www.SAPJARFINDER.com i found this information:
    IUserPhotoService (class/interface/exception) | List classes of namespace | No javadoc available | No Code Samples available 
    JAR: kmc.people.shared.photo_api.jar | Explore JAR
    Engine path: j2ee\cluster\server0\apps\sap.com\irj\servlet_jsp\irj\root\WEB-INF\portal\portalapps\com.sap.netweaver.kmc.people\lib\kmc.people.shared.photo_api.jar
    Engine version: NW2004s_SPS13
    Namespace: com.sap.netweaver.kmc.people.photo.service.IUserPhotoService
    i guess instead of using shared refrences you have to use library references because jar is not situated under sap.com folder .and try to put <kmc.people.shared.photo_api> value.
    if it does not work then check the library name in visual admin.
    Correction:
    try to put PORTAL:sap.com/com.sap.netweaver.kmc.people value under shared reference ,if this does not work then try the above.
    Also make sure the jar exist on server and service is active/running.
    Siddharth
    Edited by: Siddharth Jain on Jul 16, 2009 1:22 PM

  • Sharing Reference for Task API

    Hi,
    Does anyone know what sharing reference to use when using the Task API (com.sap.ip.collaboration.task.api.ITask, etc)?
    Thanks,
    Dick

    Hi Dick,
    for general advice, see Can't find them...
    Answer here is: The class can be found within coll.shared.task_api.jar, which is to be found under WEB-ING/portal/portalapps/com.sap.netweaver.coll.shared/lib.
    So the SharingReference has to point to: com.sap.netweaver.coll.shared
    Hope it helps
    Detlev

  • Sharing reference

    Hi
    What reference do i need to add in a portal applicacation (service or htmlb) if i want to use classes like WDDeployableObjectPart from webdynpro framework.
    Florin

    Hi Florin..
    Check this links..
    <a href="https://help.sap.com/javadocs/NW04S/current/wd/index-files/index-18.html">Reference and Reference properties</a>
    and also see these links..
    https://help.sap.com/javadocs/NW04S/current/wd/index-files/index-23.html
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/39dcb1e5-0601-0010-51b2-c522e518213e">PDF</a>
    Urs GS

  • Portalapp.xml sharing reference

    I have the following import statements :
    import java.util.Hashtable;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import com.sap.portal.pcm.iview.IiView;
    import com.sapportals.portal.pcd.gl.IPcdContext;
    import com.sapportals.portal.prt.component.AbstractPortalComponent;
    import com.sapportals.portal.prt.component.IPortalComponentRequest;
    import com.sapportals.portal.prt.component.IPortalComponentResponse;
    And my Portalapp.xml definition looks like:
    <?xml version="1.0" encoding="utf-8"?>
    <application>
      <application-config>
        <property name="SharingReference" value="com.sap.portal.usermapping"/>
      </application-config>
      <components>
        <component name="logonTest">
          <component-config>
            <property name="ClassName" value="logonTest"/>
          </component-config>
          <component-profile/>
        </component>
        </components>
      <services/>
    </application>
    Do I need additional entries?
    Message was edited by: Mario Bajic
    Message was edited by: Mario Bajic

    now i have put
    in my portalapp.xml.
    Same Error and sure that i am soon going to throw my PC out of the Window!
              Hashtable env = new Hashtable();
                   env.put(Context.INITIAL_CONTEXT_FACTORY,IPcdContext.PCD_INITIAL_CONTEXT_FACTORY);
                   env.put(Context.SECURITY_PRINCIPAL,request.getUser());
                   env.put(Context.INITIAL_CONTEXT_FACTORY,"com.sapportals.portal.pcd.gl.PcdInitialContextFactory");
                   env.put("com.sap.portal.jndi.requested_aspect","com.sap.portal.pcd.gl.PersistencyAspect");
                   response.write("Context.INITIAL_CONTEXT_FACTORY : " + Context.INITIAL_CONTEXT_FACTORY + br);
                   response.write("IPcdContext.PCD_INITIAL_CONTEXT_FACTORY : " + IPcdContext.PCD_INITIAL_CONTEXT_FACTORY + br);
                   response.write("Context.SECURITY_PRINCIPAL : " + Context.SECURITY_PRINCIPAL + br);
                   response.write("Context.INITIAL_CONTEXT_FACTORY : " + Context.INITIAL_CONTEXT_FACTORY + br);
                   InitialContext iCtx = new InitialContext(env);
                   response.write("iCtx : " + iCtx);
                   response.write("iCtx.getNameInNamespace() : " + iCtx.getNameInNamespace() +br);
                   String id ="pcd:portal_content/de.local.m1/de.local.iV1/de.local.iVLogonTest";
                   response.write("before Lookup" +br);
                   IiView result = (IiView) iCtx.lookup(id);  <-- Here the Error is thrown!
                   Here is the Error :
                   Portal-Laufzeitfehler
                   Fehler aufgetreten bei der Verarbeitung eines Request für :
                   iView : pcd:portal_content/de.local.m1/de.local.service/de.local.s_logon/de.local.logonTest2
                   Komponentenname : logon.LogonTest
                   com/sap/portal/pcm/iview/IiView.
                   Exception id: 09:55_26/06/06_0016_36232950
                   See the details for the exception ID in the log file
                   My iView is assign to a role with the Id "s_logon".
                   All my Objects in the portal has the prefix "de.local".

  • Specific Application filter while desktop sharing

    I need help for the specific application filter while on desktop sharing. i.e i have to share entire Desktop with current running processe except server application window (UI).http://blogs.msdn.com/b/rds/archive/2007/03/23/writing-a-desktop-sharing-application.aspx
    I got the samples for desktop sharing using Windows Desktop Sharing References. In that I need to filter the specific application. But i didn't know How to do that.
    By using following things we can try to filter the specific Application. But I want to know, how to call Viewer side share property to fire the OnApplicationUpdate Event on server side.
    RDPSRAPI_APP_FLAGS & RDPSRAPI_WND_FLAGS enumeration - How to set the flag for specific application to give high level security process.
    IRDPSRAPIApplicationFilter
    _IRDPSessionEvents_OnApplicationUpdateEventHandler
    Please give me some examples to do this....
    Thanks
    Narmadha

    Hi Narmadha,
    Your issue seems to be out of the scope of this forum. We only focus on issue about RDS/VDI deployment, management and operations. For development and API issue it is appropriate to ask in our MSDN Forum:
    http://social.msdn.microsoft.com/Forums/en-US/categories
    Thanks.
    Dharmesh Solanki
    TechNet Community Support

  • Web Dynpro Project Reference

    Hi all,
    I am working with DTR and I'm trying to figure how to configure DC references correctly. The DCs I have are:
    1. EJB module DC that contain a session bean.
    2. Java DC that uses the EJB module (#1)(client)
    3. Web Dynpro DC that uses the Java DC (#2)
    4. EAR DC that deploys the EJB module (#1)
    I tried to add the Java and EJB DCs as used DCs for the Web Dynpro DC, but this doesn't seem to work.
    How exactly should I define the used DCs (run time, design time, deploy time soft/hard etc? Do you know of any documents that describe how to do it (I found a tutorial in the Web Dynpro tutorials that explains how to use an EJB from web dynpro, but it didn't address any issue regarding DC references)
    Thanks in advance,
    David

    Hi David,
    which part exactly "doesn't seem to work"?
    - Are you able to select the DC to be "used"?
    - Does the used DC appear in the list after you added it?
    - Or do you only have problems at runtime? (The Sharing reference should only affect runtime (!?) )
    I'm not sure which DC should be referenced from where, but do you get an error message, or does simply nothing happen, when you create a use dependency to the other DC?
    I had this problem several times. When I created a dependency nothing happened and after a few more tries the dependency suddenly was created and shown in the list of used DCs.
    This is just another suggestion. Maybe it is really not possible to reference DCs the way you try.
    Regards, Alex

  • **URGENT** Deplyment error while using service reference

    I am using Landscape service to get the system information from system landscape directory. I added the service reference inside my web dynpro application using NW studio. When I deploy this service I get following error:
    Oct 21, 2005 3:06:16 PM /userOut/deploy (com.sap.ide.eclipse.sdm.threading.DeployThreadManager) [Thread[Deploy Thread,5,main]] WARNING:
    [023]Deployment finished with warning
    Settings
    URL to deploy : file:/C:/DOCUME1/sam/LOCALS1/Temp/temp61301XYZ_Web_Dynpro.ear
    Result
    => deployed with warning : file:/C:/DOCUME1/sam/LOCALS1/Temp/temp61301XYZ_Web_Dynpro.ear
    Finished with warnings: development component 'XYZ_Web_Dynpro'/'local'/'LOKAL'/'0.2005.10.21.15.05.52':
    Caught exception during application startup from SAP J2EE Engine's deploy service:
    java.rmi.RemoteException: Error occurred while starting application local/XYZ_Web_Dynpro and wait. Reason: Clusterwide execption: server ID 7099050:<Localization failed: ResourceBundle='com.sap.engine.services.deploy.DeployResourceBundle', ID='com.sap.engine.services.deploy.container.DeploymentException: <Localization failed: ResourceBundle='com.sap.engine.services.deploy.DeployResourceBundle', ID=' STATUS_MISSING', Arguments: []> : Can't find resource for bundle java.util.PropertyResourceBundle, key STATUS_MISSING', Arguments: []> : Can't find resource for bundle java.util.PropertyResourceBundle, key com.sap.engine.services.deploy.container.DeploymentException: <Localization failed: ResourceBundle='com.sap.engine.services.deploy.DeployResourceBundle', ID=' STATUS_MISSING', Arguments: []> : Can't find resource for bundle java.util.PropertyResourceBundle, key STATUS_MISSING
    (message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).REMEXC)
    Deployment exception : Got problems during deployment
    I wrote a sample iView without using dynpro & added the service reference as "landscape" inside the portalapp.xml & that iView worked fine.
    So I know that the service name is correct & the service is running on the portal.
    All I need to find out is how do I specify the reference of that service in my web dynpro application.

    I have exactly the SAME problem
    I tried putting PORTAL:sap.com/<your service name> in the sharing reference as well as in the service reference. But I still get the error during deployment.
    I also tried putting it in "service referece". Same error.
    I also tried just sap.com/<your service name>. But it didn't help either.

  • WebDynpro development : KM reference - PortalApplicationNotFoundException

    Hello All,
    I have created a WebDynpro application where i would read an XML in KM folder and display the content.But, when i *** the sharing reference "PORTAL:sap.com/com/sap.km.application" as WebDynpro sharing reference, i get teh application but with warnings. When i open the message, i see the PortalApplicationNotFoundException.
    I have added the JARs bc.util.public_api.jar,bc.sf.framework_api.jar,bc.rf.global.service.urlgenerator_api.jar,bc.rf.framework_api.jar,com.sap.security.api.e p5.jar.
    I would like what could be the cause, our team had used the same reference in previous project.
    Caused by: com.sap.engine.services.deploy.container.DeploymentException: <Localization failed: ResourceBundle='com.sap.engine.services.deploy.DeployResourceBundle', ID='Exception while starting: SAPJ2EE::local/DisplayNewsCategory', Arguments: []> : Can't find resource for bundle java.util.PropertyResourceBundle, key Exception while starting: SAPJ2EE::local/DisplayNewsCategory
         at com.sap.portal.prt.sapj2ee.SAPJ2EEPortalRuntime.getAndStartSAPJ2EEApplicationItem(SAPJ2EEPortalRuntime.java:867)
         at com.sap.portal.prt.sapj2ee.PortalRuntimeContainer.prepareStart(PortalRuntimeContainer.java:482)
         ... 23 more
    Caused by: com.sapportals.portal.prt.runtime.PortalRuntimeException: [ExternalApplicationItem.prepare]: SAPJ2EE::local/DisplayNewsCategory
         at com.sapportals.portal.prt.core.broker.ExternalApplicationItem.prepare(ExternalApplicationItem.java:188)
         at com.sapportals.portal.prt.core.broker.SAPJ2EEApplicationItem.prepare(SAPJ2EEApplicationItem.java:232)
         at com.sapportals.portal.prt.core.broker.SAPJ2EEApplicationItem.start(SAPJ2EEApplicationItem.java:192)
         at com.sapportals.portal.prt.service.sapj2ee.Mediator.getAndStartExternalApplication(Mediator.java:132)
         at com.sap.portal.prt.sapj2ee.StartPortalApplication.coreRun(StartPortalApplication.java:59)
         at com.sap.portal.prt.sapj2ee.SAPJ2EEPortalRuntime.getAndStartSAPJ2EEApplicationItem(SAPJ2EEPortalRuntime.java:863)
         ... 24 more
    Caused by: <b>com.sapportals.portal.prt.core.broker.PortalApplicationNotFoundException: Could not find portal application com.sap~km.sap.application</b>
         at com.sapportals.portal.prt.core.broker.PortalApplicationItem.prepare(PortalApplicationItem.java:413)
         at com.sapportals.portal.prt.core.broker.ExternalApplicationItem.prepare(ExternalApplicationItem.java:180)
         ... 29 more
    Thanks & Regards,
    Sharath

    Hi Sharath,
    the SharingReference should point to PORTAL:sap.com/com.sap.km.application.
    Not to PORTAL:sap.com/com/sap.km.application.
    Hope this helps.
    Regards,
    Michael

  • Usage of shared members

    Hi, Experts..
    Here is an interesting question with me at the implementstion stage.we are building application for product structure.
    In that we have item x,item y,item z.
    a,b,c,d(childs) are required to make item x
    a,b,e,f(childs) are required to make item y
    a,b,g,h(childs) are required to make item z.
    That means a,b are used at multiple places to make different items.(i am supposed to build the hierarchy by taking item x,item y,item z as parents and a,b,c,d,e,f,g,h as the childs under specific parents.)
    I am willing to do using shered members concept.But here in this example 4 childs are there.but in our source file nearly 4000 duplicates are there which are repeating.I think it is impossible to assign manually every member as shared...
    How to proceed for this..?

    Well, you sure don't want to add them manually. :)
    How about a source table for this dimension in parent/child format?
    You can have the "master" a & b in the first rollup to a parent, and then the shared reference as many times as you want.
    Of course don't sum the parents or you will count the values of a and b multiple times and get a really screwy number.
    For an excellent review of how to do this through a dimension load rule, see our old friend the DBAG.
    Regards,
    Cameron Lackpour

Maybe you are looking for

  • Sending table using SO_NEW_DOCUMENT_SEND_API1

    Dear All, I want to display a table in the mail sent from the SAP system using the function module SO_NEW_DOCUMENT_SEND_API1. Is there any way to do this? or Is there any other function module for doing this? Thanks Manik L Dhakate Message was edited

  • Long runnning IDOC Archiving jobs

    Hi Techies, Long runnning IDOC Archiving jobs: ARV_IDOC_WRI* are being observed in PRD system with Avg runtime > 150,000 sec. Job Details: Main Program: RSEXARCA Parameter: IDOC ALL MONTH These jobs are also resource consuming & extensively using CPU

  • Crystal Reports and BillQuick

    I am having problems connecting BillQuick and Crystal Reports. I am fairly new to both programs. I have gone through the Crystal Reports tutorial and I am confident that once I have the data, I will be able to create the report I want. Can anyone off

  • Can't open downloaded rental movies on ipad

    I downloaded two movies. I see the picture of the movie in movies but when I click play it says movie won't download. What do I do.

  • Import video frames to layers

    i'm using Photoshop CS3 extended and i'm trying to import video frames to layers. I keep getting blank frames when i do it. It also happens when I open a video in photoshop. Does anyone know how to fix it?