ColdFusion 9 on OS X Lion
Jul 20
The Lion Shipped Last Night, or this morning. Today we'll see if it Roars! I am downloading and installing OS X Lion on my older Mac Book Pro. I have ColdFusion 9 Developer edition as well as the rest of my developer tools on there. I plan to use the MBP as the guinea pig and if that works fine then to my main system, a much newer iMac. I'll update this post with details as I have them.
The Install Process
FIRST RUN YOUR SOFTWARE UPDATES! New updates came out for Snow Leopard in the past few days including and update to the Migration Assistant. Next, go the the App store. Lion if featured on the home page. Purchase Lion for $29 and wait while it downloads and installs. This is what's happening right now on the MBP. I hope everyone has a fast internet connection. This is 3.49GB.
The Results
So far I am running into an issue getting CF 9 server started. I don't have time right now to debug.
ColdFusion Builder 2 is running. This was installed already when I did the updated to Lion.
Flash Builder 4.5 is hanged in the install process. I hadn't installed it yet and it seems to be not working. The first issues was it could not communicate with Adobe to verify my Adobe ID. I don't have time to debug this either right now.
*UPDATE*
JRun is running, but I can't control starting or stopping of ColdFusion from CFBuilder or the ColdFusion Launcher. If I kill JRun then use the ColdFusion Launcher, I get the message "Server 'cfusion' failed to start." I'm not seeing anything in the logs indicating why it failed. I'm wondering if the connector to Apache is an issue. I remember that I had to redo that for ColdFusion 8 when I upgraded to Snow Leopard. Otherwise I'll reinstall ColdFusion 9 and see what happens.
- Flash Builder 4.5 did install finally
- ColdFusion Builder 2 is running.
*UPDATE 2*
There had to be something else wrong with my previous install. maybe I had the wrong connector or installed previously. I am not sure. This is a 3+ year old MacBook Pro that had Leopard installed originally and has had two OS upgrades since. None of these upgrades have been fresh clean installs. Plus ColdFusion 8 prior and now ColdFusion 9. So, I decided to uninstall ColdFusion and reinstall. That only took 5 minutes and now ColdFusion 9 is up and running. The good news about doing this way is we now know the installer works on Lion. Maybe this weekend I'll upgrade my iMac which is much newer and has not had so many previous upgrades. I'm feeling better about OS X Lion now.
*UPDATE 3*
Well, I tried to install the ColdFusion 9.0.1 update. That failed. I'm having all the same issues I had when I originally upgraded to OS X Lion. I usually stay up-to-date on these updates and hot fixes so I'm guess this may have been the issue all along. I'm posting the items from log files that may point to a clue. I'm not sure what the problem is at the moment.
2[Fri Jul 22 12:01:47 2011] [notice] jrApache[136: 59841] Couldn't initialize from remote server, JRun server(s) probably down.
3[Fri Jul 22 12:01:47 2011] [notice] jrApache[136: 59841] JRun will not accept request. Check JRun web server configuration and JRun mappings on JRun server.
4
5
6cfusion-event.log
707/22 12:02:08 info No JDBC data sources have been configured for this server (see jrun-resources.xml)
807/22 12:02:08 info JRun Web Server listening on *:8300
907/22 12:02:08 info JRun Proxy Server listening on *:51020
1007/22 12:02:08 info Deploying enterprise application "cfusion-ear" from: file:/Applications/JRun4/servers/cfusion/cfusion-ear/
1107/22 12:02:08 info Deploying web application "Adobe ColdFusion 9" from: file:/Applications/JRun4/servers/cfusion/cfusion-ear/
1207/22 12:02:09 user JSPServlet: init
1307/22 12:02:10 user ColdFusionStartUpServlet: init
1407/22 12:02:10 user ColdFusionStartUpServlet: ColdFusion: Starting application services
1507/22 12:02:10 user ColdFusionStartUpServlet: ColdFusion: VM version = 20.1-b02-383
*UPDATE 4*
A huge thanks to Marcin Szczepanski - see his comment below.
I could confirm his findings on my installation also. The new jpedal.jar is different. There are class files in the old one that are not in the new one. By replacing the new jpedal.jar file with the old one, ColdFusion 9.0.1 is up and running. Considering this was part of the update for 9.0.1 I wonder what else will break because of using the old file?






