When Loading WLST as a Jython Module, cmo Object Reference Commands Fail with AttributeError

(Doc ID 1481414.1)

Last updated on NOVEMBER 05, 2016

Applies to:

Oracle Weblogic Server - Version 10.3 and later
Information in this document applies to any platform.
This issue occurs when an advanced user chooses to import WebLogic Scripting Tool (WLST) as a Jython module.


After setting up WLST as a Jython module, attempting to run a python script that contains a the command cmo.setUserPassword('password') command fails with the following error:


 Instructions were followed in the WLS documentation "Importing WLST as a Jython Module" prior to executing the python script.


Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms