Skip to main content
Inspiring
Aug 23, 2013 10:48 AM UTC
Answered

CF10 Flash Remoting

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

    This topic is closed to new replies. Start a new post to keep the conversation going.
    carl type3Correct answer
    Legend
    Aug 23, 2013 8:54 PM UTC

    yes...if I put the servername rather than localhost I get an empty page back - i.e.

    <html><head></head><body></body></html>


    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.

    10 replies

    JeffryHouser
    Participating Frequently
    Mar 7, 2017 2:22 PM UTC

    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.

    Translate
    Known Participant
    Oct 12, 2016 7:23 AM UTC

    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.

    Translate
    Mar 21, 2016 2:08 PM UTC

    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.

    Translate
    Petro_O__Bochan
    Inspiring
    Aug 23, 2013 11:32 AM UTC

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

    Translate
    Inspiring
    Aug 23, 2013 12:27 PM UTC

    Page not found....

    Translate
    Petro_O__Bochan
    Inspiring
    Aug 23, 2013 2:33 PM UTC

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

    Translate