Greg's Blog

helping me remember what I figure out

CFIDE Instances on JRun

| Comments

One of the main benefits of using CFMX instances on JRun was the ability to have multiple CFIDE administrators for your applications/instances. However despite the CFIDE working fine, the interface was not displaying properly. i.e. all the images and CSS templates were quite simply missing. Checking the path to the CFIDE showed that they were all there ({your Path}\servers\instanceName\cfusion-ear\cfusion-war\CFIDE\administrator\), so what was going on?

Well as it turns out, when you run a ColdFusion instance on JRun, it runs in distributes mode. What this means is that JRun is responsible for handling the .cfm and .cfc templates and your web server is responsible for serving the static content, e.g. images and style sheets. So I created a folder combination of CFIDE/administrator in my virtual host directory for that instance (e.g. {your Path}\Apache Group\Apache2\htdocs\cfide\administrator), copied over the style sheets from {your Path}\servers\instanceName\cfusion-ear\cfusion-war\CFIDE\administrator\. Then created another folder for the images and copied them from the previous folder as well. Checked my ColdFusion administrator and all the images and styles were being applied!

Now if you have multiple instances you may not want to copy all of these files over and over again into each websites virtual host directory, in which case you can simply copy them into your default website directory (say {your Path}\Apache Group\Apache2\htdocs\ ) and then edit your httpd.conf by adding the following instruction:

Alias /cfide/ “{your Path}/Apache Group/Apache2/htdocs/Cfide/”

Big thanks to Sean Corfield for mentioning this on the CFCDev mailing list.