Hi,

What do you see when you put the url (
http://localhost:8080/WebContent/messagebroker/) on your browser?

Regards,
Venkat
www.venkatv.com

On Fri, Nov 28, 2008 at 5:10 AM, jozeFlex <[EMAIL PROTECTED]> wrote:

>
> Hello, I've been trying to integrate Java Flex and Spring for about
> two days and I'm desesperate right now... I think it's all in the
> right please by I keep getting this message.
>
> I'm using apache tomcat + eclipse + flex builder, my remote-config.xml
> is this one:
> <?xml version="1.0" encoding="UTF-8"?>
>
> <service id="remoting-service"
> class="flex.messaging.services.RemotingService">
>    <default-channels>
>        <channel ref="my-amf"/>
>    </default-channels>
>
>        <destination id="mortgageService">
>            <properties>
>                <factory>spring</factory>
>                <source>mortgageBean</source>
>            </properties>
>        </destination>
> </service>
>
> my services-config.xml looks like this:
> <?xml version="1.0" encoding="UTF-8"?>
> <services-config>
>        <factories>
>        <factory id="spring" class="flex.samples.factories.SpringFactory"/
> >
>        </factories>
>        <services>
>        <service-include file-path="remote-config.xml" />
>    </services>
>    <channels>
>        <channel-definition id="my-amf"
> class="mx.messaging.channels.AMFChannel">
>            <endpoint url="http://{server.name}:{server.port}/
> {context.root}/messagebroker/amf"
> class="flex.messaging.endpoints.AMFEndpoint"/>
>        </channel-definition>
>        <channel-definition id="my-http"
> class="mx.messaging.channels.HTTPChannel">
>            <endpoint url="http://{server.name}:{server.port}/
> {context.root}/messagebroker/http"
> class="flex.messaging.endpoints.HTTPEndpoint"/>
>        </channel-definition>
>     </channels>
>
> </services-config>
>
>
> and my mxml looks like that:
>
> <?xml version="1.0" encoding="utf-8"?>
> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";>
>
>        <mx:RemoteObject id="ro" destination="mortgageService"/>
>        <mx:TextInput id="amount"/>
>        <mx:Button label="Calculate" click="ro.calculate(Number
> (amount.text))"/>
>        <mx:TextInput id="monthlyPayment" text="{ro.calculate.lastResult}"/>
>
> </mx:Application>
>
>
> It's a really simple application and I don't know why I keep getting
> this message:
>
>        [RPC Fault faultString="Send failed"
> faultCode="Client.Error.MessageSend"
> faultDetail="Channel.Connect.Failed error NetConnection.Call.Failed:
> HTTP: Failed: url: 'http://localhost:8080/WebContent/messagebroker/
> amf'"]
>        at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/
> internal::faultHandler()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx
> \rpc\AbstractInvoker.as:216]
>        at
> mx.rpc::Responder/fault()[E:\dev\3.0.x\frameworks\projects\rpc\src
> \mx\rpc\Responder.as:49]
>        at mx.rpc::AsyncRequest/fault()[E:\dev\3.0.x\frameworks\projects\rpc
> \src\mx\rpc\AsyncRequest.as:103]
>        at mx.messaging::ChannelSet/faultPendingSends()[E:\dev\3.0.x
> \frameworks\projects\rpc\src\mx\messaging\ChannelSet.as:1399]
>        at mx.messaging::ChannelSet/channelFaultHandler()[E:\dev\3.0.x
> \frameworks\projects\rpc\src\mx\messaging\ChannelSet.as:935]
>        at flash.events::EventDispatcher/dispatchEventFunction()
>        at flash.events::EventDispatcher/dispatchEvent()
>        at mx.messaging::Channel/connectFailed()[E:\dev\3.0.x\frameworks
> \projects\rpc\src\mx\messaging\Channel.as:997]
>        at
> mx.messaging.channels::PollingChannel/connectFailed()[E:\dev\3.0.x
> \frameworks\projects\rpc\src\mx\messaging\channels\PollingChannel.as:
> 354]
>        at mx.messaging.channels::AMFChannel/statusHandler()[E:\dev\3.0.x
> \frameworks\projects\rpc\src\mx\messaging\channels\AMFChannel.as:369]
>
> any ideas? I'm really looking forward to integrate java and flex but I
> can't make it work
>
> any help would be really appreciate :)
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to flex_india@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to