Mar 3
I was having a problem this week on the cfdeveloper server, members were reporting that flash remoting was not working. Having then tested on a few other CF 7 servers, it was not working there either. And I did a bit of googling to no avail, only to find that a lot of people seem to have problems getting flash remoting to work.
In ColdFusion MX 6 you could go to http://domain/flashservices/gateway to test if it was working, and if you got a blank page back, all was ok.
On ColdFusion MX 7 this does not work, so the only way you can test is by writing some code to test the service.
Here is a simple script you can use to test the flash remoting services.
http://www.asfusion.com/blog/entry/remoting-for-coldfusion-flash-forms
Well here is the answer.
After checking the coldfusion runtime logs (C:\CFusionMX7\runtime\logs\coldfusion-out.log), I found it was full of errors like this.
[Flash Remoting MX]-> Unable to load configuration. Reason: The element type
"service-adapters" must be terminated by the matching end-tag
"".27/02 16:22:17 user failed to load:
flashgateway.controller.GatewayServlet
So I checked the gateway-config.xml file (\wwwroot\WEB-INF\gateway-config.xml) and found it had the following errors in it.
<service-adapters>
<adapter>flashgateway.adapter.resultset.PageableResultSetAdapter</adapter>
<adapter>coldfusion.flash.adapter.ColdFusionAdapter</adapter>
<adapter>coldfusion.flash.adapter.CFCAdapter</adapter>
<adapter>coldfusion.flash.adapter.CFSSASAdapter</adapter>
<!--<adapter type="stateful-class">flashgateway.adapter.java.JavaBeanAdapter</adapter>-->
<!--<adapter type="stateless-class">flashgateway.adapter.java.JavaAdapter</adapter>-->
<!--<adapter type="ejb">flashgateway.adapter.java.EJBAdapter</adapter>-->
<!--<adapter type="servlet">flashgateway.adapter.java.ServletAdapter</adapter>-->
adapter>coldfusion.flash.adapter.CFWSAdapter</adapter>
</service-adapters>
should be
<service-adapters>
<adapter>flashgateway.adapter.resultset.PageableResultSetAdapter</adapter>
<adapter>coldfusion.flash.adapter.ColdFusionAdapter</adapter>
<adapter>coldfusion.flash.adapter.CFCAdapter</adapter>
<adapter>coldfusion.flash.adapter.CFSSASAdapter</adapter>
<!--<adapter
type="stateful-class">flashgateway.adapter.java.JavaBeanAdapter</adapter>-->
<!--<adapter
type="stateless-class">flashgateway.adapter.java.JavaAdapter</adapter>-->
<!--<adapter
type="ejb">flashgateway.adapter.java.EJBAdapter</adapter>-->
<!--<adapter
type="servlet">flashgateway.adapter.java.ServletAdapter</adapter>-->
<adapter>coldfusion.flash.adapter.CFWSAdapter</adapter>
</service-adapters>
Notice the last tag, has a missing opening chevron.
Recent Comments