Total Pageviews

Friday, November 11, 2016

windows 2012 security store error configureSecurityStore.py


On Windows:
MW_HOME\oracle_common\common\bin\wlst.cmd IAM_HOME\common\tools\configureSecurityStore.py -d DOMAIN_HOME -c 
IAM -p opss_schema_password -m create


Error:

Failed to get environment, environ will be empty: (0, 'Failed to execute command ([\'sh\', \'-c\', \'env\']): java.io.IOException: Cannot run program "sh": CreateProcess error=2, The system cannot find the file specified')Problem invoking WLST - Traceback (innermost last):

Solution:

Use the following steps to implement the workaround:
1. Edit the file "lib/javashell.py" which exists under <weblogic home>\common\wlst\modules\jython-modules.jar.
2. Under "osTypeMap" variable add the operating system in question say "Windows 2003" or "Windows Server 2012".
3. Restart the weblogic server once the change is done.4. Execute the command after the server is restarted.


Others:

in order to extract jython-modules.jar. use below command at windows

jar xf jython-modules.jar

after modifying lib/javashell.py (add 'Windows Server 2012' after other operating systems name) save it and jar it again using below command

jar cvf jython-modules.jar Lib\ META-INF\




No comments:

Post a Comment