Hi everyone,

My problem got solved. Thanks a lot for pointing me in the right direction.
For all newbies lime me, I think I should document how this thing worked.
The link that contains all the details for Flash Player 10 is:

http://code.google.com/p/assql/wiki/SecurityInformation
http://code.google.com/p/assql/wiki/SecurityInformation 

I just modified the java Servlet according to my needs, one of them being
making it auto-load. For this I edited / mapped it in web.xml such that it
auto-loads every time we start tomcat. Also I placed the flashpolicy.xml
file at my tomcat root and changed the Java code accordingly. And that's it.
No Sandbox exceptions after that.

Regards,
Gaurav


Tracy Spratt wrote:
> 
> The crossdomain file goes in the root of the server serving the *data*.
> So if you go to a browser and type in: http://gauravt-xp:3306
> <http://gauravt-xp:3306/> /crossdomain.xml, you should see your
> crossdomain file in the browser.
> 
>  
> 
> If you are using WebService protocol, there are other settings that
> might be needed, particularly if you use headings. These entries may be
> needed in the crossdomain file:
> 
> <allow-http-request-headers-from domain="*" headers="*" />
> 
> <site-control permitted-cross-domain-policies="master-only"/>
> 
>  
> 
> Tracy Spratt 
> Lariat Services 
> 
> Flex development bandwidth available 
> 
> ________________________________
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> Behalf Of GeeTee
> Sent: Tuesday, January 27, 2009 2:22 PM
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] Flex and asSQL - Crossdomain issue?
> 
>  
> 
> 
>> The cross domain works differently with player 9 and player 10.
> 
> I am using Flash Player 10 plugin. The error dialog that shows up says
> "Error #2044: Unhandled ioError:. text=Error #2048: Security sandbox
> violation:
> http://gauravt-xp:8080/MonitoringCompleteResults/OLS_Monitoring_Complete
> Results.swf
> <http://gauravt-xp:8080/MonitoringCompleteResults/OLS_Monitoring_Complet
> eResults.swf> 
> cannot load data from gauravt-xp:3306."
> 
>> you could try
>> 
>> 
>> 
>> http://gauravt-xp:8080/crossdomain.xml
> <http://gauravt-xp:8080/crossdomain.xml>  but I'm not sure it will 
>> work.
> 
> Well I am able to access the crossdomain.xml file in this way. It
> correctly
> shows up.
> 
>> In your cross domain add the 'all ports', if you are just 'testing' 
>> you
>> can leave it wide open :
>> <cross-domain-policy>
>> 
>> <allow-access-from domain="*" to-ports="*"/>
>> 
>> </cross-domain-policy>
> 
> Even this did not help. I place this in the cross domain file in
> "webapps/root" folder of tomcat.
> 
> Thanks to both of you for the quick response.
> Gaurav
> 
> ilikeflex wrote:
>> 
>> Make sure which player you are using?
>> 
>> The cross domain works differently with player 9 and player 10.
>> 
>> --- In flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com> , "Grant Davies" <gr...@...>
> wrote:
>>>
>>> I would suspect the same, add a crossdomain in the root of your 
>> site (or
>>> you can use a policy element to put it somewhere else but more 
>> fiddly)
>>> 
>>> 
>>> 
>>> In your cross domain add the 'all ports', if you are just 'testing' 
>> you
>>> can leave it wide open :
>>> 
>>> 
>>> 
>>> <cross-domain-policy>
>>> 
>>> <allow-access-from domain="*" to-ports="*"/>
>>> 
>>> </cross-domain-policy>
>>> 
>>> 
>>> 
>>> It should be accessible via
>>> 
>>> 
>>> 
>>> http://gauravt-xp/crossdomain.xml <http://gauravt-xp/crossdomain.xml>
> 
>>> 
>>> 
>>> 
>>> you could try
>>> 
>>> 
>>> 
>>> http://gauravt-xp:8080/crossdomain.xml
> <http://gauravt-xp:8080/crossdomain.xml>  but I'm not sure it will 
>> work.
>>> 
>>> 
>>> 
>>> I'm pretty sure flash requests the crossdomain file on port 80 
>> (maybe
>>> override-able by a policy file), but my sites all run on port 80 so 
>> not
>>> messed with it in a while.
>>> 
>>> 
>>> 
>>> A good way to see whats going on is using the Charles httpd 
>> debugging
>>> proxy to monitor the traffic and see if it request a cross domain 
>> xml
>>> file, if it does and your applications fails right after that then 
>> you
>>> can be sure it's a silent failure due to the policy file.
>>> 
>>> 
>>> 
>>> Cheers
>>> 
>>> Grant
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> ...........................................
>>> 
>>> > b l u e t u b e i n t e r a c t i v e.
>>> 
>>> .: Development solutions for creatives :.
>>> 
>>> .: grant davies
>>> 
>>> .: 404.428.6839 (c)
>>> 
>>> .: 404.921.9550 (F)
>>> 
>>> > gr...@...
>>> 
>>> http://www.bluetubeinteractive.com
> <http://www.bluetubeinteractive.com> 
>>> 
>>> 
>>> 
>>> From: flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com>  
>> [mailto:flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com> ] On
>>> Behalf Of GeeTee
>>> Sent: Tuesday, January 27, 2009 1:55 PM
>>> To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> 
>>> Subject: [flexcoders] Flex and asSQL - Crossdomain issue?
>>> 
>>> 
>>> 
>>> 
>>> Hi everyone,
>>> 
>>> Yesterday I developed my first flex 3 app and placed the "Release 
>> build"
>>> in
>>> the webapps folder of tomcat (5.5.26). The application is quite 
>> simple
>>> and
>>> just needs to populate the datagrid with the data in MySQL (which 
>> is on
>>> the
>>> same machine on port 3306). I have used asSQL to communicate. When 
>> run
>>> from
>>> flex builder, I get the app to work perfectly. But on accessing the 
>> URL
>>> "http://gauravt-xp:8080/MyAppsName/MyHTML.html
> <http://gauravt-xp:8080/MyAppsName/MyHTML.html> ", I get a blank 
>> datagrid.
>>> 
>>> My suspicion is that this is related to crossdomain.xml file. Am I 
>> right
>>> with this? If yes where should I place it?
>>> 
>>> I searched on the forum and could not find a definitive answer. The
>>> crossdomain file that I have created looks like:
>>> <?xml version="1.0"?>
>>> <!DOCTYPE cross-domain-policy SYSTEM
>>> "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd
> <http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd> ">
>>> <cross-domain-policy>
>>> <allow-access-from domain="gauravt-xp" to-ports="8080,3306" />
>>> </cross-domain-policy>
>>> 
>>> I tried placing it in the "webapps" and "webapps/ROOT" folder of 
>> tomcat
>>> but
>>> data was not populated.
>>> 
>>> Thanks in advance for the help.
>>> Gaurav
>>> 
>>> -- 
>>> View this message in context: 
>>> http://www.nabble.com/Flex-and-asSQL---Crossdomain-issue--
> <http://www.nabble.com/Flex-and-asSQL---Crossdomain-issue--> 
>> tp21691913p216
>>> 91913.html
>>> Sent from the FlexCoders mailing list archive at Nabble.com.
>>> 
>>> 
>>> 
>>> No virus found in this incoming message.
>>> Checked by AVG - http://www.avg.com <http://www.avg.com> 
>>> Version: 8.0.176 / Virus Database: 270.10.13/1912 - Release Date:
>>> 1/27/2009 7:26 AM
>>>
>> 
>> 
>> 
>> 
> 
> -- 
> View this message in context:
> http://www.nabble.com/Flex-and-asSQL---Crossdomain-issue--tp21691913p216
> 92447.html
> <http://www.nabble.com/Flex-and-asSQL---Crossdomain-issue--tp21691913p21
> 692447.html> 
> Sent from the FlexCoders mailing list archive at Nabble.com.
> 
>  
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Flex-and-asSQL---Crossdomain-issue--tp21691913p21707947.html
Sent from the FlexCoders mailing list archive at Nabble.com.

Reply via email to