Domain
create domain by using wlst
wls:/offline>readDomain('C:\\oracle\\weblogic10.3.6\\user_projects\\domains\\bas
e_domain')
wls:/offline/base_domain>writeTemplate('C:\\oracle\\weblogic10.3.6\\userTemplate
s\\base_domain.jar')
wls:/offline/base_domain>closeDomain()
=====================================e_domain')
wls:/offline/base_domain>writeTemplate('C:\\oracle\\weblogic10.3.6\\userTemplate
s\\base_domain.jar')
wls:/offline/base_domain>closeDomain()
Click the "Error" button to toggle between hiding and showing
error when typing
===================
wls:/offline>createDomain('C:\\oracle\\weblogic10.3.6\\userTemplates\\base_domai
n.jar,'C:\\oracle\\weblogic10.3.6\\user_projects\\domains\\base_domain','weblogi
c','weblogic10')
Traceback (innermost last):
(no code object) at line 0
File "<console>", line 1
createDomain('C:\\oracle\\weblogic10.3.6\\userTemplates\\base_domain.jar
,'C:\\oracle\\weblogic10.3.6\\user_projects\\domains\\base_domain','weblogic','w
eblogic10')
^
SyntaxError: invalid syntax
---------------------------------
wls:/offline>createDomain('C:\oracle\weblogic10.3.6\userTemplates\base_domain.ja
r,'C:\oracle\weblogic10.3.6\user_projects\domains\base_domain','weblogic','weblo
gic10')
Traceback (innermost last):
(no code object) at line 0
File "<console>", line 1
createDomain('C:\oracle\weblogic10.3.6\userTemplates\base_domain.jar,'C:
\oracle\weblogic10.3.6\user_projects\domains\base_domain','weblogic','weblogic10
')
^
SyntaxError: invalid syntax
===============================
wls:/offline>createDomain('C:\oracle\weblogic10.3.6\userTemplates\base_domain.ja
r''C:\oracle\weblogic10.3.6\user_projects\domains\base_domain','weblogic','weblo
gic10')
Traceback (innermost last):
File "<console>", line 1, in ?
TypeError: createDomain() takes at least 4 arguments (3 given)
==========================
wls:/offline>createDomain('C:\oracle\weblogic10.3.6\userTemplates\base_domain.ja
r','C:\oracle\weblogic10.3.6\user_projects\domains\base_domain','weblogic','webl
ogic10')
Error: readTemplate() failed. Do dumpStack() to see details.
Error: cd() failed. Do dumpStack() to see details.
Error: cd() failed. Do dumpStack() to see details.
Error: ls() failed. Do dumpStack() to see details.
Error: runCmd() failed. Do dumpStack() to see details.
wls:/offline>createDomain('C:\\oracle\\weblogic10.3.6\\userTemplates\\base_domai
n.jar','C:\\oracle\\weblogic10.3.6\\user_projects\\domains\\base_domain','weblog
ic','weblogic10')
com.oracle.cie.domain.script.ScriptException: 60302: Domain already exists.
--------------------------------------------------------
60302: A domain already exists at the specified location.
60302: Change the domain location.
at com.oracle.cie.domain.script.ScriptExecutor.writeDomain(ScriptExecuto
r.java:2035)
at com.oracle.cie.domain.script.jython.WLScriptContext.writeDomain(WLScr
iptContext.java:1793)
at com.oracle.cie.domain.script.jython.WLScriptContext.createDomain(WLSc
riptContext.java:1266)
at com.oracle.cie.domain.script.jython.WLScriptContext.createDomain(WLSc
riptContext.java:1196)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.oracle.cie.domain.script.jython.WLSTState.processCommand(WLSTStat
e.java:225)
at com.oracle.cie.domain.script.jython.WLScriptContext.runCmd(WLScriptCo
ntext.java:729)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
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.command$1(C:\Users\balu\AppData\Local\Temp\WL
STOfflineIni7956150923675118290.py:19)
at org.python.pycode._pyx5.call_function(C:\Users\balu\AppData\Local\Tem
p\WLSTOfflineIni7956150923675118290.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.core.PyObject.__call__(Unknown Source)
at org.python.pycode._pyx5.createDomain$34(C:\Users\balu\AppData\Local\T
emp\WLSTOfflineIni7956150923675118290.py:148)
at org.python.pycode._pyx5.call_function(C:\Users\balu\AppData\Local\Tem
p\WLSTOfflineIni7956150923675118290.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.core.PyObject.__call__(Unknown Source)
at org.python.pycode._pyx83.f$0(<console>:1)
at org.python.pycode._pyx83.call_function(<console>)
at org.python.core.PyTableCode.call(Unknown Source)
at org.python.core.PyCode.call(Unknown Source)
at org.python.core.Py.runCode(Py.java:1226)
at org.python.core.Py.exec(Py.java:1252)
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.utils.WLSTInterpreter.runsource(WLSTInt
erpreter.java:1095)
at weblogic.management.scripting.WLST.main(WLST.java:232)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at weblogic.WLST.main(WLST.java:47)
Error: runCmd() failed. Do dumpStack() to see details.
===================
wls:/offline>createDomain('C:\\oracle\\weblogic10.3.6\\userTemplates\\base_domai
n.jar,'C:\\oracle\\weblogic10.3.6\\user_projects\\domains\\base_domain','weblogi
c','weblogic10')
Traceback (innermost last):
(no code object) at line 0
File "<console>", line 1
createDomain('C:\\oracle\\weblogic10.3.6\\userTemplates\\base_domain.jar
,'C:\\oracle\\weblogic10.3.6\\user_projects\\domains\\base_domain','weblogic','w
eblogic10')
^
SyntaxError: invalid syntax
---------------------------------
wls:/offline>createDomain('C:\oracle\weblogic10.3.6\userTemplates\base_domain.ja
r,'C:\oracle\weblogic10.3.6\user_projects\domains\base_domain','weblogic','weblo
gic10')
Traceback (innermost last):
(no code object) at line 0
File "<console>", line 1
createDomain('C:\oracle\weblogic10.3.6\userTemplates\base_domain.jar,'C:
\oracle\weblogic10.3.6\user_projects\domains\base_domain','weblogic','weblogic10
')
^
SyntaxError: invalid syntax
===============================
wls:/offline>createDomain('C:\oracle\weblogic10.3.6\userTemplates\base_domain.ja
r''C:\oracle\weblogic10.3.6\user_projects\domains\base_domain','weblogic','weblo
gic10')
Traceback (innermost last):
File "<console>", line 1, in ?
TypeError: createDomain() takes at least 4 arguments (3 given)
==========================
wls:/offline>createDomain('C:\oracle\weblogic10.3.6\userTemplates\base_domain.ja
r','C:\oracle\weblogic10.3.6\user_projects\domains\base_domain','weblogic','webl
ogic10')
Error: readTemplate() failed. Do dumpStack() to see details.
Error: cd() failed. Do dumpStack() to see details.
Error: cd() failed. Do dumpStack() to see details.
Error: ls() failed. Do dumpStack() to see details.
Error: runCmd() failed. Do dumpStack() to see details.
wls:/offline>createDomain('C:\\oracle\\weblogic10.3.6\\userTemplates\\base_domai
n.jar','C:\\oracle\\weblogic10.3.6\\user_projects\\domains\\base_domain','weblog
ic','weblogic10')
com.oracle.cie.domain.script.ScriptException: 60302: Domain already exists.
--------------------------------------------------------
60302: A domain already exists at the specified location.
60302: Change the domain location.
at com.oracle.cie.domain.script.ScriptExecutor.writeDomain(ScriptExecuto
r.java:2035)
at com.oracle.cie.domain.script.jython.WLScriptContext.writeDomain(WLScr
iptContext.java:1793)
at com.oracle.cie.domain.script.jython.WLScriptContext.createDomain(WLSc
riptContext.java:1266)
at com.oracle.cie.domain.script.jython.WLScriptContext.createDomain(WLSc
riptContext.java:1196)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.oracle.cie.domain.script.jython.WLSTState.processCommand(WLSTStat
e.java:225)
at com.oracle.cie.domain.script.jython.WLScriptContext.runCmd(WLScriptCo
ntext.java:729)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
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.command$1(C:\Users\balu\AppData\Local\Temp\WL
STOfflineIni7956150923675118290.py:19)
at org.python.pycode._pyx5.call_function(C:\Users\balu\AppData\Local\Tem
p\WLSTOfflineIni7956150923675118290.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.core.PyObject.__call__(Unknown Source)
at org.python.pycode._pyx5.createDomain$34(C:\Users\balu\AppData\Local\T
emp\WLSTOfflineIni7956150923675118290.py:148)
at org.python.pycode._pyx5.call_function(C:\Users\balu\AppData\Local\Tem
p\WLSTOfflineIni7956150923675118290.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.core.PyObject.__call__(Unknown Source)
at org.python.pycode._pyx83.f$0(<console>:1)
at org.python.pycode._pyx83.call_function(<console>)
at org.python.core.PyTableCode.call(Unknown Source)
at org.python.core.PyCode.call(Unknown Source)
at org.python.core.Py.runCode(Py.java:1226)
at org.python.core.Py.exec(Py.java:1252)
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.utils.WLSTInterpreter.runsource(WLSTInt
erpreter.java:1095)
at weblogic.management.scripting.WLST.main(WLST.java:232)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at weblogic.WLST.main(WLST.java:47)
Error: runCmd() failed. Do dumpStack() to see details.
======================================
wls:/offline>createDomain('C:\\oracle\\weblogic10.3.6\\userTemplates\\base_domai
n.jar','C:\\oracle\\weblogic10.3.6\\user_projects\\domains\\new_base_domain','we
blogic','weblogic10')
wls:/offline>readDomain('C:\\oracle\\weblogic10.3.6\\user_projects\\domains\\new
_base_domain')
n.jar','C:\\oracle\\weblogic10.3.6\\user_projects\\domains\\new_base_domain','we
blogic','weblogic10')
wls:/offline>readDomain('C:\\oracle\\weblogic10.3.6\\user_projects\\domains\\new
_base_domain')
Comments
Post a Comment