社区开发版安装过程中报错,报错详情显示“systemctl start transwarp-aquila-server.service”失败,没有更多信息了,手动执行systemctl restart transwarp-aquila-server@aquila.service还是无法启动。
查看/var/log/aquila/server/aquila-server.log日志,日志显示报错信息:“...Failed to instantiate [org.springframework.validation.Validator]: Factory method 'getValidator' threw exception; nested exception is javax.validation.ValidationException: HV000183: Unable to initialize 'javax.el.ExpressionFactory'. Check that you have the EL dependencies on the classpath, or use ParameterMessageInterpolator instead...”
该报错有可能是跟宿主机的操作系统加载顺序有关
修改文件:/usr/lib/aquila/aquila-server/bin/boot.sh
修改成:
#CLASSPATH=${AQUILA_SERVER_HOME}/lib/*:${AQUILA_SERVER_HOME}/web:${JAVA_HOME}/lib/tools.jar
for jar in `find ${AQUILA_SERVER_HOME}/lib/ -name "*.jar" | sort`
do
CLASSPATH="$CLASSPATH:$jar"
done
CLASSPATH=${CLASSPATH}:${AQUILA_SERVER_HOME}/web:${JAVA_HOME}/lib/tools.jar