ADRS_DOMAIN_PASSWORD error during Integrated Weblogic Domain creation

Posted by

When tried to create the Integrated Weblogic Domain in JDeveloper , the below error encountered . This error occurs as Weblogic Jython libraries do not recognize the operating system.

Error:  ADRS_DOMAIN_PASSWORD environment variable not set

The below given steps can be performed to resolve the error.

Option 1: 

Apply the Patch 22138883 as per the JDeveloper Version in your machine.

Option 2: 

Manual update the  jython-modules.jar 

  1. Copy the jython-modules.jar from the Oracle Fusion Middleware home path 
<MW_HOME>\wlserver\common\wlst\modules*

2. Unzip the  jython-modules.jar

3. Open the javashell.py file in the text editor 

4. Search for the variable _osTypeMap

_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 8',
  'Windows Server 2012')),
  ( "dos", ( 'dos', 'Windows 95', 'Windows 98', 'Windows ME' )),
  ( "mac", ( 'mac', 'MacOS', 'Darwin' )),
  ( "None", ( 'None', )),
  )

5. Update by adding “Windows 10” in the “nt”  values of _osTypeMap

 _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 8',
  'Windows Server 2012','Windows 10')),
  ( "dos", ( 'dos', 'Windows 95', 'Windows 98', 'Windows ME' )),
  ( "mac", ( 'mac', 'MacOS', 'Darwin' )),
  ( "None", ( 'None', )),
  )

6. Execute the below command to create the updated jython-modules.jar

jar –cvf jython-modules.jar

7. Place the new jython-modules.jar to the below middleware location

<MW_HOME>\wlserver\common\wlst\modules*

8. Now open the JDeveloper and try to create the integrated weblogic domain process.