今天要重装System Director6.3.1, 首先要把plug-in StorageControl删除,进入StorageControl目录,运行./UninstallStorageControl.sh,结果出现如下错误:
# ./UninstallStorageControl.sh
Exception in thread "main" java.lang.NoClassDefFoundError: DisplayMessage
Caused by: java.lang.ClassNotFoundException: DisplayMessage
at java.net.URLClassLoader.findClass(URLClassLoader.java:434)
at java.lang.ClassLoader.loadClass(ClassLoader.java:660)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:358)
at java.lang.ClassLoader.loadClass(ClassLoader.java:626)
Could not find the main class: DisplayMessage. Program will exit.
Exception in thread "main" java.lang.NoClassDefFoundError: DisplayMessage
Caused by: java.lang.ClassNotFoundException: DisplayMessage
at java.net.URLClassLoader.findClass(URLClassLoader.java:434)
at java.lang.ClassLoader.loadClass(ClassLoader.java:660)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:358)
at java.lang.ClassLoader.loadClass(ClassLoader.java:626)
Could not find the main class: DisplayMessage. Program will exit.
思考一下,不知缘由,打开UninstallStorageControl.sh研究一下好了。
脚本开始定义了一堆函数,然后第一步运行的是:
看这个函数:
function setJavaPath
{
lslpp -l "DirectorServer" >> $LOGFILE 2>&1
if [ $? -ne 0 ] ; then
return 1
fi
if [ -f /etc/ibm/director/twgserver/twgserver ] ; then
DIRHOME=$(cat /etc/ibm/director/twgserver/twgserver|grep TWG_ROOTDIR|awk -F"=" '{print $2}')
DB2USER=$(grep rcs.dbuser $DIRHOME/lwi/conf/overrides/database.properties | awk '{print $3}')
else
return 1
fi
JAVAPATH=$DIRHOME/jre/bin
CLASSPATH=$DIRHOME/StorageControl/lib/eTPCInstallTools.jar:$CUR_LOC/eTPCInstallTools.jar
return 0
}
看设置java环境变量部分:
CLASSPATH=$DIRHOME/StorageControl/lib/eTPCInstallTools.jar:$CUR_LOC/eTPCInstallTools.jar
结果发现在StorageControl目录下没有lib这个目录, $CUR_LOC目录下也没有这个jar包,看来是当初安装的时候就有问题,没安装全。于是跑到另外一个装了StorageControl的机器上,拷贝过来lib目录,再重新运行UninstallStorageControl.sh, 成功~~
阅读(1613) | 评论(3) | 转发(1) |