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 SEPTEMBER 11, 2019

Applies to:

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


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

The syntax examples show both:
  wls:/offline> connect('user','password','t3://<wls_host>:<wlshttp_port>')
  wls:/offline> connect(userConfigFile='<dir>/', userKeyFile='<dir>/')

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:


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

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