WebLogic WLST Connect() Command Fails With Syntax Error When Specifying userConfigFile, userKeyFile, and Target URL

(Doc ID 2311336.1)

Last updated on OCTOBER 02, 2017

Applies to:

Oracle WebLogic Server - Version 12.1.3.0.0 and later
Information in this document applies to any platform.

Symptoms

Attempting to use the WLST connect() command while specifying userConfigFile, userKeyFile and URL target results in a syntax error. However, when providing the username, password and same URL, the command succeeds.

However, it only works when explicitly specifying the username, password, url in the format shown in the documentation. Trying the same with the userConfigFile, userKeyFile fails.

Referring to the Weblogic Server WLST documentation:

Fusion Middleware WLST Command Reference for Oracle WebLogic Server
3 WLST Command and Variable Reference
https://docs.oracle.com/middleware/1213/wls/WLSTC/reference.htm#GUID-282E885A-57C3-45FB-9A7C-87515963B423

The syntax examples show both:
  wls:/offline> connect('adminusername','adminpassword','t3://localhost:7001')
and
  wls:/offline> connect(userConfigFile='c:/myfiles/myuserconfigfile.secure', userKeyFile='c:/myfiles/myuserkeyfile.secure')

The command only worked when explicitly specified username, password, and URL target as shown in the example above.  It failed with the following syntax error when using userConfigFile, userKeyFile and URL target:

Changes

 

Cause

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