【发布时间】:2013-04-12 09:41:38
【问题描述】:
我是 Weblogic 和 WLST 的新手 我通过 Jython 编写脚本将 WLST 连接到管理服务器,但连接时出现错误。
WLSTException:执行连接时发生错误:获取错误 最初的上下文。 t3://localhost:7001 处没有运行服务器
我的 Jython 代码:
print '--------------------------------------------------------------------'
print '-- START NODE MANAGER --'
print '--------------------------------------------------------------------'
startNodeManager(verbose='true', NodeManagerHome='C:/Oracle/Middleware/wlserver_10.3/common/nodemanager', ListenPort='5556', ListenAddress='localhost')
print '--------------------------------------------------------------------'
print '-- CONNECT WLST TO NODE MANAGER --'
print '--------------------------------------------------------------------'
nmConnect('weblogic', 'abcd123-', 'localhost', '5556', 'base_domain', 'C:/Oracle/Middleware/user_projects/domains/base_domain','ssl')
print '--------------------------------------------------------------------'
print '-- START ADMIN SERVER --'
print '--------------------------------------------------------------------'
nmStart('AdminServer')
nmServerStatus('AdminServer')
print '--------------------------------------------------------------------'
print '-- CONNECT WLST TO ADMIN SERVER --'
print '--------------------------------------------------------------------'
connect('weblogic', 'abcd123-')
# connect('weblogic', 'abcd123-', 't3://localhost:7001') I aloso try this but not work
【问题讨论】:
-
您可以通过localhost:7001/console 进入管理控制台吗?
标签: python weblogic jython weblogic11g wlst