FC4 Linux was just released this week, and while I was excited to see it ships with a whole Java Development suite, Eclipse 3.1M7, and Tomcat5, one of the first things I tested was running ColdFusion MX 7.

Starting the CFMX7 server configuration at the commandline appeared normal, but the first request to the CF Admin was greeted with the error:

The Graphing service is not available.

The FC4 installation was not an upgrade from FC3, although I did have FC3 on it before. Because FC3 was installed with seperate partitions for /home /opt and /usr/local, I was able to do a full install of FC4 while maintaining the data on those custom partitions. Doing it this way allows the Linux kernel and all the chosen packages to be installed under the / root partition which is reformated first, while allowing me to keep everything on my custom partitions without reformatting those.

Since the /opt directory was actually a full partition, I was able to keep my CFMX 6/7 and JRun installations during the FC4 install.

I checked my CFMX 7 jvm.config and noticed that I already had the -Djava.awt.headless=true arg in the jvm.args list, but yet I was getting the "Graphing service is not available" error.

Recalling that someone once commented that the X-Development packages would need to be installed to overcome this, I put the FC4 DVD install disk back in the slot and explored the available RPMS still on that disk. I remember not wanting to fill up my harddisk with the X-devel packages during FC4 installation, so I knew it had to be this.

My goal was to install the xorg-x11-deprecated-libs package, but I found it had a series of dependencies that had to be installed first. Working out all the dependencies, I installed the following packages in this order:

[root@Leonid ~]# cd /media/cdrecorder/Fedora/RPMS/
[root@Leonid RPMS]# ls -l freetype-devel-2.1.9-2.i386.rpm fontconfig-devel-2.2.3-13.i386.rpm xorg-x11-devel-6.8.2-31.i386.rpm xorg-x11-deprecated-libs-*
-rw-r--r-- 13 root root 241204 May 20 13:37 fontconfig-devel-2.2.3-13.i386.rpm
-rw-r--r-- 13 root root 539500 May 20 13:18 freetype-devel-2.1.9-2.i386.rpm
-rw-r--r-- 19 root root 83231 May 20 15:05 xorg-x11-deprecated-libs-6.8.2-31.i386.rpm
-rw-r--r-- 10 root root 90885 May 20 15:05 xorg-x11-deprecated-libs-devel-6.8.2-31.i386.rpm
-rw-r--r-- 19 root root 5249583 May 20 15:05 xorg-x11-devel-6.8.2-31.i386.rpm

[root@Leonid RPMS]# rpm -Uvh freetype-devel-2.1.9-2.i386.rpm
warning: freetype-devel-2.1.9-2.i386.rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
Preparing... ############### [100%]
1:freetype-devel ###############[100%]
[root@Leonid RPMS]# rpm -Uvh fontconfig-devel-2.2.3-13.i386.rpm
warning: fontconfig-devel-2.2.3-13.i386.rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
Preparing... ###############[100%]
1:fontconfig-devel ###############[100%]
[root@Leonid RPMS]# rpm -Uvh xorg-x11-devel-6.8.2-31.i386.rpm
warning: xorg-x11-devel-6.8.2-31.i386.rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
Preparing... ###############[100%]
1:xorg-x11-devel ############### [100%]
[root@Leonid RPMS]# rpm -Uvh xorg-x11-deprecated-libs-6.8.2-31.i386.rpm
warning: xorg-x11-deprecated-libs-6.8.2-31.i386.rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
Preparing... ###############[100%]
1:xorg-x11-deprecated-lib############### [100%]
[root@Leonid RPMS]# rpm -Uvh xorg-x11-deprecated-libs-devel-6.8.2-31.i386.rpm
warning: xorg-x11-deprecated-libs-devel-6.8.2-31.i386.rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
Preparing... ############### [100%]
1:xorg-x11-deprecated-lib###############[100%]


Once installed, I started ColdFusion MX 7 server config and multiserver config on JRun and all server instances started just fine and now the CF Admin would run properly.

Most ColdFusion/Linux users know by now that Fedora Linux is not a supported distribution for ColdFusion MX at this time, and that other than this Graphing service problem the only other known issue is that you should run SELinux in permissive mode instead of enforcing mode in order for Apache to be able to load the ColdFusion connector module.

Just for completeness and Google-ability, here's the error as it occured in the CFAdmin and in then in the cfserver.log:
(note the C: path... weird!)

Error Occurred While Processing Request
The Graphing service is not available.

This exception is usually caused by service startup failure. Please check your server configuration.
The error occurred in C:lackstone_finalcfusionwwwrootCFIDEadministratorApplication.cfm: line 80
-1 : Unable to display error's location in a CFML template.
...
Stack Trace
at cfApplication2ecfm105811000.runPage (C:lackstone_finalcfusionwwwrootCFIDEadministratorApplication.cfm:80)
coldfusion.server.ServiceFactory$ServiceNotAvailableException: The Graphing service is not available.
at coldfusion.server.ServiceFactory.getGraphingService(ServiceFactory.java:154)



06/17 18:45:50 Information [main] - Starting client...
06/17 18:45:50 Information [main] - Starting xmlrpc...
06/17 18:45:51 Information [main] - Starting graphing...
06/17 18:45:51 Error [main] - Unable to initialize Graphing service: java.lang.UnsatisfiedLinkError: /opt/coldfusionmx7/runtime/jre/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory
06/17 18:45:51 Information [main] - Starting verity...
06/17 18:45:51 Information [main] - Starting archive...
06/17 18:45:51 Information [main] - Starting document...