Have you installed BlazeDS with ColdFusion?

This post is more than 2 years old.

I'm trying to get BlazeDS working with ColdFusion. I plan to eventually do it to a Windows server, but for now, I'm working locally on my Mac. I have no need for Livecycle to work, I'm happy with completely changing it to BlazeDS. I was happy to find a complete install guide for Blaze and CF here.

However, I got tripped up on step 7:

Set up the configuration files for BlazeDS. You can copy the set of configuration files from the BlazeDS ZIP file (not the WAR file). Copy the following files in resources/ColdFusion to ColdFusion8/wwwroot/WEB-INF/flex:

While nice and clear, I only read the first sentence. I had downloaded the binary package of BlazeDS and wasn't quite sure what they meant by "ZIP file (not the WAR file)". I plainly saw the 4 config files from the JAR, so I just used those. Of course, nothing ColdFusion-wise existed in those configs, and when I tried to do a simple remoting call, it failed.

If you download the source version of BlazeDS instead, you will have the folder mentioned in the instructions and your config will work perfectly. I tend to avoid source distributions because I assume they will make me build the source into binaries, but from what I can see, the source version also includes the JARs anyway.

I hope this helps people as it definitely tripped me up at first.

Raymond Camden's Picture

About Raymond Camden

Raymond is a senior developer evangelist for Adobe. He focuses on document services, JavaScript, and enterprise cat demos. If you like this article, please consider visiting my Amazon Wishlist or donating via PayPal to show your support. You can even buy me a coffee!

Lafayette, LA https://www.raymondcamden.com

Archived Comments

Comment 1 by Hem Talreja posted on 4/19/2009 at 8:38 PM

Ray,

Arron West has a video tutorial.
http://www.trajiklyhip.com/...

p.s. I renamed *.war to *.zip and was able to unzip the contents of the file.

Note: It was easier for me to reinstall ColdFusion with LifeCycle ES and swap out the files.

I hope this helps

Comment 2 by johans posted on 4/19/2009 at 11:55 PM

Ray can you confirm that installing BlazsDS with CF8 will not affect existing Flex/AMF/CF Flash Remoting functionality (not LifeCycle) - I assume not. Be nice if CF9 comes with a BlazeDS option in the Admin like they have for LifeCycle.

Comment 3 by Raymond Camden posted on 4/19/2009 at 11:56 PM

@johans:

This is NOT scientific proof.

I had an existing AIR client that made use of remoting to hit a CFC. This DID break at first when I didn't follow the directions right, but works fine now.

My new issue is getting messaging working using event gateways.

Comment 4 by Kevin S posted on 4/20/2009 at 8:10 PM

Ray,

I really feel that the integration of Flex and ColdFusion with LCDS or BlazeDS is entirely too manual and has a really high chance of error as I experienced the same frustrations you did. It would be nice if future versions of these products had installers or configuration GUIs to alleviate the confusion and lost time. Would you agree?

Comment 5 by Raymond Camden posted on 4/20/2009 at 9:30 PM

A-freaking-men. :)

Comment 6 by Hem Talreja posted on 4/24/2009 at 5:40 AM

Ray,

If you are trying to get FMS working on a ColdFusion Server, hopefully this blog can help.

http://www.hemtalreja.com/?...

Thanks
-Hem

Comment 7 by Raymond Camden posted on 4/24/2009 at 4:42 PM

Nope, not worried about FMS for now.