Java

更新 IBM HTTP 外掛和 IBH IHS 時出錯

  • March 22, 2016

最初,此活動從在我們的系統上安裝 WAS 7.0.0.39 修訂包開始。

UpdateInstaller 與 WAS 和 java 一起成功升級到 7.0.0.39。

WAS 使用wassrvrid 安裝,而 webserver 使用webserverid 安裝。

在我切換 idwebserver並嘗試使用命令安裝 IBM HTTP 外掛和 IHS 伺服器的修訂包後update.sh,我收到以下錯誤:

[$WAS_HOME/UpdateInstaller]$ ./update.sh

Executing command: $WAS_HOME/UpdateInstaller/java/jre/bin/java -cp $WAS_HOME/UpdateInstaller/update.jar -Xms48m -Xmx384m run

JVMJ9VM019E Unrecoverable error: Unable to find and initialize required class java/lang/Object
JVMJ9VM020I Searched in $WAS_HOME/UpdateInstaller/java/jre/lib/ppc64/default/jclSC160/vm.jar
JVMJ9VM020I Searched in $WAS_HOME/UpdateInstaller/java/jre/lib/annotation.jar
JVMJ9VM020I Searched in $WAS_HOME/UpdateInstaller/java/jre/lib/beans.jar
JVMJ9VM020I Searched in $WAS_HOME/UpdateInstaller/java/jre/lib/java.util.jar
JVMJ9VM020I Searched in $WAS_HOME/UpdateInstaller/java/jre/lib/jndi.jar
JVMJ9VM020I Searched in $WAS_HOME/UpdateInstaller/java/jre/lib/logging.jar
JVMJ9VM020I Searched in $WAS_HOME/UpdateInstaller/java/jre/lib/security.jar
JVMJ9VM020I Searched in $WAS_HOME/UpdateInstaller/java/jre/lib/sql.jar
JVMJ9VM020I Searched in $WAS_HOME/UpdateInstaller/java/jre/lib/ibmorb.jar
JVMJ9VM020I Searched in $WAS_HOME/UpdateInstaller/java/jre/lib/ibmorbapi.jar
JVMJ9VM020I Searched in $WAS_HOME/UpdateInstaller/java/jre/lib/ibmcfw.jar
JVMJ9VM020I Searched in $WAS_HOME/UpdateInstaller/java/jre/lib/rt.jar
JVMJ9VM020I Searched in $WAS_HOME/UpdateInstaller/java/jre/lib/charsets.jar
JVMJ9VM020I Searched in $WAS_HOME/UpdateInstaller/java/jre/lib/resources.jar
JVMJ9VM020I Searched in $WAS_HOME/UpdateInstaller/java/jre/lib/ibmpkcs.jar
JVMJ9VM020I Searched in $WAS_HOME/UpdateInstaller/java/jre/lib/ibmcertpathfw.jar
JVMJ9VM020I Searched in $WAS_HOME/UpdateInstaller/java/jre/lib/ibmjgssfw.jar
JVMJ9VM020I Searched in $WAS_HOME/UpdateInstaller/java/jre/lib/ibmjssefw.jar
JVMJ9VM020I Searched in $WAS_HOME/UpdateInstaller/java/jre/lib/ibmsaslfw.jar
JVMJ9VM020I Searched in $WAS_HOME/UpdateInstaller/java/jre/lib/ibmjcefw.jar
JVMJ9VM020I Searched in $WAS_HOME/UpdateInstaller/java/jre/lib/ibmjgssprovider.jar
JVMJ9VM020I Searched in $WAS_HOME/UpdateInstaller/java/jre/lib/ibmjsseprovider2.jar
JVMJ9VM020I Searched in $WAS_HOME/UpdateInstaller/java/jre/lib/ibmcertpathprovider.jar
JVMJ9VM020I Searched in $WAS_HOME/UpdateInstaller/java/jre/lib/management-agent.jar
JVMJ9VM020I Searched in $WAS_HOME/UpdateInstaller/java/jre/lib/xml.jar
JVMJ9VM020I Searched in $WAS_HOME/UpdateInstaller/java/jre/lib/jlm.jar
JVMJ9VM020I Searched in $WAS_HOME/UpdateInstaller/java/jre/lib/javascript.jar
JVMJ9VM023I This may indicate that JAVA_HOME is incorrect, or that class libraries are not installed
JVMJ9VM015W Initialization error for library jclscar_24(14): JVMJ9VM009E J9VMDllMain failed
Could not create the Java virtual machine.

所以我嘗試檢查java版本wassrvr

[/home/wassrvr]$ java -version
java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build pap64devifx-20130702 (SR16 FP3 ))
IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 AIX ppc64-64 j9vmap6423ifx-20130613 (JIT enabled)
J9VM - 20130611_151893_BHdSMr
JIT  - 20121221_30553_r8
GC   - 20120911_AA)
JCL  - 20130702

再次使用java的絕對路徑:

