最初,此活动从在我们的系统上安装 WAS 7.0.0.39 修复包开始。
UpdateInstaller 已成功升级至 7.0.0.39,WAS 和 java 也已成功升级。
WAS 是使用wassrvr
id 安装的,而 webserver 也是使用webserver
id 安装的。
在我切换 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 升级时,未创建临时日志文件。
我在这里遇到困难,希望得到一些指导。
答案1
请检查 wassrvr 用户的 JAVA_HOME 和 CLASSPATH 环境变量,并在切换到 webserver 帐户后将其设置为相同的值。这是我要做的第一步,因为错误描述指出无法加载必要的 java 类。
答案2
所以我终于解决了这个问题。逐个检查每个文件的权限后,发现j9vm
下面的一个目录$WAS_HOME/UpdateInstaller/java/jre/bin
有700
权限。将其更改为后,755
我就可以执行更新脚本了。