We were getting the following error when trying to add custom icons to pre-existing policies :
HTTP Status 500 - Servlet execution threw an exception
java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11.XToolkit
The error would occur even after restarting Tomcat.
I was able to resolve the issue by creating a setenv.sh file in /usr/local/jss/tomcat/bin with the following directive:
JAVA_OPTS="$JAVA_OPTS -Djava.awt.headless=true"
see: http://stackoverflow.com/questions/5576986/servlet-giving-error-java-lang-noclassdeffounderror
So far, things seem to be working as expected. Anyone else encounter this?
Our JSS configuration:
CentOS 6.3
JSS linux installer 8.70
manually updated to 8.71
Tomcat 7
Java 7