• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

CF10 Flash Remoting

Contributor ,
Aug 23, 2013 Aug 23, 2013

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

Views

2.5K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Guide , Aug 23, 2013 Aug 23, 2013

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

...

Votes

Translate

Translate
Enthusiast ,
Aug 23, 2013 Aug 23, 2013

Copy link to clipboard

Copied

What does this url produce - http://localhost/flashservices/gateway/? Mind ending slash.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Aug 23, 2013 Aug 23, 2013

Copy link to clipboard

Copied

Page not found....

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Aug 23, 2013 Aug 23, 2013

Copy link to clipboard

Copied

Does it produce same result with and without ending forward slash?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Aug 23, 2013 Aug 23, 2013

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>

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Aug 23, 2013 Aug 23, 2013

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Aug 23, 2013 Aug 23, 2013

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Aug 28, 2013 Aug 28, 2013

Copy link to clipboard

Copied

Superb Carl - worked a treat! 

Thanks

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 21, 2016 Mar 21, 2016

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 12, 2016 Oct 12, 2016

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Mar 07, 2017 Mar 07, 2017

Copy link to clipboard

Copied

LATEST

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation