Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Users apply various patches to the existing Carbon server to enhance the available features or to fix possible bugs that may rise on the Carbon application.  ApplAs a result, applying patches thereby is an easy approach to use when existing executable JAR files need to be changed on the Carbon server.

To apply a kernel patch:

  1. Insert the required patches to the following directory:

    Code Block$PRODUCT_HOME

    respective <PRODUCT_HOME>/repository/components/patches directory:

    Example:

    Code Block$ESB_HOME

    For example: <ESB_HOME>/repository/components/patches

  2. Run the patch.

    code


    wso2server.sh -DapplyPatches

    When running this patch the following is the sequence of actions that take place:

    • A backup folder named patch0000 gets created inside
    the $
    • the <PRODUCT_
    HOME
    • HOME>/repository/components/patches directory containing the original content of the
    $
    • <PRODUCT_
    HOME
    • HOME>/repository/components/plugins folder. This step is executed  as a precautionary measure so that if something goes wrong it is possible to revert to the previous state. 

    • The content of the patches directory will incrementally (e.g., patch0001, patch0002 etc.) get copied to the plugins directory.
      This process is only supported for components
    which
    • that have already existing JAR files in the plug-in directory.