When using ColdFusion MX 7 in J2EE Configuration on Mac OSX 10.3.x, some server environments may encounter the following error:
Apple AWT Java was loaded on first thread -- can't start AWT. Unable to initialize graphing service: java.lang.InternalError: Can't start the AWT because the Java was started on the first thread. Make sure StartOnFirstThread is not specified in your applications Info.plist or on the command line.
To resolve this problem with the graphing service, add the following JVM argument to the end of the JVM argument list in the JVM configuration file:
-Djava.awt.headless=true
When using JRun 4, the JVM configuration file is located in the $JRUN_HOME/bin directory as jvm.config. The line to configure begins with java.args=. When finished, the jvm.config file entry for java.args will end in -Djava.awt.headless=true, and might look like the following example:
# Arguments to VM java.args=-server -Xmx512m -Dsun.io.useCanonCaches=false -XX:MaxPermSize=128m -XX:+UseParallelGC -DJINTEGRA_NATIVE_MODE -DJINTEGRA_PREFETCH_ENUMS -Dcoldfusion.rootDir={application.home}/../ -Dcoldfusion.classPath={application.home}/../lib/updates, {application.home}/../lib,{application.home}/../gateway/lib/, {application.home}/../wwwroot/WEB-INF/cfform/jars -Dcoldfusion.libPath={application.home}/../lib-Djava.awt.headless=true
Keywords:
237f9958

