Oracle Weblogic集群搭建完毕,主管和受管启动并 运行正常,在执行通过 stopManagedWebLogic.sh bngjj1 http://10.10.1.1:7001命令停止受管的时候常常会收到如下的报错信息:
Stopping Weblogic Server...
Initializing WebLogic Scripting Tool (WLST) ...
Welcome to WebLogic Server Administration Scripting Shell
Type help() for help on available commands
Connecting to http://10.10.1.1:7001 with userid weblogic ...
This Exception occurred at Thu Feb 13 21:43:06 CST 2014.
javax.naming.CommunicationException [Root exception is java.net.ConnectException: http://10.10.1.1:7001: Destination unreachable; nested exception is:
java.net.ProtocolException: Tunneling result unspecified - is the HTTP server at host: 'bngjj1' and port: '7001' a WebLogic Server?; No available router to destination]
Problem invoking WLST - Traceback (innermost last):
File "/weblogic/Oracle/Middleware/user_projects/domains/bngjj_domain/shutdown.py", line 3, in ?
File "", line 22, in connect
File "", line 653, in raiseWLSTException
WLSTException: Error occured while performing connect : Error getting the initial context. There is no server running at http://10.10.1.1:7001
Use dumpStack() to view the full stacktrace
Done
Stopping Derby Server...
通过 stopManagedWebLogic.sh 脚本都无法正常 停止受管,原因在于默认情况下Weblogic服务器HTTP等协议的隧道没有启用,执行下面的操作启用:
Administration Console at Environment > Servers > [Managed server] > Protocols > HTTP and check Enable Tunneling.
如下图所示:
![](http://img.blog.itpub.net/blog/attachment/201402/15/23135684_13924771408aeO.jpg?x-oss-process=style/bb)
之后通过 stopManagedWebLogic.sh脚本即可顺利停止受管服务器。
--end--
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/23135684/viewspace-1081982/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/23135684/viewspace-1081982/