Patching WSO2 BPS - Carbon

痞子三分冷 提交于 2019-12-14 03:54:59

问题


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!


回答1:


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



回答2:


it's there in the README.txt file!

INSTALLATION INSTRUCTIONS

(i) Shutdown the server, if you have already started.

(ii) Copy the wso2carbon-version.txt file to /bin.

(iii) Copy the servicepack001 to (_BPS_HOME_)/repository/components/patches/

(iv) Restart the server with :

  • Linux/Unix : sh wso2server.sh
  • Windows : wso2server.bat

Note: This is not a patch, it's a service pack. all the wso2 patches and SPs comes with a README.txt file which include how to apply the correction.



来源:https://stackoverflow.com/questions/27253739/patching-wso2-bps-carbon

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!