Open the cf_root/wwwroot/WEB-INF/web.xml file in a text editor. In the J2EE configuration, opencf_root/WEB-INF/web.xml.
Last updated on
17 May 2021
|
Also applies to ColdFusion
Issue
Access from Macromedia Flash to web services using the Flash Gateway is disabled by default in ColdFusion MX Updater 3 and higher. To enable access, use the steps provided in this TechNote.
Solution
To enable access from Macromedia Flash to web services, follow these steps:
ColdFusion MX 6.1-
-
Locate the servlet definition for FlashGateway and change the DISABLE_CFWS_ADAPTERS init-param from true to false, as follows:
<servlet><servlet-name>FlashGateway</servlet-name> ...<init-param><param-name>DISABLE_CFWS_ADAPTERS</param-name><param-value>false</param-value><description>When set to true, this setting disables the ColdFusion WebServices Adapters in the gateway.</description></init-param></servlet>
-
Save the file.
ColdFusion MX Updater 3
-
Stop the ColdFusion Application Server.
-
Using WinZip or the archive program of your choice, open the flashgateway.ear file located in thecf_root/runtime/servers/default directory.
-
Open the gateway-webapp.war file which is within the flashgateway.ear file.
-
Using the text editor of your choice, open the web.xml file located within the gateway-webapp.war file.
-
Modify the param-value for the DISABLE_CFWS_ADAPTERS param-name to false to enable access:
<init-param><param-name>DISABLE_CFWS_ADAPTERS</param-name><param-value>false</param-value><description>When set to true, this setting disables the ColdFusion WebServices Adapters in the gateway.</description></init-param>
-
Save the changes to the web.xml file.
-
Using WinZip or the archive program of your choice, save the modified web.xml file in the gateway-webapp.war archive file.
-
Using WinZip or the archive program of your choice, save the modified gateway-webapp.war archive file in the flashgateway.ear file.
-
Replace the existingcf_root/runtime/servers/default/flashgateway.ear with the updated file.
-
Restart the ColdFusion Application Server.