Hello,
I have just a (hope so) little problem with the dreaded crossdomain.xml in conjunction with running tomcat (localhost:8080) problem.
Here my settings. I use tomcat as the application server and created a java rest service.
I placed my crossdomain.xml in the webapp folder. It is accessible via http://localhost:8080/crossdomain.xml and has following content:
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-access-from domain="*" />
</cross-domain-policy>When i use in my ova.xml file
"type": "OpenX",
"apiAddress": "http://localhost:8080/vast.xml",The tracking event in the vast file gets fired!
00:55:03 GMT+0100 NetworkResource: Making HTTP call to http://localhost:8080/api/vasteventtracking/1.0/vast/999/=complete
00:55:03 GMT+0100 Debuggable: PLUGIN NOTIFICATION: Request received that a tracking point was fired (EA) at 4700 milliseconds
00:55:03 GMT+0100 NetworkResource: HTTP call complete (to primaryAdServer) - 0 bytes loadedWhen i use instead the rest webservice:
"type": "OpenX",
"apiAddress": "http://localhost:8080/api/ovaconfig/1.0/vast/999"I get when the tracking event gets fired following error:
0:44:24 GMT+0100 NetworkResource: Making HTTP call to http://localhost:8080/api/vasteventtracking/1.0/vast/999/complete
00:44:24 GMT+0100 Debuggable: PLUGIN NOTIFICATION: Request received that a tracking point was fired (EA) at 4700 milliseconds
00:44:24 GMT+0100 NetworkResource: HTTP ERROR: [SecurityErrorEvent type="securityError" bubbles=false cancelable=false eventPhase=2 text="Error #2048"]I can not see why it is working (with the same vast) when i link on a xml file placed in the root and using a webservice?
Maybe Paul you can help me? I am really stucked here...
Cheers,
D
Hi,
Ok, my feeling is that it is a crossdomain issue related to the way Tomcat is setup, but let's see if we can narrow it down.
Here's what I recommend:
1) Use Firebug with Firefox to view the Network traffic (or the Chrome Developer Tools but I find Firebug better)
2) Specifically, when connecting to the Tomcat REST Service, have a look at what is happening with the network call to get the "crossdomain.xml" file.
My guess is that you are getting a "404 Not Found" when it's requesting the crossdomain on the REST service ... but it's just a guess....
Paul