stopWeblogic时提示错误以及无法关闭服务

时间:2023-03-09 00:06:51
stopWeblogic时提示错误以及无法关闭服务

执行:

y@y:~/oracle/middleware/user_projects/domains/yshy_domain/bin$ ./stopWebLogic.sh 

错误信息如下:

Stopping Weblogic Server...

Initializing WebLogic Scripting Tool (WLST) ...

Jython scans all the jar files it can find at first startup. Depending on the system, this process may take a few minutes to complete, and WLST may not return a prompt right away.

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands

Connecting to t3://y:7001 with userid weblogic ...
This Exception occurred at Fri Aug :: CST .
javax.naming.CommunicationException [Root exception is java.net.ConnectException: t3://y:7001: Destination unreachable; nested exception is:
java.net.ConnectException: 拒绝连接; No available router to destination]
Problem invoking WLST - Traceback (innermost last):
File "/home/y/oracle/middleware/user_projects/domains/yshy_domain/shutdown.py", line , in ?
File "<iostream>", line , in connect
File "<iostream>", line , in raiseWLSTException
WLSTException: Error occured while performing connect : Error getting the initial context. There is no server running at t3://y:7001
Use dumpStack() to view the full stacktrace Done
Stopping Derby Server...

错误信息提示:无法访问t3://y:7001

Root exception is java.net.ConnectException: t3://y:7001: Destination unreachable; nested exception is:
java.net.ConnectException: 拒绝连接; No available router to destination
解决方法:修改stopWeblogic.sh配置文件:把y修改成localhost
  else
if [ "${ADMIN_URL}" = "" ] ; then
ADMIN_URL="t3://localhost:7001"
fi
fi
保存退出!

再次执行:

y@y:~/oracle/middleware/user_projects/domains/yshy_domain/bin$ sudo ./stopWebLogic.sh
Stopping Weblogic Server... Initializing WebLogic Scripting Tool (WLST) ... Welcome to WebLogic Server Administration Scripting Shell Type help() for help on available commands Connecting to t3://localhost:7001 with userid weblogic ...
Successfully connected to Admin Server 'AdminServer' that belongs to domain 'yshy_domain'. 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. Shutting down the server AdminServer with force=false while connected to AdminServer ...
WLST lost connection to the WebLogic Server that you were
connected to, this may happen if the server was shutdown or
partitioned. You will have to re-connect to the server once the
server is available.
Disconnected from weblogic server: AdminServer
Disconnected from weblogic server: Exiting WebLogic Scripting Tool. Done
Stopping Derby Server...

测试:

y@y:~/oracle/middleware/user_projects/domains/yshy_domain/bin$ ps -ef | grep wls
y : pts/ :: grep --color=auto wls

问题解决!