ColdFusion MX 7.0.2 didn’t play nice with RedHat ES4
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.