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".

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

  • How to add, JS and image files in portalapp.xml

    Hi All,
    I was trying to implement multiple level hover detailed navigation in iview for which I got couple of css scripts from web which include javascripts.
    I placed these files in respective folders and their reference in header.jsp but when the iview is rendered in browser the reference is changing to .htm
    So please help me out how to place these script / image files in PAR file and their reference in portalapp.xml & header.jsp.
    Thanks in advance,
    Sai Krishna.

    1) The CSS file you have , save as "jsp" file and please place in the jsp folder.
    suppose your jsp is header.jsp and your css file is header_style.jsp
    include the css jsp - header_style.jsp in header.jsp like
    <%-- an include clause for css file --%>
    <%@ include file="header_style.jsp" %>
    2) All your images , please place in the "images" folder.
    3) To access the images use like below: in CSS file (jsp)
    in header_style.jsp
    yourimage: url(<%=mimeUrl%>/images/Border.gif);
    in header.jsp
    <%
    String mimeUrl = componentRequest.getWebResourcePath();
    %>
    4) more info for creating the hover menu read this blog
    https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/4913
    Hope this will help you.

  • 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

  • Plug-in load class error while running portalapp.xml file in NWDS7.0

    hi,
    im facing a problem in NWDS7.0 while running portalapp.xml file im getting error realted some plug-in load class error.
    Even 3 times i have re-installed but still getting same error.
    Please help me how to over come this. This is error im getting :
    Please open this link with Firefox so that you can able to see error.
    http://www.imageurlhost.com/images/jri5lj7lpftu23ejyye0_Error.jpg
    Regards,
    prasad.

    Dear Prasad
    Please right click on portalapp.xml > open with > check all the available editors.
    Also restore default edition in NWDS. Go to windows > preference > Workbench OR Web editors > click on restore default and Apply and then Ok.
    then close the NWDS and open it.
    Hope it will helps
    Best Regards
    Arun Jaiswal

  • How to specify EPCFLevel in portalapp.xml of a wdbdynpro DC

    Hi All,
    Can I specify EPCF level in portalapp.xml file of webdynpro DC?
    I am giving existing portalapp.xml :
    <?xml version="1.0" encoding="UTF-8"?>
    <application>
      <application-config>
                <property name="SharingReference"    value="sap.com/tcwddispwda"/>
                <property name="SharingReference"    value="sap.com/MODEL_COMP"/>
                <property name="SharingReference"    value="sap.com/tcwdcorecomp"/>
                <property name="SharingAccess"       value="true"/>
                <property name="LibrariesReference"    value="tc/ddic/ddicservices"/>
                <property name="LibrariesReference"    value="webservices_lib"/>
                <property name="LibrariesReference"    value="com.sap.aii.proxy.framework"/>
                <property name="LibrariesReference"    value="tc/graphics/igs"/>
                <property name="LibrariesReference"    value="com.sap.mw.jco"/>
                <property name="LibrariesReference"    value="com.sap.lcr.api.cimclient"/>
                <property name="LibrariesReference"    value="sapxmltoolkit"/>
                <property name="LibrariesReference"    value="com.sap.aii.util.rb"/>
                <property name="LibrariesReference"    value="com.sap.util.monitor.jarm"/>
                <property name="LibrariesReference"    value="tc/ddic/ddicruntime"/>
                <property name="LibrariesReference"    value="com.sap.security.api.sda"/>
                <property name="LibrariesReference"    value="com.sap.aii.util.xml"/>
                <property name="LibrariesReference"    value="tc/col/api"/>
                <property name="LibrariesReference"    value="com.sap.aii.util.misc"/>
                <property name="LibrariesReference"    value="tc/cmi"/>
                <property name="LibrariesReference"    value="tc/col/runtime"/>
                      <property name="ServicesReference"   value="sld"/>
                  </application-config>
      <components/>
      <services/>
      <webdynpro>
          <!-- applications -->
          <applications>
                        <part shortName="Order_list" name="com.pwc.app.Order_list">         
              <!-- application to component -->
                                  </part>
                    </applications>
          <!-- components -->
          <components>
                        <part shortName="Order_list" name="com.pwc.app.Order_list">
              <!-- component to component(Interfaces) -->
              <!-- component to models --> 
                                               <alias name="com.pwc.ModelComp" objectName="sap.com/MODEL_COMP"         partName="com.pwc.ModelComp" partType="Model"/>                 
                                            <!-- component to implementedInterfaces -->         
                                  </part>
                    </components>
          <!-- interface definitions -->
          <interfaces>
                    </interfaces>
          <models>
              <!-- models -->
                    </models>
         <runtime-classes>
         </runtime-classes>
         <wdgeninfo>
              <wdgencomponent name="SapMetamodelCore">7.0006.20050929162929.0000 (release=645_VAL_REL, buildtime=2006-01-14:14:49:38[UTC], changelist=369752, host=PWDFM101.wdf.sap.corp)</wdgencomponent>
              <wdgencomponent name="SapMetamodelCommon">7.0006.20050929162929.0000 (release=645_VAL_REL, buildtime=2006-01-14:14:49:45[UTC], changelist=369752, host=PWDFM101.wdf.sap.corp)</wdgencomponent>
              <wdgencomponent name="SapMetamodelDictionary">7.0006.20051128142655.0000 (release=645_VAL_REL, buildtime=2006-01-14:14:57:39[UTC], changelist=378069, host=PWDFM101.wdf.sap.corp)</wdgencomponent>
              <wdgencomponent name="SapMetamodelWebDynpro">7.0006.20051128151854.0000 (release=645_VAL_REL, buildtime=2006-01-14:15:02:09[UTC], changelist=378109, host=PWDFM101.wdf.sap.corp)</wdgencomponent>
              <wdgencomponent name="SapGenerationFrameworkCore">7.0006.20050713144242.0000 (release=645_VAL_REL, buildtime=2006-01-14:14:48:59[UTC], changelist=357697, host=PWDFM101.wdf.sap.corp)</wdgencomponent>
              <wdgencomponent name="SapDictionaryGenerationCore">7.0006.20051128142640.0000 (release=645_VAL_REL, buildtime=2006-01-14:14:59:42[UTC], changelist=378068, host=PWDFM101.wdf.sap.corp)</wdgencomponent>
              <wdgencomponent name="SapDictionaryGenerationTemplates">(unknown)</wdgencomponent>
              <wdgencomponent name="SapWebDynproGenerationCore">7.0006.20051128151834.0000 (release=645_VAL_REL, buildtime=2006-01-14:15:05:21[UTC], changelist=378108, host=PWDFM101.wdf.sap.corp)</wdgencomponent>
              <wdgencomponent name="SapWebDynproGenerationTemplates">7.0006.20060111154644.0000 (release=645_VAL_REL, buildtime=2006-01-14:15:18:53[UTC], changelist=384368, host=pwdfm101)</wdgencomponent>
              <wdgencomponent name="SapWebDynproGenerationCTemplates">7.0006.20060111154644.0000 (release=645_VAL_REL, buildtime=2006-01-14:15:18:53[UTC], changelist=384368, host=pwdfm101)</wdgencomponent>
              <wdgencomponent name="SapIdeWebDynproCheckLayer">7.0006.20051128151834.0000 (release=645_VAL_REL, buildtime=2006-01-14:15:05:10[UTC], changelist=378108, host=PWDFM101.wdf.sap.corp)</wdgencomponent>
         </wdgeninfo>
      </webdynpro>
    </application>
    Thanks in advance .
    Raktim

    Hi Raktim:
    I looked around on SDN and it seems that i have found what you have been looking for.
    Kindly look at page number 24 and 25 of this page
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/4d46fb8a-0b01-0010-9fbe-e4b96533b222
    P.S: Kindly assign points if your query is resolved, also close the question to assist other users narrow the search and find solutions

  • How to retrieve the data/property value from portalapp.xml

    Hi I would like to retrive the some common data from the portalapp.xml file
    <application>
      <application-config>
        <property name="PrivateSharingReference" value="com.sap.portal.htmlb"/>
          </application-config>
      <components>
        <component name="DynZMMGR">
          <component-config>
            <property name="ClassName" value="DynZMMGR"/>
            <property name="SecurityZone" value="DynZMMGR/high_safety"/>
            <property name="ComponentType" value="jspnative"/>
            <property name="JSP" value="pagelet/DynJspZMMGR.jsp"/>
          </component-config>
          <component-profile/>
        </component>
        <component name="dynpagedel">
          <component-config>
            <property name="ClassName" value="dynpagedel"/>
          </component-config>
          <component-profile/>
        </component>
        <component name="VARIANTLIST">
          <component-config>
            <property name="ClassName" value="com.sap.ep.r3rpts.VARIANTLIST"/>
            <property name="SecurityZone" value="com.sap.ep.r3rpts.VARIANTLIST/high_safety"/>
          </component-config>
          <component-profile/>
        </component>
        <component name="DynZMM33">
          <component-config>
            <property name="ClassName" value="DynZMM33"/>
            <property name="SecurityZone" value="DynZMM33/high_safety"/>
            <property name="ComponentType" value="jspnative"/>
            <property name="JSP" value="pagelet/DynJspZMM33.jsp"/>
          </component-config>
          <component-profile/>
        </component>
      </components>
      <services/>
    </application>
    The above is my portalapp.xml file .
    I want to retrieve the common data across the component.
    These  datas are common across the components .
    I kmow by putting the data inside the
    component name="DynZMM33">
          <component-config>
            <property name="ClassName" value="DynZMM33"/>
            <property name="SecurityZone" value="DynZMM33/high_safety"/>
            <property name="ComponentType" value="jspnative"/>
            <property name="JSP" value="pagelet/DynJspZMM33.jsp"/>
          </component-config>
    <component-profile>
       <property name="UserID" value="userid"/>
       <property name="password" value="password"/>
    </component-profile>
    </component>
    this becoms component specific ... which I can retriev the by using
    String ClientVal = request.getComponentContext().getProfile().getProperty("Client");
    in doContent()  method ..
    But this way i have to specify these properties in all the component.. which is repetetive in nature.
    I would rather put it in common location and want to retrieve the info from the portalapp.xml...
    How to achieve this
    I am using "AbstractPortalComponent"  .
    thanks
    pkiran

    Hi Prashanth,
    see Reading another iView's profile personalized values and Validate PCD URI
    Anyhow, maybe you should implement a service which returns the values (from the service profile). This would be more clean for accessing global values.
    Hope it helps
    Detlev

  • Error on portalapp.xml

    hi all,
    I have this portalapp.xml which have lot of components in it, but i am not sure that which components is needed to run my portal application called Profile.jsp/Profile.java and ProfileBeans.java. And there's a <registry> tag which i dun really understand what is it about. There also also some strange coding within the <application-config> tag which i do not realli knoe the meaning of it.
    <?xml version="1.0" encoding="utf-8"?>
    <application>
      <!THIS FILE IS A COPY OF THE ORIGINAL VERSION STORED IN THE PCD. PLEASE DO NOT CHANGE IT!>
      <registry>
        <entry path="/runtime/alias.mappers/DynamicSystem1" name="System1Service" type="service"/>
        <entry path="/runtime/transformers" type="subcontext"/>
        <entry path="/runtime/transformers/com.sap.pct.pdk.portalruntime" name="TransformersProvider" type="service"/>
      </registry>
      <application-config>
        <property name="SharingReference" value="com.sap.portal.appintegrator, com.sap.portal.htmlb,      com.sap.portal.ivs.connectorservice, com.sap.portal.usermanagement,       com.sap.portal.usermapping, landscape, com.sap.portal.ivs.api_dynamicSystemService, htmlb, com.sap.pct.pdk.util,      com.sap.portal.navigation.service, com.sap.portal.navigation.api_mimeservice, com.sap.portal.navigation.helperservice,      com.sap.portal.transformationservice, com.sap.portal.runtime.application.soap,com.sap.portal.useragent,jcoclient"/>
        <property name="releasable" value="true"/>
        <property name="PrivateSharingReference" value="com.sap.portal.htmlb"/>
        <property name="Vendor" value="sap.com"/>
        <property name="Domain" value="portal"/>
      </application-config>
      <components>
        <component name="ExampleLayer">
          <component-config>
            <property name="ClassName" value="ApplicationIntegratorStarter"/>
            <property name="SafetyLevel" value="no_safety"/>
          </component-config>
          <component-profile>
            <property name="TopLayer" value="Exemplary9to5LayerDefinition">
              <property name="personalization" value="none"/>
              <property name="inheritance" value="final"/>
            </property>
          </component-profile>
        </component>
        <component name="SimpleSapConnection">
          <component-config>
            <property name="ClassName" value="SimpleSapConnection"/>
            <property name="SafetyLevel" value="no_safety"/>
          </component-config>
          <component-profile>
            <property name="SystemIdentifier" value="PDK_R3_BACKEND"/>
          </component-profile>
        </component>
        <component name="SapConnection">
          <component-config>
            <property name="ClassName" value="SapConnection"/>
            <property name="SafetyLevel" value="no_safety"/>
          </component-config>
          <component-profile/>
        </component>
        <component name="CfBapiBankGetList">
          <component-config>
            <property name="ClassName" value="CfBapiBankGetList"/>
            <property name="SafetyLevel" value="no_safety"/>
          </component-config>
          <component-profile/>
        </component>
        <component name="ExampleOneProducer">
          <component-config>
            <property name="ComponentType" value="jspnative"/>
            <property name="JSP" value="/pagelet/eventproducerone.jsp"/>
            <property name="SafetyLevel" value="no_safety"/>
          </component-config>
          <component-profile>
            <property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld"/>
          </component-profile>
        </component>
        <component name="ExampleOneConsumer">
          <component-config>
            <property name="ComponentType" value="jspnative"/>
            <property name="JSP" value="/pagelet/eventconsumerone.jsp"/>
            <property name="SafetyLevel" value="no_safety"/>
          </component-config>
          <component-profile>
            <property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld"/>
          </component-profile>
        </component>
        <component name="ExampleOneCombined">
          <component-config>
            <property name="ClassName" value="com.sapportals.pdk.util.componentPanel.ComponentPanel"/>
            <property name="SafetyLevel" value="no_safety"/>
          </component-config>
          <component-profile>
            <property name="height" value="400px"/>
            <property name="orientation" value="h"/>
            <property name="width" value="400px"/>
            <property name="components" value="com.sap.pct.pdk.portalruntime.ExampleOneProducer com.sap.pct.pdk.portalruntime.ExampleOneConsumer"/>
            <property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld"/>
          </component-profile>
        </component>
        <component name="ExampleTwoProducer">
          <component-config>
            <property name="ClassName" value="EventProducer2PageProcessor"/>
            <property name="SafetyLevel" value="no_safety"/>
          </component-config>
          <component-profile>
            <property name="Isolated" value="true"/>
            <property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld"/>
          </component-profile>
        </component>
        <component name="ExampleTwoConsumer">
          <component-config>
            <property name="JSP" value="/pagelet/eventconsumertwo.jsp"/>
            <property name="ComponentType" value="jspnative"/>
            <property name="SafetyLevel" value="no_safety"/>
          </component-config>
          <component-profile>
            <property name="Isolated" value="true"/>
            <property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld"/>
          </component-profile>
        </component>
        <component name="ExampleTwoCombined">
          <component-config>
            <property name="ClassName" value="com.sapportals.pdk.util.componentPanel.ComponentPanel"/>
            <property name="SafetyLevel" value="no_safety"/>
          </component-config>
          <component-profile>
            <property name="height" value="400px"/>
            <property name="orientation" value="h"/>
            <property name="width" value="400px"/>
            <property name="components" value="com.sap.pct.pdk.portalruntime.ExampleTwoProducer com.sap.pct.pdk.portalruntime.ExampleTwoConsumer"/>
          </component-profile>
        </component>
        <component name="ExampleThreeProducer">
          <component-config>
            <property name="ClassName" value="EventProducer3PageProcessor"/>
            <property name="SafetyLevel" value="no_safety"/>
          </component-config>
          <component-profile>
            <property name="Isolated" value="true"/>
            <property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld"/>
          </component-profile>
        </component>
        <component name="ExampleThreeConsumer">
          <component-config>
            <property name="JSP" value="/pagelet/eventconsumerthree.jsp"/>
            <property name="ComponentType" value="jspnative"/>
            <property name="SafetyLevel" value="no_safety"/>
          </component-config>
          <component-profile>
            <property name="Isolated" value="true"/>
            <property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld"/>
          </component-profile>
        </component>
        <component name="ExampleThreeCombined">
          <component-config>
            <property name="ClassName" value="com.sapportals.pdk.util.componentPanel.ComponentPanel"/>
            <property name="SafetyLevel" value="no_safety"/>
          </component-config>
          <component-profile>
            <property name="height" value="400px"/>
            <property name="orientation" value="h"/>
            <property name="width" value="400px"/>
            <property name="components" value="com.sap.pct.pdk.portalruntime.ExampleThreeProducer com.sap.pct.pdk.portalruntime.ExampleThreeConsumer"/>
          </component-profile>
        </component>
        <component name="NavigationExample1">
          <component-config>
            <property name="ClassName" value="NavigationExample"/>
            <property name="SafetyLevel" value="no_safety"/>
          </component-config>
          <component-profile>
            <property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld"/>
          </component-profile>
        </component>
        <component name="SimpleNavigationExample">
          <component-config>
            <property name="ClassName" value="SimpleNavigationExample"/>
            <property name="SecurityZone" value="com.sapportals.portal.navigation/no_safety"/>
          </component-config>
          <component-profile/>
        </component>
        <component name="extpage">
          <component-config>
            <property name="ClassName" value="com.sap.pct.pdk.extpage.ExternalPageComponent"/>
            <property name="SecurityZone" value="com.sap.pct.pdk/low_safety"/>
          </component-config>
          <component-profile/>
        </component>
        <component name="OBNExampleSource">
          <component-config>
            <property name="SafetyLevel" value="no_safety"/>
            <property name="ComponentType" value="jspnative"/>
            <property name="JSP" value="pagelet/OBNExampleSource.jsp"/>
          </component-config>
          <component-profile>
            <property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld"/>
          </component-profile>
        </component>
        <component name="OBNExampleSourceWithHover">
          <component-config>
            <property name="SafetyLevel" value="no_safety"/>
            <property name="ClassName" value="OBNExampleSourceHoverPortalComponent"/>
          </component-config>
          <component-profile>
            <property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld"/>
            <property name="systemalias" value="PDKDummySystem">
              <property name="personalization" value="dialog"/>
              <property name="inheritance" value="non-final"/>
            </property>
            <property name="businessobjectid" value="PDKDummyObjectID">
              <property name="personalization" value="dialog"/>
              <property name="inheritance" value="non-final"/>
            </property>
          </component-profile>
        </component>
        <component name="OBNExampleSimpleSourceUsingNavigationGenerator">
          <component-config>
            <property name="SafetyLevel" value="no_safety"/>
            <property name="ClassName" value="OBNSimpleLinkPortalComponent"/>
          </component-config>
          <component-profile>
            <property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld"/>
            <property name="systemalias" value="PDKDummySystem">
              <property name="personalization" value="dialog"/>
              <property name="inheritance" value="non-final"/>
            </property>
            <property name="businessobjectid" value="PDKDummyObjectID">
              <property name="personalization" value="dialog"/>
              <property name="inheritance" value="non-final"/>
            </property>
          </component-profile>
        </component>
        <component name="OBNExampleParamTarget">
          <component-config>
            <property name="SafetyLevel" value="no_safety"/>
            <property name="ComponentType" value="jspnative"/>
            <property name="JSP" value="pagelet/OBNExampleParamTarget.jsp"/>
          </component-config>
          <component-profile>
            <property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld"/>
          </component-profile>
        </component>
        <component name="obnGenericLinkExample">
          <component-config>
            <property name="ClassName" value="obnGenericLinkExample"/>
          </component-config>
          <component-profile>
            <property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld"/>
            <property name="systemalias" value="PDKDummySystem">
              <property name="personalization" value="dialog"/>
              <property name="inheritance" value="non-final"/>
            </property>
            <property name="businessobjectid" value="Google">
              <property name="personalization" value="dialog"/>
              <property name="inheritance" value="non-final"/>
            </property>
            <property name="operationid" value="">
              <property name="personalization" value="dialog"/>
              <property name="inheritance" value="non-final"/>
            </property>
            <property name="parameter" value="New York">
              <property name="personalization" value="dialog"/>
              <property name="inheritance" value="non-final"/>
            </property>
            <property name="header" value="Personalize header text here">
              <property name="personalization" value="dialog"/>
              <property name="inheritance" value="non-final"/>
            </property>
            <property name="text" value="Personalize body text here">
              <property name="personalization" value="dialog"/>
              <property name="inheritance" value="non-final"/>
            </property>
            <property name="linktext" value="Personalize link text here">
              <property name="personalization" value="dialog"/>
              <property name="inheritance" value="non-final"/>
            </property>
          </component-profile>
        </component>
        <component name="obnDynamicNavigationExample">
          <component-config>
            <property name="ClassName" value="obnDynamicNavigationExample"/>
          </component-config>
          <component-profile/>
        </component>
        <component name="DynamicPageSample">
          <component-config>
            <property name="ClassName" value="DynamicPageSample"/>
            <property name="SafetyLevel" value="no_safety"/>
          </component-config>
          <component-profile/>
        </component>
        <component name="PageBuilderClientAPI">
          <component-config>
            <property name="ClassName" value="PageBuilderClientAPI"/>
            <property name="SafetyLevel" value="no_safety"/>
          </component-config>
          <component-profile/>
        </component>
        <component name="default">
          <component-config>
            <property name="ClassName" value="UseSystemLandscape"/>
            <property name="SafetyLevel" value="no_safety"/>
          </component-config>
          <component-profile>
            <property name="SystemIdentifier" value="PDK_R3_BACKEND">
              <property name="personalization" value="dialog"/>
            </property>
          </component-profile>
        </component>
        <component name="TestTransformationService">
          <component-config>
            <property name="ClassName" value="com.sap.pct.pdk.httpconnectivity.testtransformationservice.TestTransformationService"/>
            <property name="SafetyLevel" value="no_safety"/>
          </component-config>
          <component-profile/>
        </component>
        <component name="TestSimpleTransformation">
          <component-config>
            <property name="ClassName" value="com.sap.pct.pdk.httpconnectivity.testtransformationservice.TestSimpleTransformation"/>
            <property name="SafetyLevel" value="no_safety"/>
          </component-config>
          <component-profile/>
        </component>
        <component name="UserInfo">
          <component-config>
            <property name="ClassName" value="UserInfo"/>
            <property name="SecurityZone" value="UserInfo/low_safety"/>
          </component-config>
          <component-profile/>
        </component>
        <component name="UserMapping">
          <component-config>
            <property name="ClassName" value="UserMapping"/>
            <property name="SecurityZone" value="UserMapping/low_safety"/>
          </component-config>
          <component-profile/>
        </component>
        <component name="EditUser">
          <component-config>
            <property name="ClassName" value="EditUser"/>
            <property name="SecurityZone" value="EditUser/low_safety"/>
          </component-config>
          <component-profile/>
        </component>
        <component name="CreateUser">
          <component-config>
            <property name="ClassName" value="CreateUser"/>
            <property name="SecurityZone" value="CreateUser/high_safety"/>
          </component-config>
          <component-profile/>
        </component>
        <component name="Portaloto">
          <component-config>
            <property name="ClassName" value="Portaloto"/>
            <property name="SafetyLevel" value="no_safety"/>
          </component-config>
          <component-profile>
            <property name="MaxHits" value="80">
              <property name="plaindescription" value="Highest number in the game"/>
              <property name="type" value="Number"/>
              <property name="description" value="Highest number in the game"/>
            </property>
            <property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld"/>
          </component-profile>
        </component>
        <component name="PortalotoInternational">
          <component-config>
            <property name="ClassName" value="PortalotoInternational"/>
            <property name="ResourceBundleName" value="lotoresource"/>
            <property name="SafetyLevel" value="no_safety"/>
          </component-config>
          <component-profile>
            <property name="MaxHits" value="80">
              <property name="plaindescription" value="MaxHitsDescription"/>
              <property name="type" value="Number"/>
              <property name="description" value="MaxHitsDescription"/>
            </property>
            <property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld"/>
          </component-profile>
        </component>
        <component name="MyGooglePage">
          <component-config>
            <property name="ClassName" value="com.tutorial.wsdl2service.MyGooglePage"/>
            <property name="SafetyLevel" value="no_safety"/>
          </component-config>
          <component-profile/>
        </component>
        <component name="UsingIPortalComponent">
          <component-config>
            <property name="ClassName" value="UsingIPortalComponent"/>
            <property name="SafetyLevel" value="no_safety"/>
          </component-config>
          <component-profile/>
        </component>
        <component name="UsingAbstractPortalComponent">
          <component-config>
            <property name="ClassName" value="UsingAbstractPortalComponent"/>
            <property name="SafetyLevel" value="no_safety"/>
          </component-config>
          <component-profile/>
        </component>
        <component name="StoreBeans">
          <component-config>
            <property name="ClassName" value="ScopesAPC"/>
            <property name="SafetyLevel" value="no_safety"/>
          </component-config>
          <component-profile/>
        </component>
        <component name="ExampleOne">
          <component-config>
            <property name="ClassName" value="ExampleOne"/>
            <property name="SafetyLevel" value="no_safety"/>
          </component-config>
          <component-profile/>
        </component>
        <component name="ExampleTwo">
          <component-config>
            <property name="ClassName" value="ExampleTwo"/>
            <property name="SafetyLevel" value="no_safety"/>
          </component-config>
          <component-profile>
            <property name="HelloString" value="Hello PDK user!"/>
          </component-profile>
        </component>
        <component name="ExampleThree">
          <component-config>
            <property name="ClassName" value="ExampleThree"/>
            <property name="SafetyLevel" value="no_safety"/>
          </component-config>
          <component-profile>
            <property name="LastUser" value="">
              <property name="personalization" value="dialog"/>
            </property>
            <property name="HelloString" value="Hello PDK user!"/>
          </component-profile>
        </component>
        <!jsp NATIVE SUPPORT>
        <component name="JSPnative">
          <component-config>
            <property name="JSP" value="index"/>
            <property name="ComponentType" value="jspnative"/>
            <property name="SafetyLevel" value="no_safety"/>
          </component-config>
          <component-profile/>
        </component>
        <!Two components of the personalization example>
        <!Component 'personalization' represents a custom personalization dialog>
        <component name="personalization">
          <component-config>
            <property name="ClassName" value="Personalization"/>
            <property name="SafetyLevel" value="no_safety"/>
          </component-config>
          <component-profile/>
        </component>
        <!Component 'personalizationoutput' is the component that is shown on a page>
        <component name="personalizationoutput">
          <component-config>
            <property name="ClassName" value="PersonalizationOut"/>
            <property name="mode" value="edit">
              <property name="delegate" value="com.sap.pct.pdk.prt.personalization"/>
            </property>
            <property name="SafetyLevel" value="no_safety"/>
          </component-config>
        </component>
        <component name="UserAgent">
          <component-config>
            <property name="ClassName" value="UserAgentDynPage"/>
            <property name="SafetyLevel" value="no_safety"/>
          </component-config>
          <component-profile>
            <property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld"/>
          </component-profile>
        </component>
        <component name="JCoBasics">
          <component-config>
            <property name="ClassName" value="JCoBasics"/>
            <property name="SecurityZone" value="com.sap.portal.pdk/low_safety"/>
          </component-config>
          <component-profile>
            <property name="SystemIdentifier" value="PDK_R3_BACKEND"/>
            <property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld"/>
          </component-profile>
        </component>
        <component name="JCoClientPool">
          <component-config>
            <property name="ClassName" value="JCoClientPool"/>
            <property name="SecurityZone" value="com.sap.portal.pdk/low_safety"/>
          </component-config>
          <component-profile>
            <property name="SystemIdentifier" value="PDK_R3_BACKEND"/>
            <property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld"/>
          </component-profile>
        </component>
        <component name="JCoGetData">
          <component-config>
            <property name="ClassName" value="JCoGetData"/>
            <property name="SecurityZone" value="com.sap.portal.pdk/low_safety"/>
          </component-config>
          <component-profile>
            <property name="SystemIdentifier" value="PDK_R3_BACKEND"/>
            <property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld"/>
          </component-profile>
        </component>
        <component name="JCoModel">
          <component-config>
            <property name="ClassName" value="JCoModel"/>
            <property name="SecurityZone" value="com.sap.portal.pdk/low_safety"/>
          </component-config>
          <component-profile>
            <property name="SystemIdentifier" value="PDK_R3_BACKEND"/>
            <property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld"/>
          </component-profile>
        </component>
      </components>
      <services>
        <service name="System1Service">
          <service-config>
            <property name="className" value="com.sap.portal.dynamicsystem.sample.MyAliasMapping"/>
            <property name="startup" value="true"/>
          </service-config>
        </service>
        <service name="FruitShopService">
          <service-config>
            <property name="className" value="fruity.ShoppingCartManager"/>
            <property name="classNameFactory" value=""/>
            <property name="classNameManager" value=""/>
            <property name="poolFactory" value="0"/>
            <property name="SafetyLevel" value="no_safety"/>
          </service-config>
        </service>
        <service name="navigationConnector">
          <service-config>
            <property name="className" value="com.sap.pct.pdk.navigationconnector.NavigationFileConnectorService"/>
            <property name="startup" value="true"/>
            <property name="classNameFactory" value=""/>
            <property name="classNameManager" value=""/>
            <property name="poolFactory" value="0"/>
          </service-config>
          <service-profile>
          </service-profile>
        </service>
        <service name="TransformersProvider">
          <service-config>
            <property name="className" value="com.sap.pct.pdk.httpconnectivity.transformerprovider.SaxTransformerProvider"/>
            <property name="SafetyLevel" value="no_safety"/>
            <property name="startup" value="true"/>
          </service-config>
        </service>
        <!--    Template for the Simple Transformerprovider example. To get it running, uncomment the next lines and -->
        <!--    comment the service definition above -->
        <!--    <service name="TransformersProvider">-->
        <!--      <service-config>-->
        <!--        <property name="className" value="com.sap.pct.pdk.httpconnectivity.transformerprovider.SimpleTransformersProvider"/>-->
        <!--        <property name="SafetyLevel" value="no_safety"/>-->
        <!--        <property name="startup" value="true" />-->
        <!--        <property name="ResourceBundleName" value="SimpleTransformersProvider_localization"/>-->
        <!--      </service-config>-->
        <!--    </service>-->
        <service name="TutorialPortalotoService" alias="com.sap.pct.pdk.portalotoservice">
          <service-config>
            <property name="className" value="Store"/>
            <property name="classNameFactory" value=""/>
            <property name="classNameManager" value=""/>
            <property name="poolFactory" value="0"/>
            <property name="SafetyLevel" value="no_safety"/>
            <property name="releasable" value="true"/>
          </service-config>
        </service>
        <service alias="com.sap.portal.pdk.documentation.webservicetutorial.alias.MyGoogleService" name="MyGoogleService">
          <service-config>
            <property name="className" value="com.tutorial.wsdl2service.MyGoogleService">
            </property>
            <property name="startup" value="false">
            </property>
            <property name="WebEnable" value="false">
            </property>
            <property name="WebProxy" value="true">
            </property>
            <property name="SecurityZone" value="com.tutorial.wsdl2service.MyGoogleService/DefaultSecurity">
            </property>
            <property name="releasable" value="true"/>
          </service-config>
        </service>
      </services>
    </application>

    Hi,
    you will find the <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/09/c8af42a6f6cb6ae10000000a155106/frameset.htm">portalapp.xml</a> file explained in the SAP Library.
    Also check the following sub sections:
    <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/53/c8af42a6f6cb6ae10000000a155106/frameset.htm">Application Configuration</a>
    <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/c9/c8af42a6f6cb6ae10000000a155106/frameset.htm">Components</a>
    <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/09/c9af42a6f6cb6ae10000000a155106/frameset.htm">Services</a>
    <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/49/c9af42a6f6cb6ae10000000a155106/frameset.htm">Registry</a>
    <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/95/c9af42a6f6cb6ae10000000a155106/frameset.htm">Deployment Descriptor Example</a>
    Best regards,
    Martin

  • Security Zones and portalapp.xml

    On the page http://help.sap.com/saphelp_nw04/helpdata/en/25/85de55a94c4b5fa7a2d74e8ed201b0/content.htm
    it says that the settings (security zone, permission) in the portalapp.xml defines who can access this application.
    Then it says that PRT checks the users iView-permission and then optionally the security zone permission, depending on the setting of the parameter -Dcom.sap.nw.sz=true in the J2EE.
    Question:
    When this parameter is disabled (default), are the security zones just not checked when accessing an application throug an iView or also when they are accessed through direct URL?

    Hi Manuel,
    I just checked it against our SP12 installation, with the same component, which has the same settings as yours:
    > it can be run by any authenticated user
    This at least does not hold for our portal installation. Each access with the given URL, called by an authenticated user which does not have one of the admin roles set within the security zones, ends with:
    Access denied (Object: com.sap.portal.system/security/sap.com/NetWeaver.Portal/high_safety/com.sap.portal.runtime.system.console/components/ClusterAdminConsole)
    The application permissions do not play a role here, these are for the iView wizards, which applications are to be chosen.
    So, double check the user you are testing with; maybe the version is buggy?
    > In the Security-Zone-Permissions
    > ara:/security/sap.com/NetWeaver.Portal/high_safety/com.sap.portal.runtime.system.console
    Under components/ClusterAdminConsole the same settings are to be found? (I expect it, but just to be sure.)
    Hope it helps
    Detlev

  • About the Run... button of the Overview tab of portalapp.xml

    When I deploy a portal component successfully,
    I choose the "Run..." button of the Overview tab of portalapp.xml, it cause a error:
    Portal Runtime error:
    Access denied (Object(s): com.sap.portal.system/security/sap.com/CustomComponents/
    UndefinedSafetyLevel/mySiteMapProject/components/BeanTestCls).
    Exception id: 11:01_25/05/08_0013_1699150
    See the details for the exception ID in the log file.
    I think the problem is that it did't  display a logon page automatically to enter uid/pwd.
    If I open a IE window to logon to portal firstly, it not cause a runtime error.
    What wrong with the setting?
    Edited by: Tian Hao on May 25, 2008 5:20 AM

    Hi,
    You can debug you JSPDynpage either from NWDS with the help of break points or by writing log statements in your code which will be written in defaultTrace log file.
    Check this to debug from NWDS:
    NetWeaver Portal Debugging
    Check this to write log statements:
    http://help.sap.com/saphelp_nw70/helpdata/EN/b0/003c41325fa831e10000000a1550b0/frameset.htm
    Netweaver Portal Log Configuration & Viewing (Part 3)
    Regards,
    Praveen Gudapati

  • 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

  • Additions required in portalapp.xml to import statements in JSPDynPage

    Hi all,
    What additions are required in portalapp.xml and import statements in JSPDynPage to include the equivalent of following JCO Clientservice in EP6 SP11?
    com.sap.portal.runtime.application.jcoclient.jcoclient
    The piece of code requiring the above is also given below.
    IJCOClientService clientService = (IJCOClientService) PortalRuntime.getRuntimeResources().getService("com.sap.portal.runtime.application.jcoclient.jcoclient");
    Thanking you ,
    Med venlig hilsen/Best regards
    Prabahar N.R

    Hi Prabahar,
    portalapp.xml: Add "com.sap.portal.runtime.application.jcoclient" to the SharingsReferences.
    import: com.sapportals.portal.prt.service.jco.IJCOClientService
    Hope it helps
    Detlev

  • APIs  for Retrieving properties from portalapp.xml

    Hi all,
    Can anyone tell me Is there any Java/Portal APIs for retrieving properties from portalapp.xml as well as from manifest.mf.
    Help wud be highly appreciated.
    Regards,
    Karthick

    Hi Karthick,
    If you want to access the manifest file, you could do something like this:
    import java.io.File;
    import java.io.FileInputStream;
    import java.util.jar.Manifest;
    import com.sapportals.portal.prt.runtime.IPortalRuntimeResources;
    import com.sapportals.portal.prt.runtime.PortalRuntime;
    File privateResoucePath = PortalRuntime.getRuntimeResources().getLocation(IPortalRuntimeResources.LT_PRIVATE_RESOURCES);
    File parPath = new File ( privateResoucePath, "HelloWorldProject" );  // name - par file name without the ".par" extension);       
    if ( parPath.exists()!=false ) {
        try {
            File manifestPath = new File ( parPath, "META-INF" );
            FileInputStream fis = null;
            fis = new FileInputStream(new File(manifestPath, "MANIFEST.MF"));
            Manifest mf = new Manifest(fis);
            java.util.jar.Attributes attr =  mf.getMainAttributes();
            if (attr!=null) {
                return attr.getValue("Specification-Title");
            else {return null;}
        } catch (Exception e) {
            e.printStackTrace();
            return "ERROR"+e.toString();
    META-INF is top level folder.
    Hope this helps.
    Daniel

  • "Expected entry PORTAL-INF/portalapp.xml in .par file."

    Hi,
    On my SP9 system that has no portal, when I want to <i>Run</i> a WebDynpro App, I do now get the error message "Expected entry PORTAL-INF/portalapp.xml in .par file."
    Upon <i>Deploy new Archive and Run</i>, the *.ear file is made as expected, but basically the same error appears on application start.
    Any ideas?
    Walter

    Hi Walter,
    Please make sure to do "CreateArchive" before deploying.
    "CreateArchive" will create portalapp.xml.
    Please check weather its creating the portalapp.xml in gen_wdp folder ?
    Could be problem with the plugins that you have on your machine.
    Regards, Anilkumar

Maybe you are looking for