8 Replies Latest reply on May 7, 2013 9:28 AM by Neq

    [Solved] WLST Script - NameError

    Neq
      Hi all.
      I have probably very basic problem, but I don't know how to solve it.

      I try to write some simple script to manage application roles through WLST, like this:

      createAppRole("obi","ROLE_A")
      createAppRole("obi","ROLE_B")

      After login, I try to call this script:

      execfile('D:/test.py')

      Result:

      Traceback (innermost last):
      File "<console>", line 1, in ?
      File "D:\test.py", line 1, in ?
      NameError: createAppRole

      I have the same error with every command I tried.
      I tried this: http://docs.oracle.com/cd/E12840_01/wls/docs103/config_scripting/using_WLST.html#wp1094333
      and like here: WLST NameError
      Nothing works.

      I use WLST shipped with JDeveloper.

      Thanks for any help :)

      Edited by: 1001885 on 2013-04-23 06:04

      Edited by: Neq on 2013-05-07 02:28