Unable to fetch Portal Content From PCD

Hi Experts,
I want to fetch all the contents of PCD folder.
For this I wrote
Hashtable env = new Hashtable();
    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");
    env.put("java.naming.factory.object", "__IPcdContext__");
     InitialContext ctx = null;
     DirContext dirCtx;
     try {   
          ctx = new InitialContext(env);   
          dirCtx = (DirContext)ctx.lookup("pcd:portal_content/Madhav");   
          PcdSearchControls cons = new PcdSearchControls();   
          cons.setReturningObjFlag(false);           cons.setSearchScope(PcdSearchControls.UNIT_ROOTS_ONLY_SCOPE);   
//          dirCtx.addToEnvironment("",Constants.APPLY_ASPECT_TO_CONTEXTS);   
          NamingEnumeration ne = dirCtx.search("", "", cons);    
          wdComponentAPI.getMessageManager().reportSuccess((ne==null)+"SAN");   
          int i=0;   
          while (ne.hasMoreElements()) {
                      i++;                          
               IPcdSearchResult sr = (IPcdSearchResult) ne.nextElement();      
               wdComponentAPI.getMessageManager().reportSuccess(sr.getName()");     
               wdComponentAPI.getMessageManager().reportSuccess(sr.getAttributes().get("com.sap.portal.pcm.Title").get()");     
               wdComponentAPI.getMessageManager().reportSuccess(sr.getAttributes().get("com.sap.portal.pcd.gl.ObjectClass").get()");     
               String location = "pcd:portal_content/Madhav"+sr.getName();     
wdComponentAPI.getMessageManager().reportSuccess(location);    }}
    catch (NamingException e) {   
                 e.printStackTrace();
But its not displaying any thing ,
Folder id is (pcd:portal_content/Madhav)
Can any expert help me.
Regards Sanjay
Message was edited by: sanjay chatterjee

Hi Sanjay,
Use this code..you will get all the roles from pcd.
Hashtable env = new Hashtable();
          env.put(IPcdContext.SECURITY_PRINCIPAL, request.getUser());
          env.put(
               Context.INITIAL_CONTEXT_FACTORY,
               IPcdContext.PCD_INITIAL_CONTEXT_FACTORY);
          env.put(com.sap.portal.directory.Constants.REQUESTED_ASPECT, PcmConstants.ASPECT_SEMANTICS);
          InitialContext ctx = null;
          DirContext dirCtx;
          List roleList = null;
          PEILookupVO lookupVO = null;
          try {
               ctx = new InitialContext(env);
               dirCtx = (DirContext) ctx.lookup("pcd:portal_content/");
               PcdSearchControls pcdSearchControls = new PcdSearchControls();
               pcdSearchControls.setReturningObjFlag(false);
               pcdSearchControls.setSearchScope(
                    PcdSearchControls.SUBTREE_WITH_UNIT_ROOTS_SCOPE);
               dirCtx.addToEnvironment(
                    Constants.APPLY_ASPECT_TO_CONTEXTS,
                    Constants.APPLY_ASPECT_TO_CONTEXTS);
               NamingEnumeration ne =
                    dirCtx.search(
                         "(com.sap.portal.pcd.gl.ObjectClass=com.sapportals.portal.role)",
                         pcdSearchControls);
               roleList = new ArrayList();
               int i = 0;
               while (ne.hasMoreElements()) {
                    i++;
                    IPcdSearchResult searchResult =
                         (IPcdSearchResult) ne.nextElement();
                    String location =
                         "pcd:portal_content/" + searchResult.getName();
location  string should contain all the roles under "pcd:portal_content/"
your code is correct except you are giving the wrong pcd folder address.
If you want to get pages/iviews/worksets..change accordingly instead of
com.sapportals.portal.page
com.sapportals.portal.workset
com.sapportals.portal.iview
in the above code.
Let me know if you need more help on this.
Regards,
Karthick

Similar Messages

  • Can't get content from PCD

    Hi,
    I've developed a small project to read content from pcd, in this case, to get roles attributes. I've followed this tutorial http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/6112ecb7-0a01-0010-ef90-941c70c9e401?QuickLink=index&overridelayout=true, but I keep getting a NoClassDefFound for IPCDContext and PCDSearchConrols(if i choose to use this objet instead). I've added a DC of the External Library type to my project wich contained all the jars needed. Here's the code for my project:
    import java.util.Hashtable;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.naming.NamingEnumeration;
    import javax.naming.NamingException;
    import javax.naming.directory.DirContext;
    import java.lang.Object;
    import com.sap.portal.directory.Constants;
    import com.sap.portal.pcm.admin.PcmConstants;
    import com.sap.security.api.IRole;
    import com.sap.security.api.IUser;
    import com.sap.tc.webdynpro.services.sal.um.api.WDClientUser;
    import com.sap.tc.webdynpro.services.sal.um.api.WDUMException;
    import com.sap.teste.wdp.IPrivateShowRoleView;
    import com.sapportals.portal.pcd.gl.IPcdContext;
    import com.sapportals.portal.pcd.pcm.roles.IPortalRole;
    import com.sapportals.portal.pcd.gl.IPcdAttribute;
    import com.sapportals.portal.pcd.gl.IPcdContext;
    import com.sapportals.portal.pcd.gl.IPcdSearchResult;
    import com.sapportals.portal.pcd.gl.PcdSearchControls;
    import com.sap.portal.pcm.admin.IAdminBase;
    import com.sap.portal.pcm.admin.IAttributeSet;
    import com.sap.portal.pcm.admin.ValidationException;
    import com.sap.tc.webdynpro.progmodel.api.WDValueServices;
    import com.sap.tc.webdynpro.progmodel.api.WDVisibility;
    import com.sap.tc.webdynpro.services.sal.datatransport.api.IWDResource;
    import com.sapportals.portal.prt.component.IPortalComponentRequest;
    import com.sapportals.portal.pcd.gl.IPcdSearchResult;
      public void wdDoInit()
       IUser user = null;
        try{
             user = WDClientUser.getCurrentUser().getSAPUser();
        catch(WDUMException e){
             wdContext.currentContextElement().setResult(e.getMessage());
             Hashtable env = new Hashtable();     
         env.put(IPcdContext.SECURITY_PRINCIPAL, user);
         env.put(Context.INITIAL_CONTEXT_FACTORY, IPcdContext.PCD_INITIAL_CONTEXT_FACTORY);
         env.put(Constants.REQUESTED_ASPECT,   IPcdAttribute.PERSISTENCY_ASPECT);     
         InitialContext iCtx = null;
         try
              String iRoleDir = "pcd:portal_content/mmmarques/role_teste3";
              iCtx = new InitialContext(env);
              IPcdContext attrSet = (IPcdContext) iCtx.lookup(iRoleDir);
              attrSet.getAttributes("").get("com.sap.portal.pcd.gl.CreatedAt").get().toString();
              attrSet.getAttributes("").get("com.sap.portal.pcd.gl.LastChangedBy").get().toString();
              attrSet.getAttributes("").get("com.sap.portal.pcd.gl.LastChangedAt").get().toString();
              attrSet.getAttributes("").get("com.sap.portal.pcm.Title").get().toString();
         catch (Exception e) {
              wdContext.currentContextElement().setResult("failed");
    If anybody could help, I would be very grateful. Thanks in advance

    Also, when I try to build my external library DC I get the following warnings:
    createPublicParts:
      [pppacker] Packing public part 'ExternalLibs'
      [pppacker] Packed   1 file  for entity activation.jar (Archive/Java Library)
      [pppacker] Packed   1 file  for entity bc.rf.framework_api.jar (Archive/Java Library)
      [pppacker] Packed   1 file  for entity bc.rf.global.service.mime_api.jar (Archive/Java Library)
      [pppacker] Packed   1 file  for entity bc.rf.global.service.pipeline_api.jar (Archive/Java Library)
      [pppacker] Packed   1 file  for entity bc.rf.global.service.urlgenerator_api.jar (Archive/Java Library)
      [pppacker] Packed   1 file  for entity bc.sf.framework_api.jar (Archive/Java Library)
      [pppacker] Packed   1 file  for entity bc.util.public_api.jar (Archive/Java Library)
      [pppacker] Packed   1 file  for entity com.sap.portal.navigation.api_service_api.jar (Archive/Java Library)
      [pppacker] Packed   1 file  for entity com.sap.portal.navigation.helperservice_api.jar (Archive/Java Library)
      [pppacker] Packed   1 file  for entity com.sap.portal.navigation.service_api.jar (Archive/Java Library)
      [pppacker] Packed   1 file  for entity com.sap.portal.pcd.roleservice_api.jar (Archive/Java Library)
      [pppacker] Packed   1 file  for entity com.sap.portal.themes.lafservice_api.jar (Archive/Java Library)
      [pppacker] Packed   1 file  for entity com.sap.portal.usermanagementapi.jar (Archive/Java Library)
      [pppacker] Packed   1 file  for entity com.sap.security.api.ep5.jar (Archive/Java Library)
      [pppacker] Packed   1 file  for entity com.sap.security.api.jar (Archive/Java Library)
      [pppacker] Packed   1 file  for entity gl_api.jar (Archive/Java Library)
      [pppacker] Packed   1 file  for entity km.shared.command_api.jar (Archive/Java Library)
      [pppacker] Packed   1 file  for entity km.shared.repository.service.accessstatistic_api.jar (Archive/Java Library)
      [pppacker] Packed   1 file  for entity km.shared.repository.service.app.subscription_api.jar (Archive/Java Library)
      [pppacker] Packed   1 file  for entity km.shared.repository.service.timebasedpublish_api.jar (Archive/Java Library)
      [pppacker] Packed   1 file  for entity km.shared.service.actioninbox_api.jar (Archive/Java Library)
      [pppacker] Packed   1 file  for entity km.shared.ui.util_api.jar (Archive/Java Library)
      [pppacker] Packed   1 file  for entity mail.jar (Archive/Java Library)
      [pppacker] Packed   1 file  for entity ojdbc14.jar (Archive/Java Library)
      [pppacker] Packed   1 file  for entity poi-3.0-rc4-20070503.jar (Archive/Java Library)
      [pppacker] Packed   1 file  for entity poi-contrib-3.0-rc4-20070503.jar (Archive/Java Library)
      [pppacker] Packed   1 file  for entity poi-scratchpad-3.0-rc4-20070503.jar (Archive/Java Library)
      [pppacker] Packed   1 file  for entity prtapi.jar (Archive/Java Library)
      [pppacker] Packed   1 file  for entity prtconnection.jar (Archive/Java Library)
      [pppacker] Packed   1 file  for entity prtjndisupport.jar (Archive/Java Library)
      [pppacker] Packed   1 file  for entity tcepbcpcmadminapijava.jar (Archive/Java Library)
      [pppacker] WARNING: Can not overwrite file C:\Users\mmmarques\.dtc\1\DCs\sonae.com\ag360\jars_dc2\_comp\gen\default\public\ExternalLibs\lib\java\com.sap.portal.usermanagementapi.jar
      [pppacker] WARNING: Can not overwrite file C:\Users\mmmarques\.dtc\1\DCs\sonae.com\ag360\jars_dc2\_comp\gen\default\public\ExternalLibs\lib\java\km.shared.repository.service.timebasedpublish_api.jar
      [pppacker] WARNING: Can not overwrite file C:\Users\mmmarques\.dtc\1\DCs\sonae.com\ag360\jars_dc2\_comp\gen\default\public\ExternalLibs\lib\java\bc.rf.global.service.mime_api.jar
      [pppacker] WARNING: Can not overwrite file C:\Users\mmmarques\.dtc\1\DCs\sonae.com\ag360\jars_dc2\_comp\gen\default\public\ExternalLibs\lib\java\prtconnection.jar
      [pppacker] WARNING: Can not overwrite file C:\Users\mmmarques\.dtc\1\DCs\sonae.com\ag360\jars_dc2\_comp\gen\default\public\ExternalLibs\lib\java\bc.rf.framework_api.jar
      [pppacker] WARNING: Can not overwrite file C:\Users\mmmarques\.dtc\1\DCs\sonae.com\ag360\jars_dc2\_comp\gen\default\public\ExternalLibs\lib\java\gl_api.jar
      [pppacker] WARNING: Can not overwrite file C:\Users\mmmarques\.dtc\1\DCs\sonae.com\ag360\jars_dc2\_comp\gen\default\public\ExternalLibs\lib\java\poi-3.0-rc4-20070503.jar
      [pppacker] WARNING: Can not overwrite file C:\Users\mmmarques\.dtc\1\DCs\sonae.com\ag360\jars_dc2\_comp\gen\default\public\ExternalLibs\lib\java\prtapi.jar
      [pppacker] WARNING: Can not overwrite file C:\Users\mmmarques\.dtc\1\DCs\sonae.com\ag360\jars_dc2\_comp\gen\default\public\ExternalLibs\lib\java\bc.util.public_api.jar
      [pppacker] WARNING: Can not overwrite file C:\Users\mmmarques\.dtc\1\DCs\sonae.com\ag360\jars_dc2\_comp\gen\default\public\ExternalLibs\lib\java\com.sap.portal.navigation.service_api.jar
      [pppacker] WARNING: Can not overwrite file C:\Users\mmmarques\.dtc\1\DCs\sonae.com\ag360\jars_dc2\_comp\gen\default\public\ExternalLibs\lib\java\com.sap.portal.navigation.helperservice_api.jar
      [pppacker] WARNING: Can not overwrite file C:\Users\mmmarques\.dtc\1\DCs\sonae.com\ag360\jars_dc2\_comp\gen\default\public\ExternalLibs\lib\java\activation.jar
      [pppacker] WARNING: Can not overwrite file C:\Users\mmmarques\.dtc\1\DCs\sonae.com\ag360\jars_dc2\_comp\gen\default\public\ExternalLibs\lib\java\bc.sf.framework_api.jar
      [pppacker] WARNING: Can not overwrite file C:\Users\mmmarques\.dtc\1\DCs\sonae.com\ag360\jars_dc2\_comp\gen\default\public\ExternalLibs\lib\java\com.sap.portal.themes.lafservice_api.jar
      [pppacker] WARNING: Can not overwrite file C:\Users\mmmarques\.dtc\1\DCs\sonae.com\ag360\jars_dc2\_comp\gen\default\public\ExternalLibs\lib\java\com.sap.portal.pcd.roleservice_api.jar
      [pppacker] WARNING: Can not overwrite file C:\Users\mmmarques\.dtc\1\DCs\sonae.com\ag360\jars_dc2\_comp\gen\default\public\ExternalLibs\lib\java\com.sap.security.api.ep5.jar
      [pppacker] WARNING: Can not overwrite file C:\Users\mmmarques\.dtc\1\DCs\sonae.com\ag360\jars_dc2\_comp\gen\default\public\ExternalLibs\lib\java\com.sap.security.api.jar
      [pppacker] WARNING: Can not overwrite file C:\Users\mmmarques\.dtc\1\DCs\sonae.com\ag360\jars_dc2\_comp\gen\default\public\ExternalLibs\lib\java\tcepbcpcmadminapijava.jar
      [pppacker] WARNING: Can not overwrite file C:\Users\mmmarques\.dtc\1\DCs\sonae.com\ag360\jars_dc2\_comp\gen\default\public\ExternalLibs\lib\java\prtjndisupport.jar
      [pppacker] WARNING: Can not overwrite file C:\Users\mmmarques\.dtc\1\DCs\sonae.com\ag360\jars_dc2\_comp\gen\default\public\ExternalLibs\lib\java\km.shared.command_api.jar
      [pppacker] WARNING: Can not overwrite file C:\Users\mmmarques\.dtc\1\DCs\sonae.com\ag360\jars_dc2\_comp\gen\default\public\ExternalLibs\lib\java\km.shared.ui.util_api.jar
      [pppacker] WARNING: Can not overwrite file C:\Users\mmmarques\.dtc\1\DCs\sonae.com\ag360\jars_dc2\_comp\gen\default\public\ExternalLibs\lib\java\poi-contrib-3.0-rc4-20070503.jar
      [pppacker] WARNING: Can not overwrite file C:\Users\mmmarques\.dtc\1\DCs\sonae.com\ag360\jars_dc2\_comp\gen\default\public\ExternalLibs\lib\java\bc.rf.global.service.pipeline_api.jar
      [pppacker] WARNING: Can not overwrite file C:\Users\mmmarques\.dtc\1\DCs\sonae.com\ag360\jars_dc2\_comp\gen\default\public\ExternalLibs\lib\java\km.shared.service.actioninbox_api.jar
      [pppacker] WARNING: Can not overwrite file C:\Users\mmmarques\.dtc\1\DCs\sonae.com\ag360\jars_dc2\_comp\gen\default\public\ExternalLibs\lib\java\km.shared.repository.service.app.subscription_api.jar
      [pppacker] WARNING: Can not overwrite file C:\Users\mmmarques\.dtc\1\DCs\sonae.com\ag360\jars_dc2\_comp\gen\default\public\ExternalLibs\lib\java\bc.rf.global.service.urlgenerator_api.jar
      [pppacker] WARNING: Can not overwrite file C:\Users\mmmarques\.dtc\1\DCs\sonae.com\ag360\jars_dc2\_comp\gen\default\public\ExternalLibs\lib\java\com.sap.portal.navigation.api_service_api.jar
      [pppacker] WARNING: Can not overwrite file C:\Users\mmmarques\.dtc\1\DCs\sonae.com\ag360\jars_dc2\_comp\gen\default\public\ExternalLibs\lib\java\km.shared.repository.service.accessstatistic_api.jar
      [pppacker] WARNING: Can not overwrite file C:\Users\mmmarques\.dtc\1\DCs\sonae.com\ag360\jars_dc2\_comp\gen\default\public\ExternalLibs\lib\java\ojdbc14.jar
      [pppacker] WARNING: Can not overwrite file C:\Users\mmmarques\.dtc\1\DCs\sonae.com\ag360\jars_dc2\_comp\gen\default\public\ExternalLibs\lib\java\mail.jar
      [pppacker] WARNING: Can not overwrite file C:\Users\mmmarques\.dtc\1\DCs\sonae.com\ag360\jars_dc2\_comp\gen\default\public\ExternalLibs\lib\java\poi-scratchpad-3.0-rc4-20070503.jar
      [pppacker] Packed 31 entities for public part 'ExternalLibs'
         [timer] Packing of public part 'ExternalLibs' finished in 0.047 seconds
    Edited by: babonhas8 on Jul 22, 2011 11:16 AM

  • Migration of portal content from EP 6.0 SP 15 to NW 2004s Portal

    Hi,
    Our requirement here is to migrate Portal content from EP version 6.0 SP15 to the latest Netweaver portla (NW2004s). Expecting helpful suggestions from SAP EP gurus!!!
    All helpful answers will be rewarded. Gurus, please help!!!
    Cheers,
    L Buegg.

    Leena,
        These are the steps in migrating the portal content from the EP 6 SP15 to the Netweaver Portal (EP 7.0 or the NW 2004s Portal) in simple:
    1. Go to <b>System Administration -> Transport -> Portal Content</b>. Right click on the folder, you wish to transport. Select <b>New -> Transport Package</b> .
    2. Fill all the details (like name of the transport package, id etc) and then add the objects(iViews, Pages etc) you wish to transport to the newly created transport package by right clicking on the objects.
    3. Once the objects are all added, click on Export in the object editor of the Transport package and the export happens immediately.
    4. Navigate to Drive\usr\SAP\SID_Instance\Sys\global\pcd\Export of the EP 6 SP 15 Portal Server. You will see the epa file created during this export process.
    5. Copy this epa file and place it in Drive\usr\SAP\SID_Instance\Sys\global\pcd\Import folder structure of the NW 2004s Portal Server. Go to <b>System Administration -> Transport -> Import</b> and do the import as you would import any business package.
    This are the steps to export and import the portal content from one portal server to another portal server.
    Hope this helps!!!
    Sunitha.

  • Migrate portal content from ep 7.0 to 7.3

    Hi,
    We have to migrate following content from EP 7.0 server to EP 7.3.
    - URL iViews with language translation
    - Application Integrator iViews
    - WPC content
    Please suggest what should be the approach ?
    Will all these portal content from 7.0 be compatible to 7.3 ?
    Regards,
    Anubha

    Hi,
    Check this below link
    SAP NetWeaver 7.3 How to Guides
    Regards,
    Nivas209

  • How to fetch portal content for an user

    Hi all,
    I want to fetch all the assigned portal content(like iview,page,workset) for a particular user.
    I tried it by package,
    com.sapportals.portal.prt.component.*
    using IPortalComponentContext but I could't get success.
    Can anybody help me.
    Regds
    Sanjay

    Hi Mausam,
    UME APIs and Security APIs are alredy available
    with eclipse plugins.
    I am serching for an api by which assigned
    Iview,Page,WorkSet,Folder Can be retrieved.
    Weblog Submitted
    /people/prakash.singh4/blog/2005/07/28/browse-roles-folders-pages-iviews-assigned-to-a-user-ep6-sp9-and-higher   
    is using 
    import com.sapportals.portal.pcd.gl.IPcdAttribute;
    import com.sapportals.portal.pcd.gl.IPcdContext;
    These APIs I can 't find in
    C:\usr\sap\[sid]\j2ee\j2ee_00\cluster\server\services\servlet_jsp\work\jspTemp\irj\root\WEB-INF\portal\portalapps
    can any body suggest me is any other API is available,
    and how can i use that API.
    Any immidiate response is highly solicited.
    Regds,
    Sanjay Chatterjee

  • Tranport portal content from SP14 to SP18

    Hello,
    Is it possible and advisable to transport portal content (iviews, roles, etc) from a portal on EP6 SP14 to EP6 SP18?  Do I need to manually move configuration from one portal to the other?  What are my options?
    Thank you for feedback.
    Kevin

    Hi Kevin,
    There should be absolutely no problem in transporting EPAs from SP14 to SP18 (as far as the transport mechanism in concerned; as far as SP14 based PAR implementations are concerned, they maybe should be checked if they use some undocumented APIs which are always subject to change without notice, but from your question I don't think that this was your problem/question).
    > Do I need to manually move configuration from one portal to the other
    What conf are you thinking of? As far as PCD objects and their conf is concerned, as said, for that you should use the normal transport packages.
    As far as the KM config is concerned, this can be transported, too, but that is (totally independent from SP-level questions) something where one has to be careful (the best choice is only to bundle a configArchive with special own settings one is aware of, and not to transport the complete KM config).
    Hope it helps
    Detlev

  • Unable to displat portal Content

    I am having issue in the portal 6.0 SP2 looks like the desktop innerpage link is missing from  default framework page , when I log on to the portal as Administrtaor I go to any table Content Administration, System Administrtation or user administration I do not see anything its giving the balnk page. Any help is appreciated.

    Hi Ajay,
    you could access directly the PCD page "Portal Content Studio" by using this URL:
    http://<YOUR_PORTAL_SERVER>:<PORT>/irj/servlet/prt/portal/prtroot/com.sap.portal.pagebuilder.IviewModeProxy?iview_id=pcd%3Aportal_content/administrator/super_admin/super_admin_role/com.sap.portal.content_administration/com.sap.portal.content_admin_ws/com.sap.portal.portal_content&iview_mode=default
    Login with a user that has the super_admin_role, navigate to Portal Content -> Portal Users -> Standard Portal Users -> Default Framework Page and check it there is a problem with the Destkop Innerpage (set to invisible like Ganesh mentioned).
    If you used the above link and you still get an empty page, check for error logs in the default.trc.
    Hope this helps,
    Robert

  • Field name while fetching its content from db table dynamically.

    Hi Experts,
    I am new to ABAP and I  have a situation as follows.
    I have a table say ztable where there are seven fields monday,tuesday,wednesday,thursday,friday and saturday.
    Depending on the current calender day i have to fetch the content.
    Suppose for monday, i have to fetch ztable-monday.
    Is there any other way other than using if statements 7 times ? Like i wanna capture the day and substitute it in the place of z_table-"day".
    Please help.
    Thanks,

    Hi,
    In the below code you can pass any field of the table in W_FIELD.... It will fetch the particular field from the table....
    w_block should be of same data element of your field in W_FIELD
    PARAMETER : w_field TYPE NAME_FELD.
    DATA w_block(1) TYPE c.
    Select single (w_field) FROM RSEG INTO w_block
      WHERE belnr EQ '5105701294'.
      IF sy-subrc EQ 0.
        WRITE / w_block.
      ENDIF.
    Thanks and regards,
    Senthil Kumar Anantham.
    Edited by: Senthil Kumar on Jul 2, 2010 5:37 PM

  • Federated portal's, cann't see the roles and portal content from producer

    We are configuring a Federated Portal, with a Producer EP7.0 SP13 and a Consumer EP7.0 SP13. The connection test is successful.
    I can see the producer on the consumer and the consumer on the producer.
    The problem is that I can not see the portal content of the producer in the portal content of the consumer.  The producer roles are also not available on the consumer.  I have selected the producer as the data source in the consumer UME,
    then enter * in the role name field, then select "go", but nothing comes up.
    Can anybody help me?

    Hi J De Voijs
    • Following might be the reason:
    1. User should exist in both user store of Consumer and Producer portal otherwise it won’t work.
    2. Incase if the registration is successful then there might be some problem with your servers (Consumer & Producer) clock timings.
    3. ‘Remote Role Assignment’ may get fail perhaps because user to whom remote role assignment is done doesn’t have “End User” role assigned to him/her at Producer Portal. End-user permission enables business users to run content at runtime. Just as end users require end-user permission to run local content on your portal, they also need end-user permission for local content originating from a remote producer.
    4. You should have Owner permission in the objects to which you want to assign permissions otherwise ‘Remote Role Assignment’ wont work.
    5. In the portal content studio, open the producer under 'NetWeaver content producers'. If it does not contain folders in it, the registration is considered to be unsuccessful even though it stated it was successful while registration.
    6. During the process of Registering (Adding) Producer Portal, while entering the connection parameters of the NetWeaver producer portal use appropriate Host name against “Host Name” input field instead of IP address. Perhaps this might create some problem during execution in later stage.
    e.g. Host Name: use “sapProducerportal02” instead of 172.19.144.155
    7. Also go through the following URLs (w.r.t Permissions):
    1) http://help.sap.com/saphelp_nw2004s/helpdata/en/43/2232580bb93fece10000000a11466f/content.htm
    2) http://help.sap.com/saphelp_nw2004s/helpdata/en/f6/2604e505fd11d7b84200047582c9f7/content.htm
    3) http://help.sap.com/saphelp_nw04/helpdata/en/f6/2604e905fd11d7b84200047582c9f7/frameset.htm
    4)http://help.sap.com/saphelp_nw04/helpdata/en/f6/2604e505fd11d7b84200047582c9f7/frameset.htm
    5)http://help.sap.com/saphelp_nw04/helpdata/en/5b/0fab1b76984ed0944d5c732cfad1b2/frameset.htm
    Points pls if you find it useful...
    Thanks and Regards,

  • Unable to migrate portal content :-(

    I want to move 2 iViews and a Authorization role from ABC System to XYZ System.
    I found out that there seem to be 2 basic ways, I do not know enough about.
    I went to the NetWeaver Enterprise Portal of the source System ABC -> System administration -> Transport packages -> Export. I do a right-click on the Folder "etcppp" create a new package, save it and download it to my personal computer.
    In the second step I go to the NetWeaver Enterprise Portal of the target system ABC -> System administration -> Transport packages -> Import. I import it and find the package in the content-tree, but it does not unpack Where is my mistake ?
    So I startet my second try:
    I went to the NetWeaver Enterprise Portal of the source System ABC -> System administration -> content & actions -> Export and created a nice XML File. Up to now I do not understand why there seem to be 2 ways and 2 different file formats but I thought to give it a try. I downloaded the XML without any errors.
    In the second step I go to the NetWeaver Enterprise Portal of the target system ABC -> System administration -> content & actions BUT it simply does not open! I startet the engine and the system new, but the branch stays hidden. What can I do ?
    Please let me also know if there are any other possibilities to transport Portal Content.
    Thanks in advance and Best Regards

    Hi Paul,
          U need to add the 2 Views and Roles to the transport package.GoTo source System ABC -> System administration -> Transport packages -> Export--> Create new transport package > Click ur iview and from the context menu add the iview/role to the transport package> click on export.Download the same to ur local machine.
    GoTo system ABC -> System administration -> Transport packages -> Import --> select the transport package from ur client and import.Make sure importis succesful.
    Hope it Helps.
    Regards,
    Vinoth.M

  • Unable to paste table content from firefox to thunderbird mail. remain blank

    Hi,
    I am trying to copy a table content from mozila webpage to a new mail in thunderbird. Some times, it pastes normally without any fail. But server time, when I paste it, nothing comes up and the mail shows only blank space.
    I have tried to re install and re configure thunderbird but still issue persist.

    You need to understand that all the formatting available in other specialist programs like Excel may not necessariy display using exactly the same formatting in a html email.
    Plus if people use Plain Text then all formatting is stripped anyway, so you cannot guarrantee how the email will look for the recipient.
    Options:
    You could highlight the section in excel, right click select Copy.
    Then in Thunderbird new Write message. Right click in text area and select 'Paste'.
    But be aware of potential formatting issues.
    This is why emails have the facility to attach documents. So the recipient can read the data using the correct application and also be able to detach documents from emails and save separarely.
    So you could save the excel document and attach it to the email.
    When using simple tables to show data, it is best to create them using the one provided in Thunderbird via Insert > Table or Formatting Bar option.
    attach image:
    If you want to take a snapshot of the Excel page.
    Select the excel window to get focus and use the 'Alt' +'Prt scr' keys.
    Open eg: 'Paint' then Paste into 'Paint', then save as jpg.
    Then attach the saved image to the email.
    In new Write mesage:
    click on 'Attach'
    locate and select the jpg image and click on 'Open',

  • Migrating Portal Content from a previous release

    I am stuck up with a challenging task. I am new to Portals and will really appreciate your help.
    I have installed the new OAS 10.1.2 version and upgraded it to the Portal 10.1.4 version. There is a some Portal Content present on different OAS installations which are earlier versions of the server (9i and 10.0.3)
    Can i migrate this Portal Content to the new Portal Server (10.1.4)? Please provide me with the appropriate information.
    Thanks

    Hi,
    It is not possible to migrate portal contents to the different version of Portal. In order to export the portal contents both the source and destination machine should have same Portal version.
    As a work around you need to upgrade the Portal instance in other OAS to the highest Portal version(10.1.4).
    You can refer to the Note 263995.1 for portal export and import, and you can also find the portal export and import document in the below link:
    http://download.oracle.com/docs/cd/B14099_19/portal.1014/b19305/cg_imex.htm#i1030999
    Regards,
    Rajeshwari.

  • Fm or class existing for fetching xml contents from a file using abap ?

    Hi,
    I need to fetch an xml file in a string of type xstring. I am using class cl_gui_frontend_services=>gui_upload.
    This returns me content in table format, than i am planning to conver to xstring.
    Is there any better approach or any existing function module any one know of ?
    thanks
    Regards
    Pooja

    Hi Pooja,
    You can try out this program to read the XML file using abap.
    *& Report  ZXMLTOITAB                                                 *
    REPORT  ZXMLTOITAB                            .
      TYPE-POOLS: ixml.
      TYPES: BEGIN OF t_xml_line,
              data(256) TYPE x,
            END OF t_xml_line.
      DATA: l_ixml            TYPE REF TO if_ixml,
            l_streamfactory   TYPE REF TO if_ixml_stream_factory,
            l_parser          TYPE REF TO if_ixml_parser,
            l_istream         TYPE REF TO if_ixml_istream,
            l_document        TYPE REF TO if_ixml_document,
            l_node            TYPE REF TO if_ixml_node,
            l_xmldata         TYPE string.
      DATA: l_elem            TYPE REF TO if_ixml_element,
            l_root_node       TYPE REF TO if_ixml_node,
            l_next_node       TYPE REF TO if_ixml_node,
            l_name            TYPE string,
            l_iterator        TYPE REF TO if_ixml_node_iterator.
      DATA: l_xml_table       TYPE TABLE OF t_xml_line,
            l_xml_line        TYPE t_xml_line,
            l_xml_table_size  TYPE i.
      DATA: l_filename        TYPE string.
      PARAMETERS: pa_file TYPE char1024 DEFAULT 'c:\temp\orders_dtd.xml'.
    * Validation of XML file: Only DTD included in xml document is supported
      PARAMETERS: pa_val  TYPE char1 AS CHECKBOX.
      START-OF-SELECTION.
    *   Creating the main iXML factory
        l_ixml = cl_ixml=>create( ).
    *   Creating a stream factory
        l_streamfactory = l_ixml->create_stream_factory( ).
        PERFORM get_xml_table CHANGING l_xml_table_size l_xml_table.
    *   wrap the table containing the file into a stream
        l_istream = l_streamfactory->create_istream_itable( table =
    l_xml_table
                                                        size  =
    l_xml_table_size ).
    *   Creating a document
        l_document = l_ixml->create_document( ).
    *   Create a Parser
        l_parser = l_ixml->create_parser( stream_factory = l_streamfactory
                                          istream        = l_istream
                                          document       = l_document ).
    *   Validate a document
        IF pa_val EQ 'X'.
          l_parser->set_validating( mode = if_ixml_parser=>co_validate ).
        ENDIF.
    *   Parse the stream
        IF l_parser->parse( ) NE 0.
          IF l_parser->num_errors( ) NE 0.
            DATA: parseerror TYPE REF TO if_ixml_parse_error,
                  str        TYPE string,
                  i          TYPE i,
                  count      TYPE i,
                  index      TYPE i.
            count = l_parser->num_errors( ).
            WRITE: count, ' parse errors have occured:'.
            index = 0.
            WHILE index < count.
              parseerror = l_parser->get_error( index = index ).
              i = parseerror->get_line( ).
              WRITE: 'line: ', i.
              i = parseerror->get_column( ).
              WRITE: 'column: ', i.
              str = parseerror->get_reason( ).
              WRITE: str.
              index = index + 1.
            ENDWHILE.
          ENDIF.
        ENDIF.
    *   Process the document
        IF l_parser->is_dom_generating( ) EQ 'X'.
          PERFORM process_dom USING l_document.
        ENDIF.
    *&      Form  get_xml_table
      FORM get_xml_table CHANGING l_xml_table_size TYPE i
                                  l_xml_table      TYPE STANDARD TABLE.
    *   Local variable declaration
        DATA: l_len      TYPE i,
              l_len2     TYPE i,
              l_tab      TYPE tsfixml,
              l_content  TYPE string,
              l_str1     TYPE string,
              c_conv     TYPE REF TO cl_abap_conv_in_ce,
              l_itab     TYPE TABLE OF string.
        l_filename = pa_file.
    *   upload a file from the client's workstation
        CALL METHOD cl_gui_frontend_services=>gui_upload
          EXPORTING
            filename   = l_filename
            filetype   = 'BIN'
          IMPORTING
            filelength = l_xml_table_size
          CHANGING
            data_tab   = l_xml_table
          EXCEPTIONS
            OTHERS     = 19.
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                     WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
    *   Writing the XML document to the screen
        CLEAR l_str1.
        LOOP AT l_xml_table INTO l_xml_line.
          c_conv = cl_abap_conv_in_ce=>create( input = l_xml_line-data
    replacement = space  ).
          c_conv->read( IMPORTING data = l_content len = l_len ).
          CONCATENATE l_str1 l_content INTO l_str1.
        ENDLOOP.
        l_str1 = l_str1+0(l_xml_table_size).
        SPLIT l_str1 AT cl_abap_char_utilities=>cr_lf INTO TABLE l_itab.
        WRITE: /.
        WRITE: /' XML File'.
        WRITE: /.
        LOOP AT l_itab INTO l_str1.
          REPLACE ALL OCCURRENCES OF cl_abap_char_utilities=>horizontal_tab
    IN
            l_str1 WITH space.
          WRITE: / l_str1.
        ENDLOOP.
        WRITE: /.
      ENDFORM.                    "get_xml_table
    *&      Form  process_dom
      FORM process_dom USING document TYPE REF TO if_ixml_document.
        DATA: node      TYPE REF TO if_ixml_node,
              iterator  TYPE REF TO if_ixml_node_iterator,
              nodemap   TYPE REF TO if_ixml_named_node_map,
              attr      TYPE REF TO if_ixml_node,
              name      TYPE string,
              prefix    TYPE string,
              value     TYPE string,
              indent    TYPE i,
              count     TYPE i,
              index     TYPE i.
        node ?= document.
        CHECK NOT node IS INITIAL.
        ULINE.
        WRITE: /.
        WRITE: /' DOM-TREE'.
        WRITE: /.
        IF node IS INITIAL. EXIT. ENDIF.
    *   create a node iterator
        iterator  = node->create_iterator( ).
    *   get current node
        node = iterator->get_next( ).
    *   loop over all nodes
        WHILE NOT node IS INITIAL.
          indent = node->get_height( ) * 2.
          indent = indent + 20.
          CASE node->get_type( ).
            WHEN if_ixml_node=>co_node_element.
    *         element node
              name    = node->get_name( ).
              nodemap = node->get_attributes( ).
              WRITE: / 'ELEMENT  :'.
              WRITE: AT indent name COLOR COL_POSITIVE INVERSE.
              IF NOT nodemap IS INITIAL.
    *           attributes
                count = nodemap->get_length( ).
                DO count TIMES.
                  index  = sy-index - 1.
                  attr   = nodemap->get_item( index ).
                  name   = attr->get_name( ).
                  prefix = attr->get_namespace_prefix( ).
                  value  = attr->get_value( ).
                  WRITE: / 'ATTRIBUTE:'.
                  WRITE: AT indent name  COLOR COL_HEADING INVERSE, '=',
                                   value COLOR COL_TOTAL   INVERSE.
                ENDDO.
              ENDIF.
            WHEN if_ixml_node=>co_node_text OR
                 if_ixml_node=>co_node_cdata_section.
    *         text node
              value  = node->get_value( ).
              WRITE: / 'VALUE     :'.
              WRITE: AT indent value COLOR COL_GROUP INVERSE.
          ENDCASE.
    *     advance to next node
          node = iterator->get_next( ).
        ENDWHILE.
      ENDFORM.                    "process_dom
    Regards,
    Samson Rodrigues.

  • Unable to fetch database table from webdynpro application

    Hello,
    I have a Webdynpro application trying to fetch data from the database table. I have used the following code to get the connection to the database and execute the sql statement.
              InitialContext dbInitContext = new InitialContext();
              Properties sysProperties = System.getProperties();
              String sysname = sysProperties.getProperty("SAPSYSTEMNAME");
              String dbName = "jdbc/" + "SAP" + sysname + "DB";
              DataSource dataSource = (DataSource) dbInitContext.lookup(dbName);
              Connection conn = dataSource.getConnection();
              String SelectStmt = "Select * from INV_CUSTOMER";
              PreparedStatement stmt = conn.prepareStatement(SelectStmt);
              ResultSet resultSet = stmt.executeQuery();
    I logged into the database using user superdba in sqlcli, and created the table "INV_CUSTOMER". I am trying to run this application in my sneak preview java installation which comes with maxdb 7.6. But when I run the app, it always throws up the error:
    The SQL statement "SELECT * FROM "INV_CUSTOMER"" contains the semantics error[s]: - 1:15 - the table or view >>INV_CUSTOMER<< does not exist
    I am new to this concept, so any help would be appreciated.
    Thanks,
    Ajay

    >
    Ajay Singh wrote:
    > Hi Isaias,
    >
    > I created a dictionary project with the same structure, and used it in my app. Right now, everytime I run my app, the old data I entered is lost. I need to store data in the table, and reuse those records the next time I run the app. How do I do this?
    > Another question I have is, I have created Database Tables inside Local Dictionary of my dictionary project. Does this create a table in the actual database?
    > Forgive me, but I am new to this topic.
    >
    > Thanks,
    > Ajay
    Hi,
    It seems to me like there is more than one issue here. Let me try and help you out with some details.
    1.) If you have created the Dictionary project and the code in your original post is not giving you problems then it's good. However, the problem of the data disappearing from your Java Dictionary seems little bit wierd. You need to ensure that you are not running any "delete" command and ensure that the select statement (of it has and conditions) is correct.
    2.) As far as where the tables actually reside: When you create the Dictionary tables in a Dictionary Project-  this will actually create a script that will be run on the server that has an installed database (like Oracle, MSSQL Server or MaxDB, UDB). This means that the dictionary tables are just an abstraction of actual database tables.
    In order to ensure that you are not deleting the data - debug your Web Dynpro Application or EJB so that you can go through it step by step and see whether all the database statements are correct. Sometimes you may not get an SQL error due to a NullPointer in the dynamic queries as well - so keep a check on that as well.
    If you require a more detailed solution - please give us a small piece of code that we can analyse.
    Hope that helps.
    Thanks.,
    p256960.

  • Unable to view Portal Resources from the Portal Administration console

    Hi,
    When I trying to view the portal resources I got an empty page and the following exception:
    <Apr 5, 2007 11:22:38 AM GMT+08:00> <Error> <netuix> <BEA-423168> <An exception or error occurred in the backing file [com.bea.jsptools.interaction.backing.DelegatedAdminBackingPlaceholders] while executing its init method. It was java.lang.NoClassDefFoundError
    java.lang.NoClassDefFoundError
    at com.bea.p13n.entitlements.common.management.internal.PolicyRefMigration.getPersistenceInitialized(PolicyRefMigration.java:63)
    at com.bea.p13n.entitlements.management.internal.RDBMSPolicyRefManager.initializePersistence(RDBMSPolicyRefManager.java:426)
    at com.bea.p13n.entitlements.management.internal.RDBMSPolicyRefManager.getPolicyRefItem(RDBMSPolicyRefManager.java:166)
    at com.bea.p13n.entitlements.management.internal.RDBMSRolePolicyManager.getRolePolicyRefs(RDBMSRolePolicyManager.java:1476)
    at com.bea.p13n.entitlements.management.RolePolicyManager.getRolePolicyRefs(RolePolicyManager.java:460)
    at com.bea.p13n.delegation.management.internal.DelegationRolePolicyDelegate.getPolicyRefs(DelegationRolePolicyDelegate.java:484)
    at com.bea.p13n.delegation.management.DelegationRoleManager.getPolicyRefs(DelegationRoleManager.java:758)
    at com.bea.p13n.delegation.DelegationService.isAdminPolicyOnResourceRoot(DelegationService.java:414)
    at com.bea.jsptools.interaction.backing.DelegatedAdminBackingPlaceholders.init(DelegatedAdminBackingPlaceholders.java:78)
    at com.bea.netuix.servlets.controls.Backable$Impl.initializeBackingFile(Backable.java:126)
    at com.bea.netuix.servlets.controls.AdministeredBackableControl.init(AdministeredBackableControl.java:61)
    at com.bea.netuix.servlets.controls.window.Window.init(Window.java:183)
    at com.bea.netuix.servlets.controls.page.Page.init(Page.java:108)
    at com.bea.netuix.nf.ControlLifecycle$5.visit(ControlLifecycle.java:88)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:356)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:366)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:366)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:366)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:366)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:366)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:366)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:366)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:366)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:366)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:366)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:366)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:366)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:366)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:366)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:366)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:366)
    at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:126)
    at com.bea.netuix.nf.Lifecycle.runOutbound(Lifecycle.java:204)
    at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:153)
    at com.bea.netuix.servlets.manager.UIServlet.runLifecycle(UIServlet.java:324)
    at com.bea.netuix.servlets.manager.UIServlet.doPost(UIServlet.java:196)
    at com.bea.netuix.servlets.manager.PortalServlet.doPost(PortalServlet.java:772)
    at com.bea.netuix.servlets.manager.PortalServlet.doGet(PortalServlet.java:671)
    at com.bea.netuix.servlets.manager.UIServlet.service(UIServlet.java:147)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1077)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:465)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    at com.bea.servlet.SystemAdminSavedStateFilter.doFilter(SystemAdminSavedStateFilter.java:83)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    at com.bea.servlet.PortalSystemAdministratorFilter.doFilter(PortalSystemAdministratorFilter.java:83)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:293)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:7053)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3902)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2773)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
    >
    <Apr 5, 2007 11:22:38 AM GMT+08:00> <Error> <netuix> <BEA-423168> <An exception or error occurred in the backing file [com.bea.jsptools.interaction.backing.DelegatedAdminBackingSegments] while executing its init method. It was java.lang.NoClassDefFoundError
    java.lang.NoClassDefFoundError
    at com.bea.p13n.entitlements.common.management.internal.PolicyRefMigration.getPersistenceInitialized(PolicyRefMigration.java:63)
    at com.bea.p13n.entitlements.management.internal.RDBMSPolicyRefManager.initializePersistence(RDBMSPolicyRefManager.java:426)
    at com.bea.p13n.entitlements.management.internal.RDBMSPolicyRefManager.getPolicyRefItem(RDBMSPolicyRefManager.java:166)
    at com.bea.p13n.entitlements.management.internal.RDBMSRolePolicyManager.getRolePolicyRefs(RDBMSRolePolicyManager.java:1476)
    at com.bea.p13n.entitlements.management.RolePolicyManager.getRolePolicyRefs(RolePolicyManager.java:460)
    at com.bea.p13n.delegation.management.internal.DelegationRolePolicyDelegate.getPolicyRefs(DelegationRolePolicyDelegate.java:484)
    at com.bea.p13n.delegation.management.DelegationRoleManager.getPolicyRefs(DelegationRoleManager.java:758)
    at com.bea.p13n.delegation.DelegationService.isAdminPolicyOnResourceRoot(DelegationService.java:414)
    at com.bea.jsptools.interaction.backing.DelegatedAdminBackingSegments.init(DelegatedAdminBackingSegments.java:78)
    at com.bea.netuix.servlets.controls.Backable$Impl.initializeBackingFile(Backable.java:126)
    at com.bea.netuix.servlets.controls.AdministeredBackableControl.init(AdministeredBackableControl.java:61)
    at com.bea.netuix.servlets.controls.window.Window.init(Window.java:183)
    at com.bea.netuix.servlets.controls.page.Page.init(Page.java:108)
    at com.bea.netuix.nf.ControlLifecycle$5.visit(ControlLifecycle.java:88)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:356)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:366)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:366)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:366)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:366)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:366)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:366)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:366)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:366)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:366)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:366)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:366)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:366)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:366)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:366)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:366)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:366)
    at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:126)
    at com.bea.netuix.nf.Lifecycle.runOutbound(Lifecycle.java:204)
    at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:153)
    at com.bea.netuix.servlets.manager.UIServlet.runLifecycle(UIServlet.java:324)
    at com.bea.netuix.servlets.manager.UIServlet.doPost(UIServlet.java:196)
    at com.bea.netuix.servlets.manager.PortalServlet.doPost(PortalServlet.java:772)
    at com.bea.netuix.servlets.manager.PortalServlet.doGet(PortalServlet.java:671)
    at com.bea.netuix.servlets.manager.UIServlet.service(UIServlet.java:147)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1077)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:465)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    at com.bea.servlet.SystemAdminSavedStateFilter.doFilter(SystemAdminSavedStateFilter.java:83)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    at com.bea.servlet.PortalSystemAdministratorFilter.doFilter(PortalSystemAdministratorFilter.java:83)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:293)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:7053)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3902)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2773)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
    >
    <Apr 5, 2007 11:22:38 AM GMT+08:00> <Error> <netuix> <BEA-423168> <An exception or error occurred in the backing file [com.bea.jsptools.portal.backing.DelegatedAdminBackingPortal] while executing its init method. It was java.lang.NoClassDefFoundError
    java.lang.NoClassDefFoundError
    at com.bea.p13n.entitlements.common.management.internal.PolicyRefMigration.getPersistenceInitialized(PolicyRefMigration.java:63)
    at com.bea.p13n.entitlements.management.internal.RDBMSPolicyRefManager.initializePersistence(RDBMSPolicyRefManager.java:426)
    at com.bea.p13n.entitlements.management.internal.RDBMSPolicyRefManager.getPolicyRefItem(RDBMSPolicyRefManager.java:166)
    at com.bea.p13n.entitlements.management.internal.RDBMSRolePolicyManager.getRolePolicyRefs(RDBMSRolePolicyManager.java:1476)
    at com.bea.p13n.entitlements.management.RolePolicyManager.getRolePolicyRefs(RolePolicyManager.java:460)
    at com.bea.p13n.delegation.management.internal.DelegationRolePolicyDelegate.getPolicyRefs(DelegationRolePolicyDelegate.java:484)
    at com.bea.p13n.delegation.management.DelegationRoleManager.getPolicyRefs(DelegationRoleManager.java:758)
    at com.bea.p13n.delegation.DelegationService.isAdminPolicyOnResourceRoot(DelegationService.java:414)
    at com.bea.jsptools.portal.backing.DelegatedAdminBackingPortal.init(DelegatedAdminBackingPortal.java:84)
    at com.bea.netuix.servlets.controls.Backable$Impl.initializeBackingFile(Backable.java:126)
    at com.bea.netuix.servlets.controls.AdministeredBackableControl.init(AdministeredBackableControl.java:61)
    at com.bea.netuix.servlets.controls.window.Window.init(Window.java:183)
    at com.bea.netuix.servlets.controls.page.Page.init(Page.java:108)
    at com.bea.netuix.nf.ControlLifecycle$5.visit(ControlLifecycle.java:88)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:356)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:366)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:366)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:366)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:366)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:366)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:366)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:366)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:366)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:366)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:366)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:366)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:366)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:366)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:366)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:366)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:366)
    at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:126)
    at com.bea.netuix.nf.Lifecycle.runOutbound(Lifecycle.java:204)
    at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:153)
    at com.bea.netuix.servlets.manager.UIServlet.runLifecycle(UIServlet.java:324)
    at com.bea.netuix.servlets.manager.UIServlet.doPost(UIServlet.java:196)
    at com.bea.netuix.servlets.manager.PortalServlet.doPost(PortalServlet.java:772)
    at com.bea.netuix.servlets.manager.PortalServlet.doGet(PortalServlet.java:671)
    at com.bea.netuix.servlets.manager.UIServlet.service(UIServlet.java:147)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1077)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:465)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    at com.bea.servlet.SystemAdminSavedStateFilter.doFilter(SystemAdminSavedStateFilter.java:83)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    at com.bea.servlet.PortalSystemAdministratorFilter.doFilter(PortalSystemAdministratorFilter.java:83)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:293)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:7053)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3902)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2773)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
    >
    <Apr 5, 2007 11:22:38 AM GMT+08:00> <Error> <netuix> <BEA-423168> <An exception or error occurred in the backing file [com.bea.jsptools.content.backing.DelegatedAdminBackingCMS] while executing its init method. It was java.lang.NoClassDefFoundError
    java.lang.NoClassDefFoundError
    at com.bea.p13n.entitlements.common.management.internal.PolicyRefMigration.getPersistenceInitialized(PolicyRefMigration.java:63)
    at com.bea.p13n.entitlements.management.internal.RDBMSPolicyRefManager.initializePersistence(RDBMSPolicyRefManager.java:426)
    at com.bea.p13n.entitlements.management.internal.RDBMSPolicyRefManager.getPolicyRefItem(RDBMSPolicyRefManager.java:166)
    at com.bea.p13n.entitlements.management.internal.RDBMSRolePolicyManager.getRolePolicyRefs(RDBMSRolePolicyManager.java:1476)
    at com.bea.p13n.entitlements.management.RolePolicyManager.getRolePolicyRefs(RolePolicyManager.java:460)
    at com.bea.p13n.delegation.management.internal.DelegationRolePolicyDelegate.getPolicyRefs(DelegationRolePolicyDelegate.java:484)
    at com.bea.p13n.delegation.management.DelegationRoleManager.getPolicyRefs(DelegationRoleManager.java:758)
    at com.bea.p13n.delegation.DelegationService.isAdminPolicyOnResourceRoot(DelegationService.java:414)
    at com.bea.jsptools.content.backing.DelegatedAdminBackingCMS.init(DelegatedAdminBackingCMS.java:80)
    at com.bea.netuix.servlets.controls.Backable$Impl.initializeBackingFile(Backable.java:126)
    at com.bea.netuix.servlets.controls.AdministeredBackableControl.init(AdministeredBackableControl.java:61)
    at com.bea.netuix.servlets.controls.window.Window.init(Window.java:183)
    at com.bea.netuix.servlets.controls.page.Page.init(Page.java:108)
    at com.bea.netuix.nf.ControlLifecycle$5.visit(ControlLifecycle.java:88)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:356)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:366)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:366)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:366)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:366)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:366)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:366)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:366)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:366)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:366)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:366)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:366)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:366)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:366)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:366)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:366)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursive(ControlTreeWalker.java:366)
    at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:126)
    at com.bea.netuix.nf.Lifecycle.runOutbound(Lifecycle.java:204)
    at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:153)
    at com.bea.netuix.servlets.manager.UIServlet.runLifecycle(UIServlet.java:324)
    at com.bea.netuix.servlets.manager.UIServlet.doPost(UIServlet.java:196)
    at com.bea.netuix.servlets.manager.PortalServlet.doPost(PortalServlet.java:772)
    at com.bea.netuix.servlets.manager.PortalServlet.doGet(PortalServlet.java:671)
    at com.bea.netuix.servlets.manager.UIServlet.service(UIServlet.java:147)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1077)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:465)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    at com.bea.servlet.SystemAdminSavedStateFilter.doFilter(SystemAdminSavedStateFilter.java:83)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    at com.bea.servlet.PortalSystemAdministratorFilter.doFilter(PortalSystemAdministratorFilter.java:83)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:293)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:7053)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3902)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2773)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
    >
    <Apr 5, 2007 11:22:38 AM GMT+08:00> <Error> <netuix> <BEA-423167> <An exception or error occurred in the backing file [com.bea.jsptools.portal.backing.DelegatedAdminBackingPortal] while executing its preRender method. It was java.lang.NullPointerException
    java.lang.NullPointerException
    at com.bea.jsptools.portal.backing.DelegatedAdminBackingPortal.preRender(DelegatedAdminBackingPortal.java:140)
    at com.bea.netuix.servlets.controls.Backable$Impl.preRender(Backable.java:171)
    at com.bea.netuix.servlets.controls.AdministeredBackableControl.preRender(AdministeredBackableControl.java:85)
    at com.bea.netuix.servlets.controls.window.Window.preRender(Window.java:339)
    at com.bea.netuix.servlets.controls.page.Page.preRender(Page.java:223)
    at com.bea.netuix.nf.ControlLifecycle$7.visit(ControlLifecycle.java:443)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:719)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:731)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:731)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:731)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:731)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:731)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:731)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:731)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:731)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:731)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:731)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:731)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:731)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:731)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:731)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:731)
    at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:731)
    at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:181)
    at com.bea.netuix.nf.Lifecycle.runOutbound(Lifecycle.java:204)
    at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:153)
    at com.bea.netuix.servlets.manager.UIServlet.runLifecycle(UIServlet.java:324)
    at com.bea.netuix.servlets.manager.UIServlet.doPost(UIServlet.java:196)
    at com.bea.netuix.servlets.manager.PortalServlet.doPost(PortalServlet.java:772)
    at com.bea.netuix.servlets.manager.PortalServlet.doGet(PortalServlet.java:671)
    at com.bea.netuix.servlets.manager.UIServlet.service(UIServlet.java:147)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1077)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:465)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    at com.bea.servlet.SystemAdminSavedStateFilter.doFilter(SystemAdminSavedStateFilter.java:83)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    at com.bea.servlet.PortalSystemAdministratorFilter.doFilter(PortalSystemAdministratorFilter.java:83)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:293)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:7053)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3902)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2773)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
    >

    Hi
    I got below problem when i am applying Opatch on middle tier.
    Patch number: 5441441
    ERROR: OPatch failed because of cmd. args. problem
    logfile shows:
    This is a OCM patch.
    Home has no OCM installed.
    To run in silent mode, OPatch requires a response file for Oracle Configuration Manager (OCM).
    Run ./ocm/bin/emocmrsp to generate an OCM response file. The generated response file can be reused on different platforms and in multiple OPat
    ch silent installs.
    To regenerate an OCM response file, rerun ./ocm/bin/emocmrsp.
    I have ran the ./ocm/bin/emocmrsp still i got the above problem.
    Thanks
    balu

Maybe you are looking for