【发布时间】:2014-03-19 09:20:21
【问题描述】:
我有一个脚本conn.py,在脚本中有一个名为conn()的函数,使用connect(username,password,url)连接weblogic域。并有一个脚本createServer.py:
__main__:
import conn
conn.conn()
cmo.createServer()
我在createServer() 上出现错误,在我运行conn.conn() 后似乎自动断开连接(),我怎样才能通过这种方式仍然使用WLST 在线功能?
---------我的控制台返回 -------------
starting the script ....
input your user name : weblogic
input your user password : weblogic456
Connecting to t3://localhost:7001 with userid weblogic ...
Successfully connected to Admin Server 'AdminServer' that belongs to domain 'demo'.
Warning: An insecure protocol was used to connect to the
server. To ensure on-the-wire security, the SSL port or
Admin port should be used instead.
connect OK.
You will need to be connected to a running server to execute this command
You will need to be connected to a running server to execute this command
Error: No domain or domain template has been read.
Problem invoking WLST - Traceback (innermost last):
File "/home/chopperlee/Program/Workspace/configWL/wlst/createServer.py", line 84, in ?
File "/home/chopperlee/Program/Workspace/configWL/wlst/createServer.py", line 37, in createServer
AttributeError: 'NoneType' object has no attribute 'createServer'
【问题讨论】:
-
你遇到了什么错误?
-
You will need to be connected to a running server to execute this command和AttributeError: 'NoneType' object has no attribute 'createServer'在运行 createServer() 之前绝对会断开连接 -
请您过去整个跟踪跟踪吗?