错误:Caused by: java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11GraphicsEnvironment
解决:在tomcat里bin目录下的catalina.sh 文件添加 CATALINA_OPTS="-Djava.awt.headless=true"
顺便记录远程debug配置:export CATALINA_OPTS="-server -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8788"