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> 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
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>
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
Note: After adding entry in hosts file (or DNS server) for innowave21, I was able to connect using WLST.
Oracle ACE, Author, Speaker and Founder of K21 Technologies & K21 Academy : Oracle Gold Partner specialising in Design, Implement, and Trainings.
Find Us On