#1 by Wilgeno on 7/20/11 - 10:22 AM
#2 by Richard Herbert on 7/20/11 - 2:29 PM
Took less than 20 mins to download using a 35 MB connections.
Took less than 40 mins to install on a 2 GB/2.16GHz MacBook.
MySQL 5.1.44 fires up with no apparent problems.
Sequel Pro 0.9.9 fires up without any apparent problems.
Java is not part of the standard install so firing up ColdFusionLauncher prompts you to download the runtime (1.6.0_26).
After than ColdFusion 9.0.1 fires up without any apparent problems.
ColdFusion Builder 1.0 fires up without any apparent problems.
Need to install ColdFusion Builder 2.0 to see how that works.
Off to check my other software...
#3 by Wilgeno on 7/20/11 - 10:15 PM
#4 by Tom Chiverton on 7/21/11 - 8:37 AM
#5 by Wilgeno on 7/21/11 - 9:58 AM
Last night I did mess around with Lion some more. Flash Builder 4.5 is up and running now. I have a few more ideas for ColdFusion 9 to try.
#6 by Kurt Wiersma on 7/21/11 - 10:06 AM
I haven't looked on Lion but Apple's JRE has always in the past included the JDK parts. I would be surprised if this was different in Lion but that could be possible. I know some folks mentioned they had trouble getting Lion's bundled Apache to talk to CF but I wonder if that is because they weren't using the 64 bit jrun connector.
#7 by Wil Genovese on 7/21/11 - 9:24 PM
#8 by Gavin Baumanis on 7/22/11 - 12:42 AM
Is that 9.0 or 9.01 you have successfully running there?
Gavin.
#9 by Wilgeno on 7/22/11 - 12:43 AM
#10 by Wilgeno on 7/22/11 - 12:04 PM
"JRun will not accept request"
"JRun unable to fetch clustered-servers"
Stoping and restarting JRun and rebooting didn't help.
How many people that have ColdFusion 9 running are using 9.0.1?
#11 by Kurt Wiersma on 7/22/11 - 1:04 PM
#12 by Wilgeno on 7/22/11 - 1:40 PM
<service class="jrun.servlet.jrpp.JRunProxyService" name="ProxyService">
<attribute name="activeHandlerThreads">25</attribute>
<attribute name="backlog">500</attribute>
<attribute name="deactivated">false</attribute>
<attribute name="interface">*</attribute>
<attribute name="maxHandlerThreads">1000</attribute>
<attribute name="minHandlerThreads">1</attribute>
<attribute name="port">51020</attribute>
<attribute name="threadWaitTimeout">300</attribute>
<attribute name="timeout">300</attribute>
<!-- if 0, web server connector loads mappings once at startup -->
<!-- if not specified, default is every 10 seonds -->
<attribute name="mapcheck">0</attribute>
<!-- set this to false for multi-hosted sites -->
<attribute name="cacheRealPath">false</attribute>
<!--
<attribute name="keyStore">{jrun.rootdir}/lib/keystore</attribute>
<attribute name="keyStorePassword">changeit</attribute>
<attribute name="trustStore">{jrun.rootdir}/lib/trustStore</attribute>
<attribute name="socketFactoryName">jrun.servlet.jrpp.JRunProxySSLServerSocketFactory</attribute>
-->
</service>
#13 by Kurt Wiersma on 7/22/11 - 2:24 PM
#14 by Wilgeno on 7/22/11 - 2:56 PM
#15 by Marcin Szczepanski on 7/23/11 - 5:36 AM
Trying to start it from Terminal using "jrun -start cfusion" but it gets up to "07/23 20:30:25 Information [scheduler-6] - Starting document…" and hangs.
Disappointed. May have to run it CF up in my Windows VM for now so I can do my work until someone works it out :)
It tries to start up but for me
#16 by Marcin Szczepanski on 7/23/11 - 6:32 AM
*sigh* You'd think Adobe could've found the time to install a pre-release of Lion sometime in the last year and try CF9.01 to make sure it works. Given their list of "things that don't work", it doesn't seem like they bothered at all.
#17 by Marcin Szczepanski on 7/23/11 - 7:29 AM
Since it appeared to be stalling on starting "document" I had a look at the implementation (this may or may not have involved a Java Decompiler and cfusion.jar). It seems that on Mac this uses a library called "jpedal". So I found there's a jpedal.jar in "servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/". I copied the jpedal.jar over from CF9.0 and this worked!
I've only tested lightly and don't know what functionality this will break, but I ran one of my local sites and it seems all good. The only thing I've found that has a problem is that the "settings summary" in CF Administrator don't load. There may be other issues when trying to use various bits of cfdocument related classes (although the site I was using uses cfspreadsheet and that worked).
Anyway, good enough to keep me working until we get a proper fix!
#18 by Richard Herbert on 7/23/11 - 9:53 AM
#19 by Wilgeno on 7/23/11 - 1:22 PM
@Richard - Thanks for reporting the installation method. I always run in multi-server mode. It's good to know which ways work and don't work so if we find a true bug we can fully document it and report it to Adobe.
#20 by Wilgeno on 7/23/11 - 3:17 PM
Time to file a bug report with Adobe.
#21 by Wilgeno on 7/23/11 - 4:35 PM
#22 by Richard Herbert on 7/23/11 - 5:17 PM
http://johncblandii.com/2011/07/osx-lion-gotcha-et...
#23 by Marcin Szczepanski on 7/23/11 - 6:11 PM
I've filed a bug in the bugbase at http://cfbugs.adobe.com/ - doesn't seem to be any way to link to a bug, but it's #86992. Give it a vote! :)
#24 by Kevin Benore on 7/25/11 - 7:41 AM
#25 by John Farrar on 7/25/11 - 8:18 AM
I also noticed that Apple appears to have removed the mySQL instance? Does anyone know what's up with that?
#26 by Mark Andrachek on 8/5/11 - 2:28 PM
#27 by Anthony Webb on 8/12/11 - 11:35 PM
#28 by Kevin Benore on 8/13/11 - 11:50 AM
#29 by Anthony Webb on 8/13/11 - 12:11 PM
#30 by John Farrar on 8/13/11 - 12:21 PM
#31 by John Farrar on 8/13/11 - 12:23 PM
#32 by Anthony Webb on 8/13/11 - 12:31 PM
#33 by Anthony Webb on 8/19/11 - 12:49 PM
Did anyone every find a fix for that? I'd like to apply the hotfix if possible?
#34 by Kevin Benore on 8/19/11 - 1:26 PM
#35 by Anthony Webb on 8/19/11 - 1:30 PM
08/19 18:18:13 Error [jrpp-7] - Exception thrown by error-handling template:
08/19 18:18:13 Error [jrpp-7] - File not found: /Applications/ColdFusion9/wwwroot/WEB-INF/exception/coldfusion/runtime/ApplicationException.cfm The specific sequence of files included or processed is: /Applications/ColdFusion9/wwwroot/WEB-INF/exception/coldfusion/runtime/ApplicationException.cfm''
#36 by Anthony Webb on 8/19/11 - 1:31 PM
#37 by Anthony Webb on 8/20/11 - 3:07 AM
#38 by Wilgeno on 9/5/11 - 10:39 AM
They have verified this bug (bug #86992) as Severity: 2 - Serious (Seriously impedes use of product)
No other information was provided.
#39 by Anthony Webb on 9/14/11 - 3:09 PM
I am monitoring the server and occasionally for a period of time apache will simply stop serving traffic. It recovers after a couple minutes automatically, but not a trace of an error in the syslog or any of the cf logs. However the kernel.log is full of these (particularly at the time apache stops serving):
nstat_lookup_entry failed: 2
I know the tcp stack is fine as I can be logged into the box when the error occurs. Any ideas? Perhaps a more general Lion bug?
Whats worse is you cannot load snow leopard onto the new line of mac mini servers *lame*
#40 by Aurelien on 9/20/11 - 4:55 PM
I'm turning crazy with the installation of CF9 on Lion!
My CF9.0.1 was running like a charm since I've moved to Lion without touching him. :-) Today I tried to install the HotFix2 for CF9.0.1, and I got my ColdFusion hanging (try to load any page during hours without any errors, logs or whatever...)
After hours, I've decided to uninstall and start a clean install from scratch.
(that's only for the story, it begins now...)
I install CF9, ok it works. Settings Summary and Info Page do NOT work.
I need 9.0.1.
To apply the chf9010001.jar file, but because the Info Page doesn't work, I copy it directly to the folder {ColdFusion9}/lib/updates. I copy the CFIDE and WEB-INF too. I restart the server. But the patch doesn't apply.
To verify this, I use:
<cfdump var="#server#" />
and I obtain:
...
productversion 9,0,0,251028
...
Any clue guys?... I'm running out of idea!
Thanks
#41 by Wilgeno on 9/20/11 - 4:59 PM
I have not tried this CHF2 9.0.1 in standalone mode. However, I do know Adobe has recognized there is still an issue and it appears they plan a fix based on the email I received the other day. I don't know the trime-frame of such a fix.
#42 by Aurelien on 9/20/11 - 5:26 PM
I've just tried to install CHF2 9.0.1 over the #fail install of 9.0.1, my server is running bad. No Administrator (Object Instantiation Exception.Class not found: coldfusion.security.ESAPIUtils...) but I run my CFdump, and the version is still 9,0,0,251028.
So thanks to your tip, I'm going to try a multi-instance installation...
#43 by Aurelien on 9/20/11 - 5:58 PM
How do you apply the patch without any access to the Info Page?
I give up for tonight (it's 1:00AM in Paris...)
Thanks for your help.
#44 by Anthony Webb on 9/20/11 - 6:01 PM
#45 by Wilgeno on 9/20/11 - 6:01 PM
#46 by Wilgeno on 9/20/11 - 6:04 PM
#47 by Aurelien on 9/21/11 - 8:52 AM
I've done a new step, I've got the following error:
Ignoring invalid file in updates directory: chf9010001.jar
This is a good explanation of why the server version is still 9,0,0...
My jar files is well formated (unzip works), I've downloaded again from Adobe, still the same :-(
Keep searching...
#48 by Aurelien on 9/21/11 - 9:06 AM
I just was trying to install the CHF 1 for ColdFusion 9.0.1 believing it was the 9.0.1 update!
sorry for the noise here :-)
I start again my configuration and I give my feedback on installation on Mac OS Lion :-)
#49 by David Sirr on 10/12/11 - 12:46 AM
Couldn't have it be offline so had to go under the hood for a workaround. did a java heap dump on the hanging thread, the culprit was coldfusion trying to retrieve printer information of all things!
* coldfusion.print.PrinterInfo.getPrinters(PrinterInfo.java:98)
i figured i could stop it calling that method and hanging by commenting out the reference in admin/settings/version.cfm, but the next issue was that the cfadmin files are compiled... so to fix this so you can at least use the license and updater forms:
make a backup of version.cfm, then edit the version.cfm in a hex editor; i used hex fiend (http://ridiculousfish.com/hexfiend/)
then search for "coldfusion.print.PrinterInfo" in ascii and just change one of the letters so it can't find the class. You'll get an error at the bottom of the settings page for the missing class but at least you can use the form...
This worked for me and i'm back up and running on a working server again!
#50 by Wil Genovese on 10/13/11 - 12:51 PM
#51 by David Sirr on 10/17/11 - 6:32 AM
i voted on the adobe bug for this issue but didnt add this detail as i'm not sure theyd condone the decompiling needed to investigate...