When running Apache Tomcat or tc Server on a system without a graphical user interface, you must set the java.awt.headless system property to true. This allows an application to access the graphics processing capabilities of the JVM for making graphs, charts, or other images to be displayed on a remote system.
This article provides information on the libraries that are required when you set the java.awt.headless system property to true.