Brendan
On 9/25/06,
Mete Atamel <[EMAIL PROTECTED]> wrote:
How are you compiling your mxml? Are you pointing to the services-config.xml during compilation?
-Mete
Brendan Meutzner < [EMAIL PROTECTED]> wrote:class="flex.messaging.services.RemotingService"Hi Jeff,
Sorry to keep bugging you about this, but something in my brain obviously isn't connecting. I see from your example below that my structure is correct, although I am doing this with CF. Here's where I'm at:
1) the services-config.xml file on both my local dev machine and my production box are identical.
2) When I compile the application to use my local machine (which has a CF instance on it) everything works fine. (this is the 'myMachine' instance). I set up the CF instances exactly the same.
3) When I compile to use either of my production servers (production1 or production2) is when I receive the error "No Destination 'production1'/'production2' exists in service flex.messenging.services.RemotingService "
I'm attaching a copy of my services-config.xml file, as well as the trace output from the call attempt. Also attaching a copy of the crossdomain.xml file that exists on all instances. I'm sure this is something minor, but I'm missing it.
Thanks for your help,
BrendanOn 9/22/06, Jeff Vroom < [EMAIL PROTECTED]> wrote:Sure, check out samples/WEB-INF/flex/remoting-config.xml and the services-config.xml in that directory. The pattern we ship the samples with splits out the destination definitions of remoting, proxy, messaging, and data-management into different config files each of which are included by services-config.xml. So the services-config.xml looks like:<services><service-include file-path="remoting-config.xml" /><service-include file-path="proxy-config.xml" /><service-include file-path="messaging-config.xml" /><service-include file-path="data-management-config.xml" /></services>And then remoting-config.xml would look like:<?xml version="1.0" encoding="UTF-8"?><service id="remoting-service"class="flex.messaging.services.RemotingService"messageTypes="flex.messaging.messages.RemotingMessage"><adapters><adapter-definition id="java-object" class="flex.messaging.services.remoting.adapters.JavaAdapter" default="true"/></adapters><default-channels><channel ref="my-amf"/></default-channels><destination id="database"><properties><source>samples.sqladmin.DatabaseService</source></properties></destination><destination id="dashboard_feed_control"><properties><source>samples.dashboard.Feed</source><scope>application</scope></properties></destination></service>This is for the Java adapter though… do you need a CF specific configuration sample?Jeff
From: [EMAIL PROTECTED] ups.com [mailto: [EMAIL PROTECTED] ups.com] On Behalf Of Brendan Meutzner
Sent: Friday, September 22, 2006 3:02 PM
To: [EMAIL PROTECTED] ups.com
Subject: Re: [flexcoders] Re: services-config.xml No Destination FoundJeff,
I believe you've put me on the right track now... however, would you be able to provide me with a sample of a services-config.xml file which has more than one destination and channel defined?
Thanks,
Brendan
On 9/22/06, Jeff Vroom < [EMAIL PROTECTED]> wrote:Hi Brendan,That message is being generated from the server. I take it the error is actually:"No destination 'CF_SFProdServer' exists in service flex.messaging.services.RemotingService"If that is the case, take a look at the <destination name="CF_SFProdServer"> tag in your services-config.xml file. That should exist inside of a tag that looks like:<service id="remoting-service"class="flex.messaging.services.RemotingService"messageTypes="flex.messaging.messages.RemotingMessage">… your <destination> tag should be here ….</service>The class and messageTypes attributes should match exactly… the "id" is not important. Destination names are scoped both by the class of message(s) they receive as well as the type of service that is defining that destination. Both of those are going to have to match what the server expects or the message is not going to get delivered. It looks like your destination is just being defined as part of the wrong service, or maybe it has the wrong messageTypes?I hope this helps.Jeff
From: [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED] ups.com] On Behalf Of Brendan Meutzner
Sent: Friday, September 22, 2006 12:05 PM
To: [EMAIL PROTECTED]ups.com
Subject: Re: [flexcoders] Re: services-config.xml No Destination FoundHi Jeff,
I'm getting "No destination 'detinationName' exists in service flex.messaging.services.RemotingService"
Here's a snippet of the TraceTarget output...
'14A6969C-42E5-E3CA-9BA4-D6D63C8631BA' producer sending message 'A48825BE-FD16-7223-221D-D6D674320226'
'SFProdServer' channel endpoint set to http:// SFProdServer.xxx.com/flex2gateway/
'SFProdServer' channel settings are:
<channel id="SFProdServer" type="mx.messaging.channels.AMFChannel">
<endpoint uri="http:// SFProdServer.xxx.com/flex2gateway/"/>
<properties>
<polling-enabled>false</polling-enabled>
</properties>
</channel>
' SFProdServer' pinging endpoint.
' SFProdServer' channel is connected.
'SFProdServer' channel sending message:
(mx.messaging.messages::RemotingMessage)#0
body = (Array)#1
[0] "<reportXML></reportXML>"
clientId = (null)
destination = " CF_SFProdServer"
headers = (Object)#2
messageId = "A48825BE-FD16-7223-221D-D6D674320226"
operation = "saveXML"
source = " reports.cf.cfc.metricXML"
timestamp = 0
timeToLive = 0
'14A6969C-42E5-E3CA-9BA4-D6D63C8631BA' producer connected.
'14A6969C-42E5-E3CA-9BA4-D6D63C8631BA' producer acknowledge of 'A48825BE-FD16-7223-221D-D6D674320226'.
'14A6969C-42E5-E3CA-9BA4-D6D63C8631BA' producer fault for 'A48825BE-FD16-7223-221D-D6D674320226'.
Everything is in order as far as I can tell.
Thanks,
Brendan
On 9/21/06, Jeff Vroom < [EMAIL PROTECTED]> wrote:Can you provide the exact error you are seeing? We have "Unknown destination 'x' and 'x' is not a valid destination. It also might help to turn on debug logging on the client… you do this by adding the MXML tag: <mx:TraceTarget/> then look in your flashlog.txt file.Jeff
From: [EMAIL PROTECTED] ups.com [mailto: [EMAIL PROTECTED] ups.com] On Behalf Of Brendan Meutzner
Sent: Thursday, September 21, 2006 2:46 PM
To: [EMAIL PROTECTED] ups.com
Subject: [flexcoders] Re: services-config.xml No Destination FoundSorry... maybe some code might help elicit a response...
My call:
<mx:RemoteObject id="metricXML" destination="CF_SFProdServer" source="com.cnet.reports.cfc.config.metricXML ">
<mx:method name="saveXML" result="saveXMLResult(event)" fault="saveXMLFault(event)" />
</mx:RemoteObject>
My services-config.xml (snippet):
<destination id="CF_SFProdServer">
<channels>
<channel ref="SFProdServer"/>
</channels>
<properties>
<source>*</source>
<!-- define the resolution rules and access level of the cfc being invoked -->
<access>
<!-- Use the ColdFusion mappings to find CFCs, by default only CFC files under your webroot can be found. -->
<use-mappings>false</use-mappings>
<!-- allow "public and remote" or just "remote" methods to be 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>
<channel-definition id="SFProdServer" class="mx.messaging.channels.AMFChannel ">
<endpoint uri=" http://SFProdServer.xxx.com/flex2gateway/" class="flex.messaging.endpoints.AMFEndpoint"/>
<properties>
<polling-enabled>false</polling-enabled>
<serialization>
<instantiate-types>false</instantiate-types>
</serialization>
</properties>
</channel-definition>
and to add to my previous list...
6) Browsing to http://SFProdServer.xxx.com/flex2gateway/ gives me the usual blank page, so I assume it's working...
Thanks,
BrendanOn 9/21/06, Brendan Meutzner < [EMAIL PROTECTED]> wrote:I'm seriously at my wits end... I love CF, but I hate CF...
I have my services-config.xml file setup with 2 destinations, one pointing to my local dev CF server and the other to a production server. I can get my local dev connection to work, but continue to receive the No Destination Found error for my production server.
I am 100% positive on the following:
1) My test CFC file I'm trying to reach exists, and I'm referencing it in the right location.
2) My local and production servers are configured and installed identically...
3) The destination and chanel definitions exist in my services-config.xml file, and the most recent file is getting compiled with my app (I've traced the ServerConfig.xml content)
4) I had this working just fine with CF 7.01 and the B4 updated for cf_flex connectivity (i'm moving my production environment which is why i'm re-installing).
5) I've read all the threads on this issue, and nothing has helped thus far.
I may have missed some points, but I'm 100% positive on them too (whatever they are).
Please God (aka the appropriate Adobe employee) help...
Brendan
Also, I haven't gotten to this point yet because of the difficulties above, but does anybody have an example of how to use CF mapping in the destination reference (so I can avoid figuring it out via trial and error)... thx
messageTypes="flex.messaging.messages.RemotingMessage ">
*
false
remote
false
false
false
*
false
remote
false
false
false
*
false
remote
false
false
false
false
false
false
false
false
false
[Flex]
false
false
false
false
Endpoint.*
Service.*
Configuration
Message.*
false
false
false
'06745752-B9BA-2517-9516-E5CC13B87C9A' producer sending message 'EA33A775-4362-D797-C9B4-E5DCD9E01CCC'
'sfreportdev2' channel sending message:
(mx.messaging.messages::RemotingMessage)#0
body = (Array)#1
[0] "..."
clientId = (null)
destination = "production1"
headers = (Object)#2
messageId = "EA33A775-4362-D797-C9B4-E5DCD9E01CCC"
operation = "saveXML"
source = " reports.cf.cfc.metricXML"
timestamp = 0
timeToLive = 0
'06745752-B9BA-2517-9516-E5CC13B87C9A' producer acknowledge of 'EA33A775-4362-D797-C9B4-E5DCD9E01CCC'.
'06745752-B9BA-2517-9516-E5CC13B87C9A' producer fault for 'EA33A775-4362-D797-C9B4-E5DCD9E01CCC'.
How low will we go? Check out Yahoo! Messenger's low PC-to-Phone call rates.
__._,_.___
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
![]()
SPONSORED LINKS
Software development tool Software development Software development services Home design software Software development company
Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe
__,_._,___
- Re: [flexcoders] Re: services-config.xml No Destination F... Brendan Meutzner
Reply via email to

