1) is all this running on one machine?
2) which OS?
3) what does your hosts file say?

I had same problem, "localhost" vs "name.com" 
I am running Apache 2.x not Tomcat on Linux, Flex3

my crossdomain
<?xml version="1.0"?>
<!-- http://john.znyx.com/crossdomain.xml -->
<cross-domain-policy>
<allow-access-from domain="name.domain.com"/>
<allow-access-from domain="localhost"/>
<allow-access-from domain="<ip>"/>
 <allow-access-from domain="domain.com"/>
</cross-domain-policy>

my hosts file
127.0.0.1 localhost name.domain.com
127.0.1.1 name.domain.com
<ip> name   name.domain.com
...

HTH


John


ralcab wrote:
> I am building a Flex (version 2) application on my machine with a 
> Tomcat server that is hosting the application, a couple of servlets 
> and an Axis2 web service.  The application runs fine if I load it 
> from an address starting with http://127.0.0.1:8080.  However, the 
> web-service call will fail if I load the exact same application from 
> http://localhost:8080.  The gives me a "Security error accessing url" 
> Alert.  
>
> I've read in the past that Flash is strict about the interpretations 
> of domains, so I'm not surprised by this behavior.  Further, 
> I am theorizing this is happening because the WSDL file for the 
> service uses the numeric address rather than localhost.  Since that 
> is the only usage of the numeric IP address I can find (all the URLs 
> I have constructed use localhost).
>
> I have a crossdomain.xml file that is reachable 
> at "http://127.0.0.1:8080:8080/crossdomain.xml";.  It's not solving 
> the problem.
>
> The crossdomain file has this format:
>
> <cross-domain-policy>
>    <allow-access-from domain="*" to-ports="*" secure="false"/>
> </cross-domain-policy>
>
> The web service is built using Apache Axis2.  So, its address in the 
> WSDL is: http://l27.0.0.1:8080/axis2/services/TestService.
>
> Is there some special location or content to the policy file that I'm 
> missing?
>
> Thank you.
>
>
>   

Reply via email to