Regenerate the Web server plugin configuration with the console and wsadmin

When you make changes to an application server, regenerate the Web server plugin configuration file to ensure that the correct set of requests are forwarded to the WebSphere Application Server - Express runtime. To regenerate the plugin configuration, follow these steps:

Use the administrative console to regenerate the Web server plugin configuration

  1. Start the WebSphere administrative console.

  2. In the topology tree, expand Environment and click Update Web Server Plugin.

  3. On the Update web server plugin configuration page, click OK.

If you make manual updates to the plugin configuration file, those updates may be overwritten when you regenerate the file. To avoid overwriting your manual updates, make a backup copy of the plugin configuration file before your regenerate the file, then use its contents to manually update the configuration file after you regenerate it.

Use wsadmin to regenerate the Web server plugin configuration file

    On the CL command line, run the STRQSH (Start Qshell) command.

    Run the cd command to change to the directory that contains the wsadmin tool:

    cd /QIBM/ProdData/WebASE51/ASE/bin

    Start wsadmin.

    At the wsadmin prompt, run this command to identify the web server plugin configuraiton file generator MBean and assign it to the pluginGen variable:

    set pluginGen [$AdminControl completeObjectName type=PluginCfgGenerator,*]

    Run this command to generate the updated plugin configuration file:

    $AdminControl invoke $pluginGen generate "/QIBM/UserData/WebASE51/ASE/instance/
     /QIBM/UserData/WebASE51/ASE/instance/config myCell null null null"

    where instance is the name of your application server instance and myCell is the name of the cell that contains your application server.

    This command has been wrapped for display purposes.

    This example command invokes the generate operation on the MBean passing the instance directory, the configuration root directory, and the cell name.

    Run this command to save your changes:

    $AdminConfig save