Bugs.验证码显示报错 Could not initialize class sun.awt.X11GraphicsEnvironment

验证码显示突然报错: Could not initialize class sun.awt.X11GraphicsEnvironment

原因:是负责验证码图像显示的xserver无法启动。
解决:/bin/catalina.sh 顶部或底部增加

export JAVA_OPTS="-Djava.awt.headless=true"
image.png

你可能感兴趣的:(Bugs.验证码显示报错 Could not initialize class sun.awt.X11GraphicsEnvironment)