This discussion is archived
1 Reply Latest reply: Jul 26, 2013 12:40 PM by ward.flores RSS

grantPermission nameError

ward.flores Newbie
Currently Being Moderated

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 10.3.6.0  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

wls:/base_domain/serverConfig>

Legend

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