0 Replies Latest reply on Apr 10, 2013 12:49 PM by 980110

    error in wlst through java

      Hi all,

      I was trying to use wlst embedded in java for importing metadata file to a server using the following function:

      private static void importMetaData() {
      StringBuffer buff = new StringBuffer();
      buff.append("importMetadata(application='FintechTrainingAppEar', server='DefaultServer', fromLocation='/scratch/software/OracleAlerts/FintechTrainingApp_2/deploy/EssMar.mar')");


      but I am getting following error:

      Exception in thread "main" Traceback (innermost last):
      File "<string>", line 2, in ?
      NameError: importMetadata

      If I directly run them as WLST command every thing is working fine. Can any one please suggest a solution.