If you need an error in the startup script in the bin tomcat cataliina.sh plus configuration:
CATALINA_OPTS=-Djava.awt.headless=true