Thursday, July 23, 2015

Error While Creating Domain During OIM Installation in Windows 2012 R2

During installation of OIM, while creating of domain, getting the following error:

Exception:

Traceback (innermost last):
  File "", line 477, in ?
  File "", line 151, in copyEMClusterMBeanFiles
  File "E:\oracle\Middleware\wlserver_10.3\common\wlst\modules\jython-modules.jar\Lib/javaos$py.class", line 334, in system
  File "E:\oracle\Middleware\wlserver_10.3\common\wlst\modules\jython-modules.jar\Lib/popen2.py", line 235, in system
  File "E:\oracle\Middleware\wlserver_10.3\common\wlst\modules\jython-modules.jar\Lib/popen2.py", line 72, in __init__
  File "E:\oracle\Middleware\wlserver_10.3\common\wlst\modules\jython-modules.jar\Lib/javashell.py", line 64, in execute
OSError: (0, 'Failed to execute command ([\'sh\', \'-c\', \'mkdir E:\\\\oracle\\\\config\\\\domains\\\\IDMDomain\\\\config\\\\fmwconfig\\\\mbeans\\\\oim\']): java.io.IOException: Cannot run program "sh": CreateProcess error=2, The system cannot find the file specified')

Solution:

Add the string "Windows Server 2012" to the list of windows operating systems "os.name" values in the script "javashell.py" in the file [weblogic home]\common\wlst\modules\jython-modules.jar and try again executing config.cmd file

For example, try this way:

  os = str(os or sys.registry.getProperty( "python.os" ) or \
  System.getProperty( "os.name" ))
  
  _osTypeMap = (
  ( "nt", ( 'nt', 'Windows NT', 'Windows NT 4.0', 'WindowsNT',
  'Windows 2000', 'Windows 2003', 'Windows XP', 'Windows CE',
  'Windows Vista', 'Windows Server 2008', 'Windows 7', 'Windows Server 2012' )),
  ( "dos", ( 'dos', 'Windows 95', 'Windows 98', 'Windows ME' )),
  ( "mac", ( 'mac', 'MacOS', 'Darwin' )),
  ( "None", ( 'None', )),
  )


Regards,
Arihant