When using the WebLogic Server Scripting Too (WLST) to modify a domain template and customize the log file settings, some changes do not get saved. For example, this option is not saved when configured as true.

newLog.setRotateLogOnStartup(true)

After using the template to create a domain the option is being configured as false.

Cause

It appears that when using production mode, the default for the rotate logs on start-up option is false; but WLST does not recognize this, and will not allow the option to be enabled.

WLST defaults to development mode and will not set options that are standard defaults when in development mode.

Solution


The WLST application is designed to use the development defaults when using offline mode to create domains and will not update the config.xml with entries that are considered the default values.

After the domain has been created, then WLST can use online mode to make changes and it will use the values that exist or are set at that time.

1. Create the domain using the default parameters.

2. Connect in online mode to the newly created domain and modify the parameters that need to be configured for production mode.


Note:This document will apply to any parameter that is set using WLST in offline mode. If the parameter has a default for development mode this will be the default used with offline mode and the parameter can only be changed in online mode.

The documentation for each parameter will usually cover the default values for development and production modes.

0 Comments