I have been developing an application(a website to be more precise) which consists of a flex front end which is constantly sending and receiving data from the back end which is programmed in java. The connection between the two components is being done through blazeds. This worked fine while I was running it locally, however when I uploaded both sides of the application to a tomcat server(online) the following error is being returned when a connection between the components should occur:
Channel.Security.Error error Error #2048
url:'http://localhost:8080/blazeds/messagebroker/amf'
I have read around about this error and many seem to getting this error when making connections between different servers, unlike here, where the connection is occurring within the same server.
Could any one enlighten me as to what I can do in order to solve this issue.
Thanks In advance
I'm assuming that you are no longer running on localhost
. That error is indeed saying that your flex app is trying to contact your services from a different domain than the one it was loaded from. How do you have things configured in your services-config.xml file? The endpoint url should be something like...
http://{server.name}:{server.port}/{context.root}/messagebroker/amf
...with the brackets. It will then substitute the values that you are running from, rather than something hard coded.