Posted on 07-17-2013 10:57 AM
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
Posted on 07-17-2013 11:24 AM
Doesn't appear to be happening with my setup.
From what I can tell mine appears to already be using the headless=true option that you had to add manually.
Running Ubuntu 12.04
JSS 8.7
Tomcat 7
Java info: java -version
java version "1.6.0_24"
OpenJDK Runtime Environment (IcedTea6 1.11.3) (6b24-1.11.3-1ubuntu0.12.04.1)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)
Posted on 07-18-2013 06:59 AM
Did you happen to use the Linux JSS installer, or did you manually install the components?