I need to deploy webapp on Tomcat 6.0.24, serving some web services that should be accessed using REST style methods (not fully REST, since the Flex HTTPService class used can just send GET and POST).
Web services are deployed to http://localhost:8080/-webappname-/rest/-methodname-
The problem is that the flex sandbox policy (I think it's called that) requires the service server to offer the crossdomain.xml file in its root directory.
I created this file with the following contents:
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<site-control permitted-cross-domain-policies="all"/>
<allow-access-from domain="*" />
<allow-http-request-headers-from domain="*" headers="*"/>
</cross-domain-policy>
Now I have to find the right place to host it, since I also have an Apache server running on this computer on port 80:
- in / var / www apache? Available through
http://localhost/ - in default ROOT for tomcat webapp? Available in
http://localhost:8080/
, , , . , .
PS: , Apache Tomcat, , .
, . , .