3 Replies Latest reply: Sep 9, 2013 3:51 PM by Yannick Ongena RSS

    wlst.cmd version

    SNikiforov

      Hi All,

      I am trying (unsuccessfully) to export metadata for webcenter portal application using WebLogic Scripting Tool.

      Accordingly to documentation

      http://docs.oracle.com/cd/E23943_01/webcenter.1111/e12405/wcadm_intro.htm#BHCEDCFG

       

      To list WebCenter Portal WLST commands, type: help('webcenter') at the WLST command prompt.

       

      If the message No help for webcenter found... displays, you are probably running the WLST script from the wrong directory, for example, you might be running wlst.sh or wlst.cmd from the oracle_common directory instead of WC_ORACLE_HOME/common/bin.

       

      Also in examples

      wlst:> importMetadata(application='wcps-services', server='WC_Utilities', fromLocation='<mar file>', remote='true'),

      but when I run in looks

      wls:> importMetadata(…………….

       

      I try it in right directory, but still having error. I have JDeveloper 11.1.1.6 with Webcenter.

        • 1. Re: wlst.cmd version
          Hoque

          Hi,

           

          What kind of error /issue are you facing ?

           

          Anyway,where is the question of wlst.cmd version ?

           

          However, this a sample script for exporting -

           

           

           

          exportMetadata(application='portalname',server='WC_Spaces',toLocation='/userwc/app',docs='/oracle/webcenter/**')

          application- the name of the deployed application

          server- managed server on which the application runs

          toLocation- location where the exported metadata will be saved

          docs- the sub tree of metadata you want to export. In our case everything under /oracle/webcenter/

           

           

          Regards,

          Hoque

          • 2. Re: wlst.cmd version
            SNikiforov

            This is the kind of error:

            wls:/DefaultDomain/serverConfig> help('webcenter')

            No help for webcenter found. Please try help() for available options.

            wls:/DefaultDomain/serverConfig>

            • 3. Re: wlst.cmd version
              Yannick Ongena

              1) If you are trying to export the MDS from JDeveloper you are doing an unnecessary step as the MDS in JDev is already file based and you only have to navigate to the MDS location.

              You can find this in your Application properties by going to the Application menu and select Application Properties.

              Open the Run node and select MDS. Copy the Default location and open it in your explorer. This should give you the MDS without needing to export it.

               

              2) If you are trying to export MDS from a real WebCenter installation you have to go to the webcenter directory.

              In my case this is:

              C:\Oracle\middlewarePs6\Oracle_WC1\common\bin

              So it looks like <fuisn home>/Oracle_WC1.common/bin

               

              This will open the WLST command tool and will load the required libraries for WebCenter.

               

              You can also read more about this in an article I recently wrote: http://www.ateam-oracle.com/exporting-metadata-for-a-specific-group-space-in-webcenter-spaces/