1 Reply Latest reply on Jul 26, 2013 7:40 PM by Ward Flores-Oracle

    grantPermission nameError

    Ward Flores-Oracle

      Hi all,


      The following wlst command to add a system policy for CSF access is failing with a nameError. Am I missing a patch or something? Any help will be very much appreciated.



      [~]$ java -classpath /scratch/soa/Oracle/Middleware/wlserver_10.3/server/lib/weblogic.jar weblogic.WLST


      Initializing WebLogic Scripting Tool (WLST) ...


      Welcome to WebLogic Server Administration Scripting Shell


      Type help() for help on available commands


      wls:/offline> version

      'WebLogic Server  Tue Nov 15 08:52:36 PST 2011 1441050 '

      wls:/offline> connect('weblogic', 'xxx', 't3://localhost:8001')

      Connecting to t3://localhost:8001 with userid weblogic ...

      Successfully connected to managed Server 'soa_server1' that belongs to domain 'base_domain'.


      Warning: An insecure protocol was used to connect to the

      server. To ensure on-the-wire security, the SSL port or

      Admin port should be used instead.


      wls:/base_domain/serverConfig> grantPermission(codeBaseURL='file:${domain.home}/servers/${weblogic.Name}/tmp/_WL_user/myapp/-', permClass='oracle.security.jps.service.credstore.CredentialAccessPermission', permTarget='context=SYSTEM,mapName=*,keyName=*', permActions='*')

      Traceback (innermost last):

        File "<console>", line 1, in ?

      NameError: grantPermission