My Oracle Support Banner

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

Last updated on JULY 10, 2023

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('user','password','t3://<wls_host>:<wlshttp_port>')
and
  wls:/offline> connect(userConfigFile='<dir>/myuserconfigfile.secure', userKeyFile='<dir>/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:

Cause

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.