RDS Silently Fails on Flex ColdFusion Wizards

As I'm getting more and more into developing Flex 2 apps, I am running into silly little annoying problems and am going to start blogging them so I can find the solution when I forget and it happens again.

Problem: The ColdFusion Wizards in the Flex Builder 2 require you to connect to the CFMX server using RDS in order to get table information. In my case, I was getting to the screen where you choose an RDS server and datasource - but and the datasource box was empty. I knew there was a valid datasource at that location, and Flex Builder wasn't complaining that I'd given it a bad RDS password.

After a bit of troubleshooting, I found the following in CFMX's exception.log file: "File not found: /CFIDE/main/ide.cfm". This essentially means I didn't enable RDS when I installed CF. Whoops.

Solution: Since main/ide.cfm isn't an actual physical file, you have to tell CFMX that you want it to intercept calls for this file and handle them for you (enabling RDS). This is done via an entry in the web.xml file, typically located in [cfmxroot]/wwwroot/WEB-INF/. Just open up the file and do a find for "RDS". Two entries should be in there, both commented out. Simply uncomment them and restart CFMX.

Done.

As a side note, if Adobe's listening, it would be nice if Flex Builder were smart enough to tell you when RDS authentication fails or RDS isn't enabled on the target server.

Comments (3)

Add Comment ]

Cornel Thank you... I was wondering why it did not work on the new server...of course I forgot all bout it from the previous server LOL
danny This was apparently my whole problem, but some people may also need to make sure the port number in FlexBuilder's Window -->Preferences --> ColdFusion --> RDS Configuration menu is correct. Try 8500,8300, and 80.
I had seen several sites saying things about RDS not being enabled, and I had turned it on, but you also said to RESTART CFMX, which may seem common sense to lots of people, but to people just learning, it's not a given.
So, to restart, go to your Control Panel --> Administrative Tools --> Services and find and restart the ColdFusion services.
John Awsome thanks. For some reason I did not install RDS but forgot and spent a long time working out why I could not connect. web.xml was so easy to edit a quikc re-start and I was up and running.

Add Comment ]

Post a comment





Leave this field empty: