Cannot Connect to Coldfusion with Flex 2
i attempting call coldfusion component using remoteobject ,
getting error cannot communicate coldfusion.
[rpc fault faultstring="[messagingerror message='unknown destination
'coldfusion'.']" faultcode="invokefailed" faultdetail="couldn't establish
connection 'coldfusion'"]
i know running correctly , application , cfc
located in coldfusion wwwroot.
have looked online , found many articles it,
seem beta 2. compiler solution done , have
editted services-config.xml include path of cf server.
cf running fine , restarted both coldfusion server ,
flex builder 2 program after changes.
any ideas on can find information pertaining released version of
flex 2?
here actual path application:
c:\cfusionmx7\wwwroot\flexbtb\flex
here url:
http://localhost:8501/flexbtb/flex
here modified version of services-config.xml file inside
coldfusion directory
<?xml version="1.0" encoding="utf-8"?>
<services-config xmlns=" http://www.macromedia.com/2005/flex-service-config">
<services>
<service id="coldfusionsamples-service"
class="flex.messaging.services.remotingservice"
messagetypes="flex.messaging.messages.remotingmessage">
<adapters>
<adapter-definition id="cf-object"
class="coldfusion.flash.messaging.coldfusionadapter" default="true"/>
</adapters>
<destination id="coldfusion">
<channels>
<channel ref="my-cfamf"/>
</channels>
<properties>
<source>*</source>
<!-- define resolution rules , access level of cfc being
invoked -->
<access>
<!-- use coldfusion mappings find cfcs, default cfc files
under webroot can found. -->
<use-mappings>false</use-mappings>
<!-- allow "public , remote" or "remote" methods invoked -->
<method-access-level>remote</method-access-level>
</access>
<property-case>
<!-- cfc property names -->
<force-cfc-lowercase>false</force-cfc-lowercase>
<!-- query column names -->
<force-query-lowercase>false</force-query-lowercase>
<!-- struct keys -->
<force-struct-lowercase>false</force-struct-lowercase>
</property-case>
</properties>
</destination>
</service>
</services>
<security>
<login-command class="flex.messaging.security.jrunlogincommand"
server="jrun"/>
</security>
<channels>
<channel-definition id="my-cfamf" class="mx.messaging.channels.amfchannel">
<endpoint uri=" http://localhost:8501{context.root}/flex2gateway/"
class="flex.messaging.endpoints.amfendpoint"/>
<properties>
<polling-enabled>false</polling-enabled>
<serialization>
<custom-deserializer type="typed-object"
class="coldfusion.flash.messaging.io.amf.serializers.typedobjectdeserializer"
/>
</serialization>
</properties>
</channel-definition>
</channels>
<logging>
<target class="flex.messaging.log.consoletarget" level="debug">
<properties>
<prefix>[flex] </prefix>
<includedate>false</includedate>
<includetime>false</includetime>
<includelevel>false</includelevel>
<includecategory>false</includecategory>
</properties>
<filters>
<pattern>endpoint.*</pattern>
<pattern>service.*</pattern>
<pattern>configuration</pattern>
<pattern>message.*</pattern>
</filters>
</target>
</logging>
<system>
<locale>
<default-locale>en</default-locale>
<supported-locale>de</supported-locale>
<supported-locale>fr</supported-locale>
<supported-locale>es</supported-locale>
</locale>
<redeploy>
<enabled>true</enabled>
<watch-interval>20</watch-interval>
<watch-file>{context.root}/web-inf/flex/flex-enterprise-services.xml</watch-file>
<touch-file>{context.root}/web-inf/web.xml</touch-file>
</redeploy>
</system>
</services-config>
--
wally kolcz
mynextpet.org
founder / developer
586.871.4126
getting error cannot communicate coldfusion.
[rpc fault faultstring="[messagingerror message='unknown destination
'coldfusion'.']" faultcode="invokefailed" faultdetail="couldn't establish
connection 'coldfusion'"]
i know running correctly , application , cfc
located in coldfusion wwwroot.
have looked online , found many articles it,
seem beta 2. compiler solution done , have
editted services-config.xml include path of cf server.
cf running fine , restarted both coldfusion server ,
flex builder 2 program after changes.
any ideas on can find information pertaining released version of
flex 2?
here actual path application:
c:\cfusionmx7\wwwroot\flexbtb\flex
here url:
http://localhost:8501/flexbtb/flex
here modified version of services-config.xml file inside
coldfusion directory
<?xml version="1.0" encoding="utf-8"?>
<services-config xmlns=" http://www.macromedia.com/2005/flex-service-config">
<services>
<service id="coldfusionsamples-service"
class="flex.messaging.services.remotingservice"
messagetypes="flex.messaging.messages.remotingmessage">
<adapters>
<adapter-definition id="cf-object"
class="coldfusion.flash.messaging.coldfusionadapter" default="true"/>
</adapters>
<destination id="coldfusion">
<channels>
<channel ref="my-cfamf"/>
</channels>
<properties>
<source>*</source>
<!-- define resolution rules , access level of cfc being
invoked -->
<access>
<!-- use coldfusion mappings find cfcs, default cfc files
under webroot can found. -->
<use-mappings>false</use-mappings>
<!-- allow "public , remote" or "remote" methods invoked -->
<method-access-level>remote</method-access-level>
</access>
<property-case>
<!-- cfc property names -->
<force-cfc-lowercase>false</force-cfc-lowercase>
<!-- query column names -->
<force-query-lowercase>false</force-query-lowercase>
<!-- struct keys -->
<force-struct-lowercase>false</force-struct-lowercase>
</property-case>
</properties>
</destination>
</service>
</services>
<security>
<login-command class="flex.messaging.security.jrunlogincommand"
server="jrun"/>
</security>
<channels>
<channel-definition id="my-cfamf" class="mx.messaging.channels.amfchannel">
<endpoint uri=" http://localhost:8501{context.root}/flex2gateway/"
class="flex.messaging.endpoints.amfendpoint"/>
<properties>
<polling-enabled>false</polling-enabled>
<serialization>
<custom-deserializer type="typed-object"
class="coldfusion.flash.messaging.io.amf.serializers.typedobjectdeserializer"
/>
</serialization>
</properties>
</channel-definition>
</channels>
<logging>
<target class="flex.messaging.log.consoletarget" level="debug">
<properties>
<prefix>[flex] </prefix>
<includedate>false</includedate>
<includetime>false</includetime>
<includelevel>false</includelevel>
<includecategory>false</includecategory>
</properties>
<filters>
<pattern>endpoint.*</pattern>
<pattern>service.*</pattern>
<pattern>configuration</pattern>
<pattern>message.*</pattern>
</filters>
</target>
</logging>
<system>
<locale>
<default-locale>en</default-locale>
<supported-locale>de</supported-locale>
<supported-locale>fr</supported-locale>
<supported-locale>es</supported-locale>
</locale>
<redeploy>
<enabled>true</enabled>
<watch-interval>20</watch-interval>
<watch-file>{context.root}/web-inf/flex/flex-enterprise-services.xml</watch-file>
<touch-file>{context.root}/web-inf/web.xml</touch-file>
</redeploy>
</system>
</services-config>
--
wally kolcz
mynextpet.org
founder / developer
586.871.4126
More discussions in Flex (Read Only)
adobe
Comments
Post a Comment