This discussion is archived
8 Replies Latest reply: May 7, 2013 2:28 AM by Neq RSS

[Solved] WLST Script - NameError

Neq Newbie
Currently Being Moderated
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

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points