Oracle Weblogic Server (MOSC)

MOSC Banner

WLST script error

edited Feb 20, 2014 12:00PM in Oracle Weblogic Server (MOSC) 8 commentsAnswered

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

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center