Skip to main content
Question

Unable to Upload Self Service Icons to Pre-existing Policies

  • July 17, 2013
  • 2 replies
  • 23 views

Forum|alt.badge.img+6

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

2 replies

Forum|alt.badge.img+12
  • Contributor
  • 19 replies
  • July 17, 2013

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)


Forum|alt.badge.img+6
  • Author
  • Contributor
  • 14 replies
  • July 18, 2013

Did you happen to use the Linux JSS installer, or did you manually install the components?