Members | Sign In
Weblogic Wonders > Troubleshooting
avatar

WLST execution error

posted Oct 20, 2017 13:42:51 by Avijit Pal
Hello Faysal,

I am very new to WLST, and am receiving below error while running a very simple command on some of my servers, on other servers it works perfectly fine, please go through it and suggest me with solution. Many thanks in advance.


Commands have been run:
=======================
/opt/webapps/Oracle/Middleware/Oracle_Home/wlserver/server/bin/setWLSEnv.sh
/opt/webapps/Oracle/Middleware/Oracle_Home/wlserver/common/bin/wlst.sh monitor.py


Content of "monitor.py"
=======================
from java.io import FileInputStream
import java.lang
import os
import string
username = 'weblogic'
password = 'xxxxxxxx'
url='t3://localhost:7001'
connect(username,password,url)
domainRuntime()
cd('ServerRuntimes')
servers=domainRuntimeService.getServerRuntimes()
for server in servers:
serverName=server.getName();
print '**************************************************'
print '##############' , serverName,'###############'
print '**************************************************'
print '##### Server State #####', server.getState()
print '##### Server ListenAddress #####', server.getListenAddress()
print '##### Server ListenPort #####', server.getListenPort()
print '##### Server Health State #####', server.getHealthState()


Error message have received:
============================
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0

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 ...
This Exception occurred at Mon Oct 16 14:02:26 EDT 2017.
javax.naming.CommunicationException: t3://localhost:7001: Destination 0:0:0:0:0:0:0:1, 7001 unreachable; nested exception is:
java.net.ConnectException: Connection refused; No available router to destination [Root]
Problem invoking WLST - Traceback (innermost last):
File "/tmp/monitor.py", line 8, in ?
File "<iostream>", line 19, in connect
File "<iostream>", line 552, in raiseWLSTException
WLSTException: Error occurred while performing connect : Error getting the initial context. There is no server running at t3://localhost:7001 : t3://localhost:7001: Destination 0:0:0:0:0:0:0:1, 7001 unreachable; nested exception is:
java.net.ConnectException: Connection refused; No available router to destination
Use dumpStack() to view the full stacktrace :
Login below to reply: