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 29 08:12:10 CST 2014.
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 3, in ?
  File "<iostream>", line 22, in connect
  File "<iostream>", line 648, 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
 37 else
 38     if [ "${ADMIN_URL}" = "" ] ; then
 39         ADMIN_URL="t3://localhost:7001"
 40     fi
 41 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         6825  5793  0 08:23 pts/4    00:00:00 grep --color=auto wls

問題解決!


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM