I'm trying to write my first simple FDS application and can't
seem to connect to my Java object to retrieve data to populate a
DataGrid. I'm deploying on a JBoss server and am using Flex Builder
IDE.I know the answer must be pretty simple, but I can't seem to
pinpoint it. Can anybody please take a quick look to see where my
mistake might be? Any help is greatly appreciated. Thank You.The error I'm getting is:[RPC Fault faultString="Send failed"
faultCode="Client.Error.MessageSend"
faultDetail="Channel.Connect.Failed error
NetConnection.Call.Failed: HTTP: Failed"]
at mx.rpc::AbstractInvoker/
http://www.adobe.com/2006/flex/mx/internal::faultHandler() at mx.rpc::Responder/fault()
...
My remoting-config.xml file looks like this:<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="myService">
<properties>
<source>BasicJavaService</source>
</properties>
</destination>
</service>
and my services.config.xml looks like this:<?xml version="1.0" encoding="UTF-8"?>
<services-config>
<services>
<service-include file-path="remoting-config.xml" />
</services>
<channels>
<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>
</channels>
...
</services-config>
My flex-config.xml looks like this:<flex-config xmlns="
http://www.adobe.com/2006/flex-config"> ...
<context-root>/first_fds_app</context-root>
....
</flex-config>
My mxml file look like this:<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"layout="absolute">
<mx:RemoteObject id="myService"
destination="myService"/>
<mx:Label x="345" y="154" text="Hello World!"/>
<mx:Button x="345" y="180" label="Click Me!"
click="myService.getList()"/>
<mx:DataGrid
dataProvider="{myService.getList.lastResult}" x="345" y="210"/>
</mx:Application>
My java object looks like this:public class BasicJavaService {
public List getList() {
List<MyObject> l = new ArrayList<MyObject>();
l.add(new MyObject("str1A", "str1B", "str1C"));
l.add(new MyObject("str2A", "str2B", "str2C"));
l.add(new MyObject("str3A", "str3B", "str3C"));
return l;
}
}