tomcat, JBoss etc. Should be headless?

Dag-ErlingSmørgrav des at
Tue Mar 30 14:37:50 PST 2004

Mark Dixon <mark at> writes:
> In the current situation, taking tomcat as an example, the JVM
> starts up with daemonctl from /usr/local/etc/rc.d into an
> environment with no X server, provided there's been no editing of
> the scripts.  Any attempt to use the graphics libraries in any
> servlet will result in the servlet falling over with an AWTError.

That is IMHO a bug in the servlet, which is easily fixed by adding the
following line in the appropriate place:

          System.setProperty("java.awt.headless", "true");

Dag-Erling Smørgrav - des at

More information about the freebsd-java mailing list