Question

I am trying to access a webservice from Flex. The webserivce is deployed on Glassfish 3.1 application server. Now, Flex needs a "crossdomain.xml" file at the root (top-level) of the server.

Here is the problem: I searched and found that the crossdomain file should be inside the docroot directory (c:\Glassfish3\Glassfish\domains\domain1\docroot). That is exactly the where I put it, and yet I get a 404 when I try to reach it.

I also tried putting it under applications but it didn't work.

What should I do?

Thank you, Ido

Was it helpful?

Solution

OK, I found the answer, though I'm not sure that this is recommended.

Inside Glassfish admin console, under configurations --> server-config --> Network config --> http-listener-1.

I changed the address from "0.0.0.0" to the actual IP address of the server.

Now It works fine and I am getting access to crossdomain.xml, but as I said, I am not so sure that this action is recommended and won't make other errors.

Thank you.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top