[/home/wassrvr]$ $WAS_HOME/UpdateInstaller/java/jre/bin/java -version
java version "1.6.0"
Java(TM) SE Runtime Environment (build pap6460sr16fp7ifix-20150930_02(SR16 FP7+IV77565))
IBM J9 VM (build 2.4, JRE 1.6.0 IBM J9 2.4 AIX ppc64-64 jvmap6460sr16fp7-20150701_255724 (JIT enabled, AOT enabled)
J9VM - 20150701_255724
JIT  - r9_20150630_95420
GC   - GA24_Java6_SR16_20150701_1008_B255724)
JCL  - 20150628_01

嘗試與webserver

[/home/webserver]$ java -version
ksh: java:  not found

使用絕對路徑:

[/home/webserver]$ $WAS_HOME/UpdateInstaller/java/jre/bin/java -version
JVMJ9VM019E Unrecoverable error: Unable to find and initialize required class java/lang/Object
JVMJ9VM020I Searched in $WAS_HOME/UpdateInstaller/java/jre/lib/ppc64/default/jclSC160/vm.jar
JVMJ9VM020I Searched in $WAS_HOME/UpdateInstaller/java/jre/lib/annotation.jar
JVMJ9VM020I Searched in $WAS_HOME/UpdateInstaller/java/jre/lib/beans.jar
JVMJ9VM020I Searched in $WAS_HOME/UpdateInstaller/java/jre/lib/java.util.jar
JVMJ9VM020I Searched in $WAS_HOME/UpdateInstaller/java/jre/lib/jndi.jar
JVMJ9VM020I Searched in $WAS_HOME/UpdateInstaller/java/jre/lib/logging.jar
JVMJ9VM020I Searched in $WAS_HOME/UpdateInstaller/java/jre/lib/security.jar
JVMJ9VM020I Searched in $WAS_HOME/UpdateInstaller/java/jre/lib/sql.jar
JVMJ9VM020I Searched in $WAS_HOME/UpdateInstaller/java/jre/lib/ibmorb.jar
JVMJ9VM020I Searched in $WAS_HOME/UpdateInstaller/java/jre/lib/ibmorbapi.jar
JVMJ9VM020I Searched in $WAS_HOME/UpdateInstaller/java/jre/lib/ibmcfw.jar
JVMJ9VM020I Searched in $WAS_HOME/UpdateInstaller/java/jre/lib/rt.jar
JVMJ9VM020I Searched in $WAS_HOME/UpdateInstaller/java/jre/lib/charsets.jar
JVMJ9VM020I Searched in $WAS_HOME/UpdateInstaller/java/jre/lib/resources.jar
JVMJ9VM020I Searched in $WAS_HOME/UpdateInstaller/java/jre/lib/ibmpkcs.jar
JVMJ9VM020I Searched in $WAS_HOME/UpdateInstaller/java/jre/lib/ibmcertpathfw.jar
JVMJ9VM020I Searched in $WAS_HOME/UpdateInstaller/java/jre/lib/ibmjgssfw.jar
JVMJ9VM020I Searched in $WAS_HOME/UpdateInstaller/java/jre/lib/ibmjssefw.jar
JVMJ9VM020I Searched in $WAS_HOME/UpdateInstaller/java/jre/lib/ibmsaslfw.jar
JVMJ9VM020I Searched in $WAS_HOME/UpdateInstaller/java/jre/lib/ibmjcefw.jar
JVMJ9VM020I Searched in $WAS_HOME/UpdateInstaller/java/jre/lib/ibmjgssprovider.jar
JVMJ9VM020I Searched in $WAS_HOME/UpdateInstaller/java/jre/lib/ibmjsseprovider2.jar
JVMJ9VM020I Searched in $WAS_HOME/UpdateInstaller/java/jre/lib/ibmcertpathprovider.jar
JVMJ9VM020I Searched in $WAS_HOME/UpdateInstaller/java/jre/lib/management-agent.jar
JVMJ9VM020I Searched in $WAS_HOME/UpdateInstaller/java/jre/lib/xml.jar
JVMJ9VM020I Searched in $WAS_HOME/UpdateInstaller/java/jre/lib/jlm.jar
JVMJ9VM020I Searched in $WAS_HOME/UpdateInstaller/java/jre/lib/javascript.jar
JVMJ9VM023I This may indicate that JAVA_HOME is incorrect, or that class libraries are not installed
JVMJ9VM015W Initialization error for library jclscar_24(14): JVMJ9VM009E J9VMDllMain failed
Could not create the Java virtual machine.

在安裝 WAS 修訂包時,沒有錯誤。但是在嘗試安裝外掛和 IHS 升級時,沒有創建 tmp 日誌文件。

我在這裡陷入困境,將不勝感激。

所以最後我能夠解決這個問題。逐個檢查每個文件的權限後,發現j9vm下一個目錄$WAS_HOME/UpdateInstaller/java/jre/bin700權限。將其更改為後,755我能夠執行更新腳本。

請檢查 wassrvr 使用者的 JAVA_HOME 和 CLASSPATH 環境變數,並在切換到 webserver 帳戶後將其設置為相同的值。這是我要做的第一步,因為錯誤描述指出無法載入基本的 java 類。

引用自:https://serverfault.com/questions/765000