Solved

SWF accessing blazeds from another domain

Posted on 2012-03-15
3
502 Views
Last Modified: 2012-04-11
We have a pure as3 - no flex - swf that we wish to connect to our BlazeDS back end.  We know that the swf works, and that it does connect to the back end.  However, we have recently moved only the swf to a different server, and it is no longer accessing BlazeDS correctly.  This is the error we are getting when we try:

[ChannelFaultEvent faultCode="Channel.Security.Error" faultString="error" faultDetail="Error #2048 url: 'http://ourdomain:port/blazeds/messagebroker/amf'" channelId="my-amf" type="channelFault" bubbles=false cancelable=false eventPhase=2]

where ourdomain and port are obviously replaced with the correct values.  

The endpoint url in services-config.xml is not hard coded, it is set to http://{server.name}:{server.port}/ etc.  We have tried setting the crossdomain xml to allow all, and are still getting this error.  How can we make the swf conncet to our BlazeDS again from any server we house it on?
0
Comment
Question by:anotherfn
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 29

Expert Comment

by:dgofman
ID: 37749961
Use crossdomain.xml and set System.allowDomain("*");


http://www.adobe.com/devnet/articles/crossdomain_policy_file_spec.html
0
 

Author Comment

by:anotherfn
ID: 37765206
We've got a crossdomain policy xml file already set to allow all domains, and yet this still isn't working.
0
 
LVL 8

Accepted Solution

by:
section25 earned 500 total points
ID: 37767865
My cross domain policy didn't start working until I added the third line. Copy and paste this one and see if it works for you too.


<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
    <site-control permitted-cross-domain-policies="all" />
    <allow-access-from domain="*" />
    <allow-http-request-headers-from domain="*" headers="*"/>
</cross-domain-policy>

Also, make sure this is at the root of the site.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Why doesn't this text field show up on my Applet frame? 2 40
How to configure empty element in XML Document parser? 15 57
collection output issue 9 90
type of website 13 49
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
In this post we will learn different types of Android Layout and some basics of an Android App.
The goal of the tutorial is to teach the user how to how to record live broadcast.
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.
Suggested Courses

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question