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 "
File "
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.
如下图所示:

之后通过stopManagedWebLogic.sh脚本即可顺利停止受管服务器。
--end--