Tuesday, September 10, 2019

The Server Instance cannot be started because the Integrated Weblogic domain was not built successfully.

Problem :

[Waiting for the domain to finish building…]
[03:13:25 PM] Creating Integrated Weblogic domain…
[03:13:31 PM] ERROR:  An error occurred while building the default domain.
Please see this log file for more details:
C:\Users\manohar\AppData\Roaming\JDeveloper\system11.1.1.9.40.66.73\o.j2ee.adrs\CreateDefaultDomain.log
The Server Instance cannot be started because the Integrated Weblogic domain was not built successfully.
Reason:
Domain creation fails after installing on new Windows version

When JDeveloper is installed on a newly released Windows version, it is possible that Jython, which is used by Oracle WebLogic Server’s script tool, does not recognize the Windows version and instead assumes that it is running in a Linux environment.

This causes domain creation to fail with the following error in CreateDefaultDomain.log:

wlst > 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’)/
@ wlst > Error: ADRS_DOMAIN_PASSWORD environment variable not set.

The workaround is to obtain a patch for jython-modules.jar, or to run on a supported version of Windows.

Solution :

jdeveloper 12c generic installer windows 10 integrated weblogic cannot create domain
If you try to install JDeveloper 12c (12.2.1 or 12.1.3) on Windows 10 using the generic installer you will not manage to create a new WebLogic domain because jython libraries that integrated weblogic have cannot recognize the operating system. The same problem can happen if you install on Windows 7 the 12c JDeveloper using the generic installer, then upgrade the operating system to Windows 10 and need to recreate the domain. This is also happening in SOA Suite and Business Process Management Suite quick start for Developers installation.


A quick solution for this is to use the Windows installer and not the generic one. For SOA/BPM/OSB quick start JDeveloper installation you need to patch the juthon-modules.jar to create the SOA/OSB domain.


If you still want to use the generic installer (for example to use a newer version of JDK) you can extract the jython-modules.jar at C:\Oracle\Middleware\Oracle_Home\wlserver\common\wlst\modules and edit javashell.py inside Lib. Find _osTypeMap and add the string 'Windows 10'.

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

Then you need to package jar file again using jar -cvf jython-modules.jar *.* inside jython-modules extracted folder


No comments:

Post a Comment