Hey! A post on ColdFusion!
(I’m so pissed at you, ColdFusion…)
So it appears that Adobe changed /flashservices/gateway* = cfusion to /flashservices/gateway/* = cfusion in uriworkermap.properties for ColdFusion 10.
Why is this a problem? Well, I have a lot of legacy content that makes AMF calls to CFCs in a system that is being upgraded to ColdFusion 10 from ColdFusion 9. And with this little change – everything is broken. I spent an entire day of work troubleshooting this and dropping mad F-bombs at CF and IIS for no good reason. I’m sure this must be buried in documentation somewhere… but I’ll offer this up publicly – since I found nothing in my search through 100,000 Google search results (most dating from 2007).
The file you’ll need is located here:
{cfroot}\config\wsconfig\1\uriworkermap.properties
It’ll look like this, initially… because someone made a bad choice:
/cfformgateway/* = cfusion
/CFFormGateway/* = cfusion
/flex2gateway/* = cfusion
/flex2gateway = cfusion
/cffileservlet/* = cfusion
/CFFileServlet/* = cfusion
/cfform-internal/* = cfusion
/flashservices/gateway/* = cfusion
/flex-internal/* = cfusion
/rest/* = cfusion
/*.cfml/* = cfusion
/*.mxml = cfusion
/*.as = cfusion
/*.cfm = cfusion
/*.cfm/* = cfusion
/*.swc = cfusion
/*.cfml = cfusion
/*.cfc = cfusion
/*.cfc/* = cfusion
/*.cfr = cfusion
/*.cfswf = cfusion
/*.sws = cfusion
/*.jsp = cfusion
/*.hbmxml = cfusion
I was originally going to just remove the damn slash but you will notice that for flex2gateway they actually have both syntax enabled – so I did the same for flashservices/gateway as well:
/cfformgateway/* = cfusion /CFFormGateway/* = cfusion /flex2gateway/* = cfusion /flex2gateway = cfusion /cffileservlet/* = cfusion /CFFileServlet/* = cfusion /cfform-internal/* = cfusion /flashservices/gateway/* = cfusion /flashservices/gateway* = cfusion /flex-internal/* = cfusion /rest/* = cfusion /*.cfml/* = cfusion /*.mxml = cfusion /*.as = cfusion /*.cfm = cfusion /*.cfm/* = cfusion /*.swc = cfusion /*.cfml = cfusion /*.cfc = cfusion /*.cfc/* = cfusion /*.cfr = cfusion /*.cfswf = cfusion /*.sws = cfusion /*.jsp = cfusion /*.hbmxml = cfusion
Don’t forget to restart the ColdFusion service after saving these changes…
Thanks for this blog post, helped me to solve the same problem quickly.
Thanks for trying, but this change did not work. Can’t get flash remoting to work with Coldfusion 10. Been working with CF8 and CF9 for years. /flex2gateway gives a 404 error
nearly 6 years later, this is still helpful. thank you!
Shawn,
Add
JkMount /*.cfm ajp13
JkMount /*.cfc ajp13
JkMount /*.do ajp13
JkMount /*.jsp ajp13
JkMount /*.cfchart ajp13
JkMount /*.cfres ajp13
JkMount /*.cfm/* ajp13
JkMount /*.cfml/* ajp13
JkMountCopy all
To mod_jk.conf in Apache’s configuration folder to fix the 404.