2 Replies Latest reply: Dec 7, 2010 6:24 AM by 803630 RSS

    WLST NameError

    803630
      Why is this NameError happening in WLST online...Cany help please..


      wls:/soa_domain/serverConfig> exportMetadata(application='soa-infra',server='soa_server1',toLocation='D:
      MDS',docs='/soa/shared/rules/**')
      Traceback (innermost last):
      File "<console>", line 1, in ?
      NameError: exportMetadata


      Thanks.
        • 1. Re: WLST NameError
          Pierluigi Vernetto
          run wlst.cmd from
          C:\Oracle1\Middleware\Oracle_SOA1\common\bin

          it's written in the manual that you should use the right version of WLST.... :o)

          What I get is:

          wls:/offline> exportMetadata(application='soa-infra',server='AdminServer',toLoca
          tion='C:/MDS',docs='/soa/shared/rules/**')
          Traceback (innermost last):
          File "<console>", line 1, in ?
          File "C:\Oracle1\MIDDLE~1\ORACLE~1\common\wlst\mdsWLSTCommands.py", line 134,
          in exportMetadata
          File "C:\Oracle1\MIDDLE~1\ORACLE~1\common\wlst\mdsWLSTCommands.py", line 558,
          in executeAppRuntimeMBeanOperation
          File "C:\Oracle1\MIDDLE~1\ORACLE~1\common\wlst\mdsWLSTCommands.py", line 513,
          in isConnectedToWLS
          UserWarning: MDS-91005: No connection to a Weblogic server exists. The operation
          +"exportMetadata" can be executed only in the online mode.+
          wls:/offline> exit()


          after this I do
          connect('weblogic', 'welcome1', 't3://localhost:7001')
          exportMetadata(application='soa-infra',server='AdminServer',toLocation='C:/MDS',docs='/soa/shared/rules/**')

          and it magically works :o)

          Executing operation: exportMetadata.

          Operation "exportMetadata" completed. Summary of "exportMetadata" operation is:
          List of documents successfully transferred:

          +/soa/shared/rules/BpelProcess.xsd+
          +/soa/shared/rules/DecisionService.xsd+
          +/soa/shared/rules/DecisionServiceMessages.xsd+
          +/soa/shared/rules/common.xsd+
          +/soa/shared/rules/rpi.xsd+

          +5 documents successfully transferred.+
          • 2. Re: WLST NameError
            803630
            Thanks.

            Can you help me with please.The path exists on the default partition '/deployed-composites/default/BREUseCase3_rev1.0/oracle/rules/breusecase3.0/'.

            wls:/soa_domain/serverConfig> importMetadata(application='soa-infra', server='soa_server1',fromLocation='C:\\temp\\MDS\\deployed-composites\\default\\BREUseCase
            3_rev1.0\\oracle\\rules\\breusecase3\\LegalComplianceDictionary1.rules', docs='/deployed-composites/default/BREUseCase3_rev1.0/oracle/rules/breusecase3.0/**')

            Executing operation: importMetadata.

            Traceback (innermost last):
            File "<console>", line 1, in ?
            File "D:\Oracle\MIDDLE~1\ORACLE~1\common\wlst\mdsWLSTCommands.py", line 158, in importMetadata
            File "D:\Oracle\MIDDLE~1\ORACLE~1\common\wlst\mdsWLSTCommands.py", line 574, in executeAppRuntimeMBeanOperation
            File "D:\Oracle\MIDDLE~1\ORACLE~1\common\wlst\mdsWLSTCommands.py", line 713, in saveStackAndRaiseException
            WLSTException: Could not find End Of Central Directory
            Could not find End Of Central Directory
            Could not find End Of Central DirectoryMDS-91009: Operation "importMetadata" failure. Use dumpStack() to view the full stacktrace.