Changing Configuration Settings
This section provides an overview of the WebLogic server configuration files and discusses how to change the settings for these files.
WebLogic server configuration settings are stored in a collection of files. Primarily these include: setEnv script, config.xml, and the web.xml and weblogic.xml for each webapp.
Configuration File |
Description |
---|---|
setEnv script |
SetEnv contains statically and dynamically defined environment variables. It's called from all of the WebLogic administration scripts to assist in building the Java command line. You modify this file using a text editor. |
config.xml |
Config.xml contains server runtime settings, such as the HTTP port. You modify this file using the WebLogic Remote Console. |
web.xml weblogic.xml |
Located in the WEB-INF directory of each servlet, providing web application descriptors and settings relevant to their application. |
In the multi-server configuration, several parameters are set based on the environment detected and delivered defaults. One such parameter is the HTTP port of the WebLogicAdmin server. By default the WebLogicAdmin server’s HTTP listen port is 9999.
To change this value:
Start the WebLogicAdmin server using the startWebLogicAdmin script.
Sign in to the WebLogic Remote Console.
Click the Edit Tree tile and then select
.Modify the value of the Listen Port field.
Click Save.
Click the Shopping Cart icon to check for pending changes and commit them if necessary.
Restart the WebLogic server.
If you can't initially start the server due to a port conflict, you can manually edit the value of the ListenPort parameter in that domain’s config.xml file. Creating a backup of config.xml is recommended before manually changing this file.
After changing the ListenPort value in your domain’s config.xml, either directly or using the console, you must also update your setEnv script. Update the ADMINSERVER_PORT environment variable to reflect the new HTTP port. This setting is used by the stopWebLogic and startManagedWebLogic scripts as the default administration server HTTP port.