Copy link to clipboard
Copied
Hi all,
upgraded to CF10 from 9 this week and just realised that Flash Remoting is no longer working. Any idea how I enable it within CF10?
Thanks
Hi Phil, In ColdFusion10\config\wsconfig\1\uriworkermap.properties file
/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
Copy link to clipboard
Copied
What does this url produce - http://localhost/flashservices/gateway/? Mind ending slash.
Copy link to clipboard
Copied
Page not found....
Copy link to clipboard
Copied
Does it produce same result with and without ending forward slash?
Copy link to clipboard
Copied
yes...if I put the servername rather than localhost I get an empty page back - i.e.
<html><head></head><body></body></html>
Copy link to clipboard
Copied
Tha's the point. If you get a blank page back with no errors - that means Remoting is installed, up, and running.
Copy link to clipboard
Copied
Hi Phil, In ColdFusion10\config\wsconfig\1\uriworkermap.properties file
/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
Add the bolded line above. I may add take a copy of uriworkermap before changes.
Restart IIS and maybe restart CF tho IIS restart should be enough to apply change.
Test your flash.
HTH, Carl.
Copy link to clipboard
Copied
Superb Carl - worked a treat!
Thanks
Copy link to clipboard
Copied
Hey Adobe, I'm using brand new ColdFusion 2016, and it STILL has this error in the uriworkermap.properties file. My CFC/AMF application wasn't working on the new version, and I searched high and low for an answer and found this fix from 2 versions back still applies.
Copy link to clipboard
Copied
Okay, I stumbled on this post because I suddenly was getting flex2gateway errors. I tried the solution mentioned here but to no avail. The underlying issue was I had when I migrated from Apache running sites on /Library/WebServer/Documents to /Users/{Username}/Sites/test and used Virtual Hosts. I immediately got:
"Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Status 404: url: 'http://test.dev/flex2gateway/'"
The one line I was missing from the /etc/apache2/extra/hhtpd-vhosts.conf virtual host groups was: JkMountFile "/Applications/ColdFusion11/config/wsconfig/1/uriworkermap.properties"
I hope this helps others running Apache 2 using Virtual Hosts with ColdFusion 10, 11, or 2016 with the same issue.
Copy link to clipboard
Copied
I just spent a day knocking my head over the same issue; and this is one of the highest search results for the problem, so wanted to share my solution in hopes it will help others.
My environment was CF10 with Apache Web Server 2.2 .
I was able to get Flex Remoting working by adding this line to the Apache config:
JkMountCopy All
As I understand it; this basically tells Apache Web Server that the jk module loading is inherited by all virtual hosts. I got the idea from here.
I hope this helps someone.