WLST script error
Hi,
Below is my script while i am trying to execute it is throwing an error.
Script:
#!/usr/bin/python
username = 'weblogic'
password = 'ikeaoms01'
URL='t3://localhost:7001'
connect(username,password,URL)
domainRuntime()
cd('ServerRuntimes')
servers=domainRuntimeService.getServerRuntimes()
for server in servers:
print'SERVER NAME :',server.getName()
print'SERVER STATE :',server.getState()
print'SERVER LISTEN ADDRESS :',server.getListenAddress()
print'SERVER LISTEN PORT :',server.getListenPort()
print'SERVER HEALTH STATE :',server.getHealthState()
execution step: java -cp weblogic.jar weblogic.WLST serverstatus.py
error:
Initializing WebLogic Scripting Tool (WLST) ...
Problem invoking WLST - java.lang.RuntimeException: error in finding weblogic.Home