opatch apply 時碰到 'duplicate entry: META-INF/LICENSE.txt'

tolywang發表於2012-08-08

在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 就可以了。

 

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/35489/viewspace-745927/,如需轉載,請註明出處,否則將追究法律責任。

相關文章