WLST connecting to WebLogic Admin Server failed : Bootstrap to [IP:Port] failed. It is likely that the remote side declared peer gone on this JVM

转载自: http://onlineappsdba.com/index.php/2014/02/18/wlst-connecting-to-weblogic-admin-server-failed-bootstrap-to-ipport-failed-it-is-likely-that-the-remote-side-declared-peer-gone-on-this-jvm/

WebLogic Scripting Tool (WLST) is a command-line scripting environment that you can use to create, manage, and monitor WebLogic Server domains .

I recently encountered issue while connecting to WebLogic Server from WLST command connect(‘user’,’password’,’adminserver’)) remotely.

Issue: WLST connect from local machine (where WebLogic Server is running) is working fine where as connection from remote machine (WLST on remote machine) reported error. dumpStack() reported error Bootstrap to [IP/[IP]:[Admin Port] failed. It is likely that the remote side declared peer gone on this JVM

Command executed and error message is

____________

wlst (or wlst.sh from Linux Machine)

Initializing WebLogic Scripting Tool (WLST) …
Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands
wls:/offline>
wls:/offline> connect(‘weblogic’, ‘welcome1′, ‘t3://192.168.1.12:7001′)
Connecting to t3://192.168.1.12:7001 with userid weblogic …

Traceback (innermost last):
File “<console>”, line 1, 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://192.168.1.12:7001
Use dumpStack() to view the full stacktrace

wls:/offline> dumpStack()

This Exception occurred at Mon Feb 17 23:50:54 GMT 2014.
javax.naming.CommunicationException [Root exception is java.net.ConnectException: t3://192.168.1.12:7001: Bootstrap to 192.168.1.12/192.168.1.12:7001 failed. It is likely that the remote side declared peer gone on this JVM] javax.naming.CommunicationException [Root exception is java.net.ConnectException: t3://192.168.1.12:7001: Bootstrap to 192.168.1.12/192.168.1.12:7001 failed. It is likely that the remote side declared peer gone on this JVM] wls:/offline>

_________________

Checks done 

1. Ensure that remote machine can access WebLogic Server (there is no firewall) : This worked for me and I was able to access WebLogic Console using IP and actual Hostname http://192.168.1.12:7001/console

Issue: In my case Machine running WebLogic Server had two host names

a) Actual Hostname – weblogichost.mydomain.com  and
b) Virtual Hostname – innowave21  (WebLogic Admin Server was configured to run on Virtual Name)

 

Fix: Ensure that client machine (from where WLST is being run), can resolve hostname mentioned in Listen Address of Admin Server (innowave21 in my case)

If not then add entry like below on hosts file of machine from where you are running WLST to connect to WebLogic Server

192.168.1.12   innowave21

Note: After adding entry in hosts file (or DNS server) for innowave21, I was able to connect using WLST.

原文地址:https://www.cnblogs.com/z1500592/p/5877741.html