Hey, I figured my problem out. After digging through the debug
objects, I noticed it was attempting to access
"http://localhost:8700/messagebroker/amf";  note that the URI was
missing the context.root. Since the endpoint was defined as
"http://{server.name}:{server.port}/{context.root}/messagebroker/amf";
I knew something wasn't setting the context.root token.

I then found the compiler argument -context-root for specifying this.
Setting it in the Flex Builder compiler settings worked for me.

see: http://livedocs.macromedia.com/flex/2/docs/00001500.html#157203

hope this helps,
Thunder

--- In flexcoders@yahoogroups.com, "thunderstumpgesatwork"
<[EMAIL PROTECTED]> wrote:
>
> Hey, I'm getting the same exact error. Have you had any luck fixing
> this? It's an HTTP-404 error... seems like it just can't find the
> channel location, but I'm pretty sure it's set up correctly (the
> default)...
> 
> Have you come across a fix? I'll definitely post something up if I
> figure it out....
> 
> cheers,
> Thunder
> _____________
> 
> 
> Channel definition: (default)
> 
> <channel-definition id="my-amf"
class="mx.messaging.channels.AMFChannel">
>     <endpoint
>
uri="http://{server.name}:{server.port}/{context.root}/messagebroker/amf";
> class="flex.messaging.endpoints.AMFEndpoint"/>
>     <properties>
>         <polling-enabled>false</polling-enabled>
>     </properties>
> </channel-definition>
> 
> 
> Endpoint definition:
> <default-channels>
>     <channel ref="my-amf"/>
> </default-channels>
> 
> <destination id="queryManagerRO">
>     <properties>
>         <!-- the java class name of the destination -->
>         <source>com.package.QueryManager</source>
>     </properties>
> </destination>
> 
> 
> --- In flexcoders@yahoogroups.com, "arianrechia" <arianrechia@> wrote:
> >
> > I am trying to setup Remote Services using Flex2 Data Services with
> > integrated JRUN and Flex Builder2.
> > 
> >  Unfortunately, I am receiving the following error:
> > 
> >  faultDetail = "Channel.Connect.Failed error NetConnection.Call.Failed
> > 
> > the error message:
> > (mx:rpc:Fault)#0
> > errorID = 0
> > faultCode = "Client.Error.MessageSend"
> > faultDetail = "Channel.connect.Failed error NetConnection.Call.Failed:
> > HTTP: Failed"
> > FaultString = "Send Failed"
> > message = "faultCode: Client.Error.MessageSend
> >        faultString:'Send Failed'
> >        faultDetail:'Channel.Connect.Failed error
> > NetConnection.Call.Failed: HTTP:Failed'
> > name = "Error"
> > rootCause = (Objet)#1
> > code = "NetConnection.Call.Failed"
> > description = "HTTP:Failed"
> > details = "http://localhost:8700/messagebroker/amf";
> > level = "error"
> >  
> >  In the JRUN window, it logs the following:
> > 
> >  error Requested resource '/messagebroker/amf' <%2fmessagebroker%famf>
> > not found
> > 
> > my remoting-config.xml:
> > <destination id="test">
> >     <properties>
> >             <source>com.package.Test</source>
> >             <scope>application</scope>
> >     </properties>
> > </destination>
> > 
> > my AScript remote-object:
> > var remoteObj:RemoteObject = new mx.rpc.remoting.RemoteObject();
> > remoteObj.destination = "test";                     
> > remoteObj.source = "com.package.Test";
> > remoteObj.addEventListener("result",handleResult);
> > remoteObj.addEventListener("fault",handleError);
> > 
> >  Any ideas?
> >
>






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to