在opatch apply 运行 p14049150_111160_Generic.zip 时碰到如下错误:
[Sep 21, 2012 10:10:16 AM] Updating jar file "/data01/oracle/soa_suit/wlserver10/oracle_common/webservices/wsclient_extended.jar" with "/webservices/wsclient_extended.jar/HTTPClient/HttpURLConnection$MutableStatics$1$1.class"
[Sep 21, 2012 10:10:16 AM] This jar action is already considered as part of clubbed actions.
[Sep 21, 2012 10:10:16 AM] The following actions have failed:
[Sep 21, 2012 10:10:16 AM] OUI-67124:Jar not applied /data01/oracle/patch/14049150/files//modules/oracle.webservices_11.1.1/oracle.webservices.standalone.client.jar/HTTPClient/RespInputStream$RISClosingTask.class to /data01/oracle/soa_suit/wlserver10/oracle_common/modules/oracle.webservices_11.1.1/oracle.webservices.standalone.client.jar... 'duplicate entry: META-INF/LICENSE.txt'
将 /data01/oracle/soa_suit/wlserver10/oracle_common/modules/oracle.webservices_11.1.1/oracle.webservices.standalone.client.jar 解压,解压过程如果使用more 可以看到有两个 LICENSE.txt 文件,加压之后会覆盖, 然后再压缩就OK了。
具体操作: 拷贝oracle.webservices.standalone.client.jar 文件到一个临时目录 tmp下,jar xvf xxx.jar 解压,在tmp下删除 oracle.webservices.standalone.client.jar 之后,在tmp目录使用 jar cvf oracle.webservices.standalone.client.jar * 将所有文件及目录打包到 jar 中。 然后再次opatch 就可以了。
--转自