简体   繁体   English

修补WSO2 BPS-碳

[英]Patching WSO2 BPS - Carbon

I am attempting to patch the carbon app within our WSO2 BPS 3.2.0 environment. 我正在尝试在我们的WSO2 BPS 3.2.0环境中修补Carbon应用程序。 We are currently runnning 4.2.0 patch0005 which was bundled with BPS. 我们当前正在运行与BPS捆绑在一起的4.2.0 patch0005。 There is a fix in patch0007 that resolves a bug we are experiencing. patch0007中有一个修复程序可以解决我们遇到的错误。 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. 我看到这里列出了一个Service Pack ... https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/service-packs/ ,但这不包括所需的jar文件用于服务包。

I'd appreciate a point in the right direction. 我希望方向正确。

Thanks! 谢谢!

Here's how you can build and apply the patch0007: 这是构建和应用patch0007的方法:

Pre-requisites: 先决条件:

  • Java 1.6 (it won't build with 1.7 or later versions) Java 1.6(不会在1.7或更高版本中构建)
  • Maven 3.0.5 (may have problems with later versions so try to install this version) Maven 3.0.5(更高版本可能会出现问题,因此请尝试安装此版本)

How to build: 如何建造:

  • Checkout Kernel 4.2.0 ( https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/ ) 结帐内核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. 编译内核(mvn clean install -Dmaven.test.skip = true)-此步骤是可选的,您可以不进行此操作而进入下一步,但是如果遇到任何问题,请从此步骤开始。 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) 按此顺序构建从0001到0007的每个补丁(按顺序执行此补丁而不丢失任何补丁很重要)
  • 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) 现在,您已经构建了最多7个补丁程序,现在您必须将Batch0006和patch0007都应用到BPS(它已经包含了补丁程序0005)。
  • Those patches are in patch0006/distribution/target/WSO2-CARBON-PATCH-4.2.0-0006.zip and a similar location for patch0007 这些修补程序位于patch0006 / distribution / target / WSO2-CARBON-PATCH-4.2.0-0006.zip中,并且位于patch0007的类似位置
  • unzip those files and take patch0006 and patch0007 directories from them and copy to <BPS>/repository/components/patches 解压缩这些文件并从中获取patch0006和patch0007目录,然后复制到<BPS>/repository/components/patches
  • restart the server 重新启动服务器

it's there in the README.txt file! 它在README.txt文件中!

INSTALLATION INSTRUCTIONS 安装说明

(i) Shutdown the server, if you have already started. (i)如果已经启动,请关闭服务器。

(ii) Copy the wso2carbon-version.txt file to /bin. (ii)将wso2carbon-version.txt文件复制到/ bin。

(iii) Copy the servicepack001 to (_BPS_HOME_)/repository/components/patches/ (iii)将servicepack001复制到(_BPS_HOME _)/存储库/组件/补丁/

(iv) Restart the server with : (iv)使用以下命令重新启动服务器:

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

Note: This is not a patch, it's a service pack. 注意:这不是补丁程序,而是Service Pack。 all the wso2 patches and SPs comes with a README.txt file which include how to apply the correction. 所有wso2补丁程序和SP均带有README.txt文件,其中包含如何应用更正。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM