I'm trying to deploy the provided plantuml.war to a tomcat server.
Apache Tomcat 8.5.42
I'm getting the following error when browsing to the generated png and svg:
Exception: java.lang.NoClassDefFoundError: Could not initialize class net.sourceforge.plantuml.ugraphic.UFont
I was previously told on this forum that this is due to the server being headless and that I need to set the flag "-Djava.awt.headless=true". However, there is no option/info on how to set this. Is this done in the pom.xml? In that case - how? If this really is the problem, then there should really be an option to set headless mode considering that the vast majority of servers Are headless...