I recently migrated my tomcat7 server to a new esxi server and had the following issue:
Caused by: java.lang.Error: Probable fatal error:No fonts found.
There are a few explanations found on the web:
- Tomcat is running headless. Add this
/etc/init.d/tomcat7. Checked, was there already so this is not the cause.
- Add missing fonts:
apt-get install msttcorefontsThis also didn’t fix the problem
- Used Sun Java. Hmmm, indeed I just installed tomcat and let the dependencies automatically install. Should have used the sun java.
- One more fix:
apt-get install ttf-dejavu
Ok, installing the ttf-dejavu fixed the issue!
Next time I will make sure not to use the open-jdk but the sun-jdk to prevent this issue.