Expand my Community achievements bar.

RemoteObject failure to connect error

Avatar

Former Community Member
I'm getting a "Couldn't establish a connection to
'javaWeatherInfo'" when trying to access a remote object with a
destination ID of 'javaWeatherInfo'. The destination is defined in
remoting-config.xml and associated class is in the WEB-INF/classes
directory. I'm using Tomcat as a server. Anyone know what causes
this error?
1 Reply

Avatar

Former Community Member
Many things could be the cause...



1. If you're not programmatically creating your own
ChannelSets, did you

provide a -services command line argument pointing to the
/WEB-INF/flex/services-config.xml

file when compiling your Flex application?



2. Are you sure that the hostname and port used to load the
SWF are the same

as the channel endpoint URLs? If they are not the same, do
you have a crossdomain.xml

policy file setup in the webroot?



3. Did you check the server logs to see whether there were
any configuration

failures reported on server startup?