When there is no XWindows on the Linux server, the image will be reported.
Java.lang.InternalError: Can't Connect to X11 Window Server Using ': 0.0' as the value of the display variable.
This is wrong.
Solution:
In the Catalina.sh file of Tomcat
turn up
# ----- EXECUTE The Requested Command ------------------------------------------------------------------------------------------------------------------------------ -
Echo "Using Catalina_Base: $ CATALINA_BASE"
Echo "Using Catalina_Home: $ CATALINA_HOME"
Echo "Using Catalina_TMPDir: $ Catalina_TMPDIR"
Echo "Using Java_Home: $ java_home"
Join
Java_opts = "- Djava.awt.Headless = True"
You can solve the problem.