Thursday, October 24, 2013

Running Coldfusion 10 on OS X Mavericks

I installed OS X Mavericks on my work computer. At first everything seemed great, not much of a departure from its predecessor, OS X Mountain Lion. For what I heard, most of the changes seem to be on what's working under the hood. Everything was going well until I wanted to get back to work on my development environment; turns out ColdFusion wasn't working any more...

yes, I'm a cat

After doing some research, I found out 2 major problems:

  1. Mavericks comes with Java 7.
  2. ColdFusion's web connector (mod_jk.so) does not work with Mavericks.
Fortunately, there is a solution for both.

The problem with CF is that it is currently pointing to the directory where the JDK 6 was located, so we must adjust the CF configuration so that it points to the new JDK 7. You can do so by following the instructions here:

http://www.n42designs.com/blog/index.cfm/2013/10/23/Running-ColdFusion-10-on-OS-X-Mavericks

Once you have mapped Java 7 in CF, we have to fix the web connector so that it works with Mavericks. Originally, this implied making a change in the web connector's source code, recompile it and replace the old one with the new one. Fortunately someone figured out that part already and even posted the new mod_jk.so file publicly, which you can download here:

https://skydrive.live.com/redir?resid=ACCA7C11400D15FA!618&authkey=!AOZJmH3HBrjvJ7s

After downloading the file, replace the old mod_jk.so with the new one you just downloaded in /Applications/ColdFusion10/config/wsconfig/1/.

Finally, start the ColdFusion server and congratulations! you now have ColdFusion 10 running on OS X Mavericks. Meow.

Credits go out to Sean Coyne at n42designs.com for coming up with the solution and a fellow developer named "Mike" that you can find at that site's comment section, who fixed the web connector and posted it online.