异常信息: Caused by: java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11GraphicsEnvironment Caused by: java.lang.InternalError: Can't connect to X11 window server using 'localhost:10.0' as the value of the DISPLAY variable. 需要解决的是在tomcat的安装目录bin目录下catalina.sh文件的增加: -Djava.awt.headless=true \ 类似于这个: 参考:http://10000001.blog.51cto.com/4600383/1548003