This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Flex and the fly likes Security error accessing url Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Flex
Bookmark "Security error accessing url" Watch "Security error accessing url" New topic

Security error accessing url

Siddhesh Deodhar
Ranch Hand

Joined: Mar 05, 2009
Posts: 118
Hi All

I am having a Web Application running a servlet returning some xml output to a Flex application which is accessing the Servlet using HttpService.
Things work fine when both servlet application and flex application are running on my machine.

I have declaration of service as follows

I created one more web project "FlexClient" on same Tomcat server and dumped content of bin-debug(output of my Flex application) to web content folder of this new project.
Now I am accessing flex application file as follows using URL http://<my ip>:8181/FlexClient/samplehttp.html.
Again, Flex application works fine if I open the above URL on my machine browser.

Now if I open this URL (http://<my ip>:8181/FlexClient/samplehttp.html.) from some other machine, I get error "Security error accessing url" .

I tried searching on the net about this problem most of the people resolved the issue by adding crossdomain.xml file.
I tried adding crossdomain file but still I am not able to resolve the issue.

my crossdomain file is like follows

I have added crossdomain file to WebContent folder and also to conf and ROOT folders of my Tomcat.

Please let me know what more changes I need to do to resolve this.

Note :
I have copied crossdomain.xml to "FlexClient" project's WebContent directory on my tomcat.
I am able to access servlet and view the output from other machines. So issue is not related to network

Good, Better, Best, Don't take rest until, Good becomes Better, and Better becomes Best.
Sidd : (SCJP 6 [90%] )
I agree. Here's the link:
subject: Security error accessing url
It's not a secret anymore!