Posts filed under 'ColdFusion MX 7'
The setup steps below are taken from a rough article I put together covering Cairngorm, Flex 3, and ColdFusion 8. The setup used ColdFusion 8 through Apache (XAMPP) all on Mac OS X.
Setup:
XAMPP
- Download latest XAMPP for OS X
- Follow instructions on XAMPP’s site: Installation, Start, Test
ColdFusion 8
- You need Admin rights to install ColdFusion 8 on Mac OS X.
- Download the Developer Edition of the ColdFusion 8 from Adobe.com
- Unzip the downloaded Mac OS X version of the ColdFusion 8
- Open a Terminal. Type “sudo open ” in the terminal. Then navigate to the “ColdFusion 8 Install.app” that you unzipped. Drag it over to the Terminal app, it will paste the path for you (should look something like “sudo open /Users/renaun/Desktop/downloads/ColdFusion\ 8\ Installer.app/”. Click enter.
- Now we are in the ColdFusion Wizard, here are what I selected as the installation options
- Clicked Ok
- Clicked Next
- Clicked “I accept….” and then Next
- Checked the Developer Edition and then clicked Next
- Select the “Server Configuration” option , then click Next
- I had no other installs, so left it checked No, and clicked Next
- I did not want the documentation, startup scripts, or Adobe LiveCycle Data Services ES. I unchecked all 3 and then clicked Next
- I left the default install directory “/Applications/ColdFusion8″, and clicked Next
- I did not need to update from earlier versions of ColdFusion, so I left it No and clicked Next
- I left “Configure web server connected for ColdFusion” selected and clicked on the Add button. Use the values below to fill out the form, then click OK
- Web Server: Apache
- Config. Dir: /Applications/xampp/etc
- Dir and file name of server binary: /Applications/xampp/xamppfiles/bin/httpd
- Dir and file name of server control script: /Applications/xampp/xamppfiles/bin/apachectl
- Click Next
- I put my CFIDE in the default Mac web sites folder, which I changed the “DocumentRoot” value in the /Applications/xampp/etc/httpd.conf file of xampp also. So select your default web server DocumentRoot. Either:
/Applications/xampp/xamppfiles/htdocs
/Users/renaun/Sites/
Click Next
- Enter a password for the CFIDE administration login and click Next
- Enabled RDS and give a password if you want. I did not, click Next
- Provide your Mac OS X user’s password and click Next
- Click Install and wait for it to install
- Click Ok, and it will open the CFIDE administration login wizard
- Log in with your password setup eariler in the wizard
- To Start/Stop ColdFusion manual open a Terminal app and type in Either:
sudo /Applications/ColdFuions8/bin/coldfusion start
- or -
sudo /Applications/ColdFusion8/bin/coldfusion stop
August 7th, 2007
I posted about an Flex example using Cairngorm Store and multiple backends (ColdFusion Remoting and WebServices, AMFPHP using AMF0 and AMFPHP 1.9 alpha using AMF3). I goofed and forgot to put one updated file into the download. It was a change to the ProductVO to handle some WebService VO property conversion.
You can read my first post here:
http://renaun.com/blog/2006/12/19/170/
and get the update here:
http://api.renaun.com/flex2/posts/CairngormStoreMultipleBackend/CairngormStoreMultipleBackend.zip
PS: Thanks to Pete pointing out the missing file to me.
January 20th, 2007
I have updated the Cairngorm Store multiple backend example. Along with the updated source code I have deploy a live running example. The 4 backends it supports now is ColdFusion Remoting AMF3, AMFPHP AMF0 using the RemoteObjectAMF0 class, AMFPHP 1.9 AMF3, and ColdFusion WebServices.
See it live here!
Get the source here!
To change the backend of the Cairngorm Store example just select the backend you want from ComboBox and then click on the Refresh Data button. I had to do write some exception code to convert the returned XML data into the ArrayCollection to conform all the backend but besides that it was really easy to integrate all of them into the Services.mxml.
PS: I just installed a new license on the ColdFusion server with a new Apache web server configuration so let me know if there are any issues.
December 19th, 2006
I have been fighting to get ColdFusion MX 7.0.2 on a RedHat ES4 box. I did a typical install straight from the download (coldfusion-702-lin.bin) to the integration with Apache. Everything seemed fine until I started trying to connect with my Flex 2 applications. I received this error messages, which don’t show up any where on the web, except for a reference to a FDS/ColdFusion installation issue.
[Flex] Exception when invoking service: coldfusion-flashremoting-service
with message: Flex Message (flex.messaging.messages.RemotingMessage)
operation = getStatisticsByName
clientId = 34629AE6-CD0E-48A5-BFA8-852FE58DF5AD
destination = ColdFusion
messageId = EA7DE3DE-7499-ACA5-4614-D4564829D4FA
timestamp = 1163203485725
timeToLive = 1163203485725
body = null
hdr(DSEndpoint) = my-cfamf
exception: flex.messaging.MessageException:
flex/messaging/io/amf/UnknownTypeException
[Flex] Error handling message: flex.messaging.MessageException:
flex/messaging/io/amf/UnknownTypeException
incomingMessage: Flex Message (flex.messaging.messages.RemotingMessage)
operation = getStatisticsByName
clientId = 34629AE6-CD0E-48A5-BFA8-852FE58DF5AD
destination = ColdFusion
messageId = EA7DE3DE-7499-ACA5-4614-D4564829D4FA
timestamp = 1163203485725
timeToLive = 1163203485725
body = null
hdr(DSEndpoint) = my-cfamf
errorReply: Flex Message (flex.messaging.messages.ErrorMessage)
clientId = null
correlationId = EA7DE3DE-7499-ACA5-4614-D4564829D4FA
destination = ColdFusion
messageId = 34629AF3-020B-CBF3-29F7-BBB32E69FF55
timestamp = 1163203485730
timeToLive = 0
body = null
code = Server.Processing
message = flex/messaging/io/amf/UnknownTypeException
details = null
rootCause = java.lang.NoClassDefFoundError:
flex/messaging/io/amf/UnknownTypeException
body = null
extendedData = null
After many attempts of uninstalling and re-installing I got it to work. The method to the madness was that I had to:
1. Install ColdFusion MX 7.0.1 (which you can’t download directly, luckily I had a copy on another server)
2. Then install 7.0.1 updater (coldfusion-70-updater-lin.bin)
3. Then install 7.0.2 updater (coldfusion-70-updater2-lin.bin)
When the server came up using the steps above, it all worked like it should have. This is only my third install of ColdFusion MX 7.0.2 on non-development box and I was shocked I had so much trouble with this one. Hopefully this post will stand as a reminder for me, and a help for other people stuck with the same error message above.
November 10th, 2006
I have created another port of the Adobe Flex Cairngorm Store example using ColdFusion RemoteObject on the backend. This example actually is created to show how to switch between different backends. The ColdFusion WebService implementation is not working at this time and I am trying to track down the Cairngorm 2.1 changes that has affect it or if the problem is else where. The 2 backends that are working are ColdFusion RemoteObject and AMFPHP with RemoteObjectAMF0.
Get the source here!
You can read more on the AMFPHP implementation in my previous post.
November 1st, 2006
I have not been following who is providing the latest ColdFusion MX 7.0.2 hosting, but its important if you are trying to use Flex 2’s RPC services.
I picked up a google news alert that says “CrystalTech Offering ColdFusion MX 7 Web Hosting With Adobe Flex 2″.
Continue Reading September 27th, 2006
Have you ever tried using ORDER BY in a query of queries in ColdFusion, well come to find out its case sensitive, and I need it to be case insensitive. Read on for me solution to the problem.
Continue Reading July 15th, 2006
I am working on a Flex and ColdFusion file upload/download component and came across the fun Linux and Windows file format issues. The files will upload correctly but if you try and pull down a JPG file form the linux server with ColdFusion’s tag with the default charset it will not come down correctly.
Continue Reading July 7th, 2006
I read through the article titled, “Using the FileReference API to upload files in Flex 2 applications”. It is a good starting point for learning how to use the file upload and download capabilites in Flex 2 and Flash Player 9. …
Continue Reading June 27th, 2006
If you have not tried already, it is possible to have CFEclipse installed into the standalone version of Flex Builder 2….
Continue Reading June 24th, 2006
Previous Posts