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.
Did you get a chance to download Free Interview Questions related to WebLogic? If not, download it here http://k21academy.com/weblogic-interview-question
If you want to learn Oracle WebLogic Server Administration with tons of additional features like Live Interactive Sessions, Life time access to membership portal, Free re-taking sessions for next one year, Dedicated Machine to practice, On Job Support and much more