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.

 

 

Related Posts for Learn WebLogic with Us


  1. Oracle WebLogic Installation Steps
  2. Domain , Administration & Managed Server, Cluster in Oracle WebLogic
  3. Create Domain in Oracle WebLogic
  4. Oracle WebLogic Server – Startup/Shutdown
  5. Oracle WebLogic Server 10g R3 10.3 is out now
  6. Deploy Application on Oracle WebLogic Server
  7. Cluster Architecture : Oracle WebLogic Server
  8. Start WebLogic Server on Linux on port 80, 443 <= 1024
  9. JDBC (Java DataBase Connectivity ) in Oracle WebLogic – Overview
  10. WebLogic Server JDBC for Database connection : Step by Step
  11. Security in Oracle WebLogic : Realm, Security Provider, Authentication, Authorization, Users
  12. Deploy ADF application to Oracle WebLogic Server
  13. Node Manager in Oracle WebLogic Server
  14. Configure Oracle HTTP Server infront of Oracle WebLogic Server mod_wl_ohs
  15. How to install weblogic server on 64 bit O.S. (Linux /Solaris) ?
  16. Oracle WebLogic Login Issue : Password is not correct (Password Lock Policy)
  17. Oracle WebLogic Server : Node Manager in nutshell
  18. Certification : 1Z0-108 Oracle WebLogic Server 10g System Administrator Certified Expert
  19. How to integrate WebLogic with Oracle Internet Directory for Login : Authentication
  20. opatch, adpatch and now “smart update” (BSU) to apply weblogic patches
  21. Disater Recovery documentation for Oracle WebLogic Server 11g (Fusion Middleware)
  22. Authentication Providers in #WebLogic – Oracle Access Manager Identity Assertion for Single Sign-On and OAM Authenticator
  23. Error while starting WebLogic Server : java.lang.NumberFormatException: null
  24. #WebLogic startup prompting from username password : boot.properties
  25. BEA-000286 : Failed to invoke startup class “JRF Startup Class” oracle.jrf.wls.JRFStartup
  26. WebLogic Kerberos (SSO) Authentication Issue : Error 401 Forbidden : No Configuration was registered that can handle the configuration named com. sun. security. jgss. krb5. accept
  27. How to reset Lost Oracle WebLogic Password for Fusion Middleware Applications
  28. Oracle WebLogic Server Certification : 1Z0-108 Practice Question and Dumps
  29. WebLogic Startup fails with Unable to obtain lock on Server may already be running
  30. Oracle Weblogic 12c Launch : Attend online on 1 Dec 2011
  31. Oracle WebLogic 12c (12.1.1) is now available to download
  32. How to Install WebLogic 12C (12.1.1) on Mac
  33. Oracle #WebLogic Server 12c : SE vs EE vs Suite License Options
  34. SSL in WebLogic (CA, KeyStore, Identity & Trust Store) : Things you must know – Part I
  35. SSL in WebLogic Server – Part II : Create KeyStore, generate CSR, Import CERT and configure KeyStore with WebLogic
  36. WebLogic Admin Server Start-up hanging at “Initializing self-tuning thread pool”
  37. Error in WebLogic Clustering : socket MaxMessage Size Exceeded Exception
  38. Changed or New Features in WebLogic 12.1.2
  39. WebLogic SSL configuration : Inconsistent security configuration Cannot convert identity certificate
  40. Dynamic Cluster in WebLogic 12.1.2 : New Features in WebLogic 12c
  41. Identity Propagation between two WebLogic Domains : Cross Domain Security VS Global Trust
  42. WebLogic Admin Server Start Up hangs at ‘Log Management’ BEA-170019 IIOP subsystem enabled
  43. Security:090294 could not get connection javax. net. ssl. SSLKeyException FATAL Alert BAD_CERTIFICATE – A corrupt or unuseable certificate was received
  44. 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