Clientaccesspolicy.xml to be found under a port on Tomcat

301 views Asked by At

I am running a Tomcat 6 server configured to use port 7787.I have to post data from a Silverlight app to a servlet running on this server.Ofcourse this is crossdomain so it requires me to have clientaccesspolicy.xml in the root.

I have seen various questions about this here and on the web and all have the same answer.To put the xml in webapps/ROOT.This works if I try to access the xml via

http://somedomain/ 

However since the servlet is running on port 7787 I have to post to somedomain:7787 and thus Silverlight tries to find the xml under

http://somedomain:7787/

This is unsuccesfull.

I am sure that Silverlight does indeed check somedomain:7787 for the xml as I used Firebug to confirm it.Is there anything in Tomcats configuration I can change or somewhere else I can place the xml so Silverlight can find it under port 7787.Or is there perhaps something I can change on the Silverlight side where the POST is being done?

1

There are 1 answers

0
John Qi On

On Windows machine simply copy the two security files to Tomcat's webapps/ROOT folder As long as you can get response from ...:7787/crossdomain.xml, anyway solution is OK. Looks like Silverlight only cares about the response.

I created a Silverlight client and it is OK to get response both from WCF service and Tomcat.