Hi Wim,

I just had a look at this problem. I guess there are several problems coming 
together in this case.
When compiling, Flexmojos will automatically add the target directory to the 
trusted directory list, by updating a file called maven.cfg inside the 
Flashplayers config-directory. The location of this directory depends on the 
type of system. On a windows machine this is:
{user-home}\AppData\Roaming\Macromedia\Flash Player\#Security\FlashPlayerTrust
On a Linux machine:
{user-home}/.macromedia/Flash_Player/#Security/FlashPlayerTrust
On a Mac this is:
{user-home}/Library/Preferences/Macromedia/Flash 
Player/#Security/FlashPlayerTrust

You are running Flexmojos on a Linux machine, so Flexmojos will automatically 
add your moduels target directory to the linux trust file.
So I guess you are running the Windows Flashplayer, so it will look in the 
windows trust-location. It won't find anything there because it would have to 
look in the Linux location. 

What I would suggest to do in this case, would be to manually create the 
Windows directory structure " AppData\Roaming\Macromedia\Flash 
Player\#Security" and then to add a symlink to the linux location, so whenever 
the Windows Flashplayer looks into its windows location, it's actually 
redirected to the Linux trust directory.

After that is done, the Windows Flashplayer will be able to read the Linux 
trust-file and it will know that the SWFs loaded from your target directory 
will be allowed to do whatever it wants and the tests should be able to run.

Hope that helps.

Chris


-----Ursprüngliche Nachricht-----
Von: wim.deblauwe [mailto:[email protected]] 
Gesendet: Dienstag, 24. Dezember 2013 17:03
An: [email protected]
Betreff: Running unit tests with flashplayer under wine

I want to set up a new build machine using Ubuntu 13.10 to build with flexmojos 
6 and Apache Flex. To be able to use a current flash player, I want to use the 
windows flashplayer with wine. I have managed to set this up, but now I get the 
following error popping up when I run the unit tests:

Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox
violation:
file:///Z|/home/wdb/flux/client%2Ddomain/target/test%2Dclasses/TestRunner.swf
cannot load data from 127.0.0.1:42188.
        at
net.flexmojos.oss.unitestingsupport::ControlSocket/connect()[D:\Projects\flexmojos6\trunk\target\checkout\flexmojos-testing\flexmojos-unittest\flexmojos-unittest-support\src\main\flex\net\flexmojos\oss\unitestingsupport\ControlSocket.as:52]
        at
net.flexmojos.oss.unitestingsupport::TestApplication/runTests()[D:\Projects\flexmojos6\trunk\target\checkout\flexmojos-testing\flexmojos-unittest\flexmojos-unittest-support\src\main\flex\net\flexmojos\oss\unitestingsupport\TestApplication.as:55]
        at flash.events::EventDispatcher/dispatchEventFunction()
        at flash.events::EventDispatcher/dispatchEvent()
        at
mx.core::UIComponent/dispatchEvent()[/Users/justinmclean/Documents/ApacheFlex4.11.0/frameworks/projects/framework/src/mx/core/UIComponent.as:13413]
        at mx.core::UIComponent/set
initialized()[/Users/justinmclean/Documents/ApacheFlex4.11.0/frameworks/projects/framework/src/mx/core/UIComponent.as:1831]
        at
mx.managers::LayoutManager/doPhasedInstantiation()[/Users/justinmclean/Documents/ApacheFlex4.11.0/frameworks/projects/framework/src/mx/managers/LayoutManager.as:850]
        at
mx.managers::LayoutManager/doPhasedInstantiationCallback()[/Users/justinmclean/Documents/ApacheFlex4.11.0/frameworks/projects/framework/src/mx/managers/LayoutManager.as:1188]

Any idea what can be wrong?

regards,

Wim



--
View this message in context: 
http://apache-flex-users.2333346.n4.nabble.com/Running-unit-tests-with-flashplayer-under-wine-tp4284.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Reply via email to