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

3 comments:


  1. I am also getting the same Error While Creating Domain During OIM Installation in Microsoft Windows 10 Pro .
    The solution which you have provided , i am doing the same but still facing the same issue ,below is the error:



    Domain Location: D:\Oracle\Middleware\user_projects\domains\oim_domain

    Reason: null

    Exception:

    Traceback (innermost last):
    File "", line 477, in ?
    File "", line 151, in copyEMClusterMBeanFiles
    File "D:\Oracle\Middleware\wlserver_10.3\common\wlst\modules\jython-modules.jar\Lib/javaos$py.class", line 334, in system
    File "D:\Oracle\Middleware\wlserver_10.3\common\wlst\modules\jython-modules.jar\Lib/popen2.py", line 235, in system
    File "D:\Oracle\Middleware\wlserver_10.3\common\wlst\modules\jython-modules.jar\Lib/popen2.py", line 72, in __init__
    File "D:\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 D:\\\\Oracle\\\\Middleware\\\\user_projects\\\\domains\\\\oim_domain\\\\config\\\\fmwconfig\\\\mbeans\\\\oim\']): java.io.IOException: Cannot run program "sh": CreateProcess error=2, The system cannot find the file specified')


    Thanks and Regards
    Sachin Tyagi

    ReplyDelete
  2. Following this, as I am also facing the same issue. Please note the below options I have tried out already:
    -In OS_Type section, I have mentioned both 'Windows 10' & 'Windows 10 Pro' ,but got similar error.
    -Tried out some folder options while generating jar file out of Jython-modules.jar,after modifying javashell.py
    -I have installaed the same products[OIM,Weblogic,DB,RCU etc ] in windows 7 successfully before.

    It would be great if some one can give a breakthrough to this issue.

    ReplyDelete
  3. HI,

    I also tried above the same, but still not working..Please provide if any other reason or solution for this. I am using windows 10.

    Thanks

    ReplyDelete