Search code examples
wso2wso2-business-process

Patching WSO2 BPS - Carbon


I am attempting to patch the carbon app within our WSO2 BPS 3.2.0 environment. We are currently runnning 4.2.0 patch0005 which was bundled with BPS. There is a fix in patch0007 that resolves a bug we are experiencing. Does anyone have a working processes including the steps to download the patch source?

I see there is a service pack listed here... https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/service-packs/, but this does not include the jar files needed for the service pack.

I'd appreciate a point in the right direction.

Thanks!


Solution

  • Here's how you can build and apply the patch0007:

    Pre-requisites:

    • Java 1.6 (it won't build with 1.7 or later versions)
    • Maven 3.0.5 (may have problems with later versions so try to install this version)

    How to build:

    • Checkout Kernel 4.2.0 (https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/)
    • Build the kernel (mvn clean install -Dmaven.test.skip=true) - this step is optional and you may proceed to the next step without this, but if you face any problems, then start from this step. This will take some time.
    • Goto patches directory
    • Build each patch from 0001 to 0007 in that order (it's important to perform this in order without missing any)
    • Now you have built all patches upto 7, now you have to apply both patch0006 and patch0007 to the BPS (it already has upto patch0005)
    • Those patches are in patch0006/distribution/target/WSO2-CARBON-PATCH-4.2.0-0006.zip and a similar location for patch0007
    • unzip those files and take patch0006 and patch0007 directories from them and copy to <BPS>/repository/components/patches
    • restart the server