一、版本信息
1)中间件版本 Weblogic10.3.6.0
2) java version “1.6.0_45”
二、 补丁信息 PSU补丁 p30463097_1036_Generic.zip
补丁解压出ID 为 JWEB
补丁升级命令:cd /weblogic/wls1036/utils/bsu
nohup ./bsu.sh -install -patch_download_dir=/weblogic/wls1036/utils/bsu/cache_dir -prod_dir=/weblogic/wls1036/wlserver_10.3 -patchlist=JWEB -verbose &
三、现象描述
中间件卸载冲突补丁后无法更新上最新补丁且报错如下:(放后台 nohup.out文件中)
Starting installation of Patch ID: JWEB
Installing /weblogic/wls1036/utils/bsu/cache_dir/JWEB.jar
Extracting /weblogic/wls1036/patch_wls1036/patch_jars/BUG30463097_10360200114.jar
Extracting /weblogic/wls1036/patch_wls1036/patch_jars/com.bea.core.apache.commons.fileupload_1.0.0.0_1-3-1.jar
Extracting /weblogic/wls1036/patch_wls1036/patch_jars/com.bea.core.stax2_2.0.0.0_3-0-3.jar
Extracting /weblogic/wls1036/patch_wls1036/patch_jars/glassfish.jaxb_1.2.0.0_2-1-14.jar
Extracting /weblogic/wls1036/patch_wls1036/patch_jars/glassfish.jaxb.xjc_1.2.0.0_2-1-14.jar
Extracting /weblogic/wls1036/patch_wls1036/patch_jars/glassfish.jaxp_1.4.5.0.jar
Extracting /weblogic/wls1036/patch_wls1036/patch_jars/glassfish.jaxws.mimepull_1.1.0.0_1-3-8.jar
Extracting /weblogic/wls1036/patch_wls1036/patch_jars/glassfish.jaxws.rt_1.4.0.0_2-1-5.jar
Extracting /weblogic/wls1036/patch_wls1036/patch_jars/glassfish.jaxws.saaj.impl_1.0.0.0_2-1-5.jar
Updating /weblogic/wls1036/patch_wls1036/profiles/default/sys_manifest_classpath/weblogic_patch.jar
Old manifest value: Class-Path=
New manifest value: Class-Path=…/…/…/patch_jars/BUG30463097_10360200114.jar …/…/…/patch_jars/com.bea.core.apache.commons.fileupload_1.0.0.0_1-3-1.jar …/…/…/patch_jars/com.bea.core.stax2_2.0.0.0_3-0-3.jar …/…/…/patch_jars/glassfish.jaxb_1.2.0.0_2-1-14.jar …/…/…/patch_jars/glassfish.jaxb.xjc_1.2.0.0_2-1-14.jar …/…/…/patch_jars/glassfish.jaxp_1.4.5.0.jar …/…/…/patch_jars/glassfish.jaxws.mimepull_1.1.0.0_1-3-8.jar …/…/…/patch_jars/glassfish.jaxws.rt_1.4.0.0_2-1-5.jar …/…/…/patch_jars/glassfish.jaxws.saaj.impl_1.0.0.0_2-1-5.jar
Result: Failure
An error occured while installing patches - run with logging to obtain detailed information
Failure condition follows:
java.util.zip.ZipException: error in opening zip file
No conflict(s) detected
通过上面信息可以清楚看到 java.util.zip.ZipException:打开zip文件时出错
可查看日志分析原因,
信息显示:在安装补丁时出现一个未知错误,资源可能被占用。这很有可能时backup文件冲突。
解决办法:进入到指定目录备份backup目录并删除
后面再通过命令进行补丁升级补丁升级完成。
PS:
1、中间件补丁查看命令
./bsu.sh -prod_dir=/weblogic/wls1036/wlserver_10.3 -status=applied -view -verbose
2、中间件补丁升级命令
./bsu.sh -install -patch_download_dir=/weblogic/wls1036/utils/bsu/cache_dir -prod_dir=/weblogic/wls1036/wlserver_10.3 -patchlist=JWEB -verbose
3、中间件补丁卸载命令
./bsu.sh -remove -patchlist=3L3H -prod_dir=/weblogic/wls1036/wlserver_10.3