My Oracle Support Banner

readDomain() On Unpacked WLS 12c Domain Fails With com.oracle.cie.common.CommonException: fail to load domain from directory (Doc ID 1681602.1)

Last updated on APRIL 05, 2018

Applies to:

Oracle WebLogic Server - Version 12.1.1.0 to 12.1.2.0.0 [Release 12c]
Information in this document applies to any platform.

Symptoms

On WLS 12c, when a new domain is created to cover multiple machines, we create a template with the pack command and property -managed=true, for example:

$ ./pack.sh -domain=WL_HOME/user_projects/domains/base_domain/ -template=/tmp/ManagedServer1212.jar -template_name="MyTemplate" -managed=true

According to the documentation, when this parameter is set to true, a Managed Server template is created that contains a minimal set of files, including SerializedSystemIni.dat and nm_password.properties. It also includes a domain.properties file that is unique to the Managed Server template. Applications and certain application initialization files are not included. The resulting template can be used to create Managed Servers on remote machines.

On the remote machine, this template is installed with the unpack command and the managed servers included are almost ready to be started.

$ ./unpack.sh -template=[PATH]/ManagedServer1212.jar -domain=WL_HOME/user_projects/domains/base_domain

However, still on the remote machine, an invocation to readDomain fails with the exception:

$ cd WL_HOME/user_projects/domains/base_domain/bin
$ . ./setDomainEnv.sh
$ java weblogic.WLST

Initializing WebLogic Scripting Tool (WLST) ...

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands

wls:/offline>
nmConnect('weblogic', 'PASSWORD', 'HOST', '5556', 'base_domain', 'WL_HOME/user_projects/domains/base_domain', 'plain')wls:/offline>
Connecting to Node Manager ...
Successfully Connected to Node Manager.
wls:/nm/base_domain> readDomain('WL_HOME/user_projects/domains/base_domain')

Error: readDomain() failed. Do dumpStack() to see details.

wls:/offline>dumpStack()
com.oracle.cie.domain.script.jython.WLSTException: com.oracle.cie.domain.script.ScriptException: com.oracle.cie.common.CommonException: fail to load domain from directory
Root Cause: java.lang.reflect.InvocationTargetException
at com.oracle.cie.domain.script.jython.CommandExceptionHandler.handleException(CommandExceptionHandler.java:55)
at com.oracle.cie.domain.script.jython.WLScriptContext.handleException(WLScriptContext.java:1967)
at com.oracle.cie.domain.script.jython.WLScriptContext.readDomain(WLScriptContext.java:542)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.python.core.PyReflectedFunction.__call__(Unknown Source)
at org.python.core.PyMethod.__call__(Unknown Source)
at org.python.core.PyObject.__call__(Unknown Source)
at org.python.core.PyInstance.invoke(Unknown Source)
at org.python.pycode._pyx5.readDomain$18(/tmp/WLSTOfflineIni4985169760063343452.py:95)
at org.python.pycode._pyx5.call_function(/tmp/WLSTOfflineIni4985169760063343452.py)
at org.python.core.PyTableCode.call(Unknown Source)
at org.python.core.PyTableCode.call(Unknown Source)
at org.python.core.PyFunction.__call__(Unknown Source)
at org.python.pycode._pyx29.f$0(:1)
at org.python.pycode._pyx29.call_function()
at org.python.core.PyTableCode.call(Unknown Source)
at org.python.core.PyCode.call(Unknown Source)
at org.python.core.Py.runCode(Unknown Source)
at org.python.core.Py.exec(Unknown Source)
at org.python.util.PythonInterpreter.exec(Unknown Source)
at org.python.util.InteractiveInterpreter.runcode(Unknown Source)
at org.python.util.InteractiveInterpreter.runsource(Unknown Source)
at org.python.util.InteractiveInterpreter.runsource(Unknown Source)
at weblogic.management.scripting.WLST.main(WLST.java:219)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at weblogic.WLST.main(WLST.java:29)
Caused by: com.oracle.cie.domain.script.ScriptException: com.oracle.cie.common.CommonException: fail to load domain from directory
Root Cause: java.lang.reflect.InvocationTargetException
at com.oracle.cie.domain.script.ScriptExecutor.readTemplate(ScriptExecutor.java:556)
at com.oracle.cie.domain.script.jython.WLScriptContext.readDomain(WLScriptContext.java:534)
... 29 more
Caused by: com.oracle.cie.common.CommonException: fail to load domain from directory
Root Cause: java.lang.reflect.InvocationTargetException
at com.oracle.cie.domain.WLSTemplateBuilder.parseDomainDirectory(WLSTemplateBuilder.java:1235)
at com.oracle.cie.domain.WLSTemplateBuilder.buildDomainTemplate(WLSTemplateBuilder.java:1833)
at com.oracle.cie.domain.WLSTemplateBuilder.buildDomainTemplate(WLSTemplateBuilder.java:1801)
at com.oracle.cie.domain.WLSTemplateBuilder.buildDomainTemplate(WLSTemplateBuilder.java:1774)

Connection to NM is done using plain protocol, but the same issue is seen when using SSL.

Cause

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.