This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
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.
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%] )