Thursday, April 9, 2009

endpoint issue is not end of the road

errors like..

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'" 

can be resolved in a single step..

First ensure you don't modify anything in the service config file.. Leave the poor guy alone.
Then right click on your project ---> go to properties -> flex server ==> servercontextrooot --> 

Give it the same name as your project

if your project is Fantastico

your server root will be 

/Fantastico..

Now you are good to go on any server any place blazeDs or LCDS no issue

2 comments:

stanb said...

Thanks a lot. You saved my day. The Flex Builder puts the /WebContent as the Root Context and it took me almost an hour to figure out why it doesn't fine the remote object.

Shalini said...

I want to remove end point url from the flex application remoteobject tag. But when I tried your suggection it gave me the following error.


[RPC Fault faultString="[MessagingError message='Destination 'testSpring' either does not exist or the destination has no channels defined (and the application does not define any default channels.)']" faultCode="InvokeFailed" faultDetail="Couldn't establish a connection to 'testSpring'"]
at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::invoke()[E:\dev\4.5.1\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:388]
at mx.rpc.remoting::Operation/http://www.adobe.com/2006/flex/mx/internal::invoke()[E:\dev\4.5.1\frameworks\projects\rpc\src\mx\rpc\remoting\Operation.as:287]
at mx.rpc.remoting::Operation/send()[E:\dev\4.5.1\frameworks\projects\rpc\src\mx\rpc\remoting\Operation.as:254]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at mx.rpc::AbstractService/http://www.adobe.com/2006/actionscript/flash/proxy::callProperty()[E:\dev\4.5.1\frameworks\projects\rpc\src\mx\rpc\AbstractService.as:408]
at Flex_Client/___Flex_Client_Button1_click()[E:\eclipse_projects\Flex_Client\src\Flex_Client.mxml:11]