[root@X4100-B61 bin]# ./catalina.sh run
The BASEDIR environment variable is not defined correctly
This environment variable is needed to run this program
[root@X4100-B61 bin]#
看这个提示是环境变量BASEDIR没有定义,但是在catalina.sh里是有定义语句的
楼主检查一下这部分:
# Get standard Java environment variables
if $os400; then
# -r will Only work on the os400 if the files are:
# 1. owned by the user
# 2. owned by the PRIMARY group of the user
# this will not work if the user belongs in secondary groups
BASEDIR="$CATALINA_HOME"
. "$CATALINA_HOME"/bin/setclasspath.sh
else
if [ -r "$CATALINA_HOME"/bin/setclasspath.sh ]; then
BASEDIR="$CATALINA_HOME"
. "$CATALINA_HOME"/bin/setclasspath.sh
else
echo "Cannot find $CATALINA_HOME/bin/setclasspath.sh"
echo "This file is needed to run this program"
exit 1
fi
fi
我现在采用全路径后,产生了新的错误:
[root@X4100-B61 bin]#
[root@X4100-B61 bin]# catalina.sh run
The BASEDIR environment variable is not defined
This environment variable is needed to run this program
Using CATALINA_BASE: /home/x3server/TOMCAT
Using CATALINA_HOME: /home/x3server/TOMCAT
Using CATALINA_TMPDIR: /home/x3server/TOMCAT/temp
Using JRE_HOME: /usr/java/jdk1.5.0_09/jre
/home/x3server/TOMCAT/bin/catalina.sh: line 226: exec: : not found
[root@X4100-B61 bin]#