File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
JavaRanch » Java Forums » Frameworks » Flex
Bookmark "Security error accessing url" Watch "Security error accessing url" New topic
Author

Security error accessing url

Siddhesh Deodhar
Ranch Hand

Joined: Mar 05, 2009
Posts: 117
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%] )
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Security error accessing url