OAM 11.1.2.3. Configuring Database Security Store - Errors When Running ConfigureSecurityStore.py Fails On Windows 2012 R2

(Doc ID 2152219.1)

Last updated on JUNE 15, 2017

Applies to:

Oracle Access Manager - Version 11.1.2.3.0 and later
Information in this document applies to any platform.

Symptoms

You have installed OAM 11.1.2.3 on Windows 2012 R2. The configsecuirtystore.py script fails with the following 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):
File "C:\Oracle\Middleware\Oracle_IDM1\common\tools\configureSecurityStore.py", line 42, in ?
File "C:\Oracle\MIDDLE~1\WLSERV~1.3\common\wlst\modules\jython-modules.jar\Lib/javaos$py.class", line 256, in __getitem__
File "C:\Oracle\MIDDLE~1\WLSERV~1.3\common\wlst\modules\jython-modules.jar\Lib/UserDict$py.class", line 14, in __getitem__
File "C:\Oracle\MIDDLE~1\WLSERV~1.3\common\wlst\modules\jython-modules.jar\Lib/javaos$py.class", line 256, in __getitem__
File "C:\Oracle\MIDDLE~1\WLSERV~1.3\common\wlst\modules\jython-modules.jar\Lib/UserDict$py.class", line 14, in __getitem__
KeyError: COMMON_COMPONENTS_HOME

You then follow the guide below:

2.3.2 Error Might Appear While Configuring OAM Database Security Store on Windows

Then re-run the command:

C:\Oracle\Middleware\oracle_common\common\bin>wlst.cmd C:\Oracle\Middleware\Oracle_IDM1\common\tools\configureSecurityStore.py -d C:\Oracle\Middleware\user_projects\domains\base_domain -c IAM -p welcome1 -m create

Fails with the following error message:

Java HotSpot(TM) 64-Bit Server VM warning: ignoring option UseSpinning; support was removed in 7.0_40

Initializing WebLogic Scripting Tool (WLST) ...

Error execing the Python script "C:\Oracle\MIDDLE~1\11gOAM\ORACLE~1\common\wlst\adfmWLSTCommands.py" caused an error "Traceback (innermost last):
  File "C:\Oracle\MIDDLE~1\11gOAM\ORACLE~1\common\wlst\adfmWLSTCommands.py", line 46, in ?
ImportError: no module named pprint"
Error execing the Python script "C:\Oracle\MIDDLE~1\11gOAM\ORACLE~1\common\wlst\adfWLSTCommands.py" caused an error "Traceback (innermost last):
  File "C:\Oracle\MIDDLE~1\11gOAM\ORACLE~1\common\wlst\adfWLSTCommands.py", line 17, in ?
ImportError: no module named glob"

Error execing the Python script "C:\Oracle\MIDDLE~1\11gOAM\ORACLE~1\common\wlst\igfConfig.py" caused an error "Traceback (innermost last):
  File "C:\Oracle\MIDDLE~1\11gOAM\ORACLE~1\common\wlst\igfConfig.py", line 19, in ?
ImportError: no module named igfConfig_handler"

Error execing the Python script "C:\Oracle\MIDDLE~1\11gOAM\ORACLE~1\common\wlst\mdsWLSTCommands.py" caused an error "Traceback (innermost last):
  File "C:\Oracle\MIDDLE~1\11gOAM\ORACLE~1\common\wlst\mdsWLSTCommands.py", line 74, in ?
  File "C:\Oracle\MIDDLE~1\11gOAM\ORACLE~1\common\wlst\lib\ora_util.py", line 35, in addScriptHandlers
AttributeError: class 'org.python.modules.os' has no attribute 'path'"

Error execing the Python script "C:\Oracle\MIDDLE~1\11gOAM\ORACLE~1\common\wlst\Opss.py" caused an error "Traceback (innermost last):
  File "C:\Oracle\MIDDLE~1\11gOAM\ORACLE~1\common\wlst\Opss.py", line 14, in ?
ImportError: no module named Opss_handler"
Error execing the Python script "C:\Oracle\MIDDLE~1\11gOAM\ORACLE~1\common\wlst\oracledfw.py" caused an error "Traceback (innermost last):
  File "C:\Oracle\MIDDLE~1\11gOAM\ORACLE~1\common\wlst\oracledfw.py", line 27, in ?
AttributeError: class 'org.python.modules.os' has no attribute 'path'"
Error execing the Python script "C:\Oracle\MIDDLE~1\11gOAM\ORACLE~1\common\wlst\oracledms.py" caused an error "Traceback (innermost last):
  File "C:\Oracle\MIDDLE~1\11gOAM\ORACLE~1\common\wlst\oracledms.py", line 434, in ?
AttributeError: class 'org.python.modules.os' has no attribute 'path'"

Error execing the Python script "C:\Oracle\MIDDLE~1\11gOAM\ORACLE~1\common\wlst\OracleLibOVD.py" caused an error "Traceback (innermost last):
  File "C:\Oracle\MIDDLE~1\11gOAM\ORACLE~1\common\wlst\OracleLibOVD.py", line 19, in ?
ImportError: no module named OracleLibOVD_handler"
Error execing the Python script "C:\Oracle\MIDDLE~1\11gOAM\ORACLE~1\common\wlst\PrintJarsVersion.py" caused an error "Traceback (innermost last):
  File "C:\Oracle\MIDDLE~1\11gOAM\ORACLE~1\common\wlst\PrintJarsVersion.py", line 2, in ?
ImportError: no module named glob"
Error execing the Python script "C:\Oracle\MIDDLE~1\11gOAM\ORACLE~1\common\wlst\sslconfig.py" caused an error "Traceback (innermost last):
  File "C:\Oracle\MIDDLE~1\11gOAM\ORACLE~1\common\wlst\sslconfig.py", line 18, in ?
ImportError: no module named shutil"
Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands

Problem invoking WLST - Traceback (innermost last):
  File "c:\Oracle\Middleware\11gOAM\IAM_Home1\common\tools\configureSecurityStore.py", line 11, in ?
ImportError: no module named xml

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms