Well, as I described earlier, that worked for me too. Only if I add
the dependency to flexunit with compile scope, I have the problem.
Can you try this?

On Apr 3, 2:19 pm, Marvin Froeder <[email protected]> wrote:
> I just try it here....mvn archetype:generate 
> -DarchetypeRepository=http://repository.sonatype.org/content/groups/public-DarchetypeGroupI...
> -DarchetypeArtifactId=flexmojos-archetypes-library -DarchetypeVersion=3.1.0
>
> Then
> mvn clean install
>
> It does work, and I'm on windows too.  I did that using a fresh local repo,
> so I have no idea what is going on there....
>
> Is there anything else you did and not told me?
>
> VELO
>
> On Fri, Apr 3, 2009 at 9:05 AM, bertSimon <[email protected]> wrote:
>
> > TestRunner.swf is in the maven.cfg...
> > Also checked firewall, but this can't be an issue as the clean project
> > as generated by the archetype does work.
>
> > On Apr 3, 12:23 pm, Marvin Froeder <[email protected]> wrote:
> > > SecurityError.... hrm... that is a clue.....
> > > Do you have this file:
> > > C:\Documents and Settings\PC\Application Data\Macromedia\Flash
> > > Player\#Security\FlashPlayerTrust\maven.cfg ?
> > > Does it contains your SWF?
> > >  (D:/dev/as3mock/library/target/test classes/TestRunner.swf)
>
> > > VELO
>
> > > On Fri, Apr 3, 2009 at 5:25 AM, bertSimon <[email protected]>
> > wrote:
>
> > > > Tried FP10 debug version this morning, maybe something useful:
> > > > flashlog.txt gives me:
> > > > "dataHandler
> > > > data Server Status
> > > > replying"
>
> > > > Also tried to fire testRunner.swf from flexbuilder in the debug
> > > > modus,
> > > > and I got:
> > > > "[SWF] D:\dev\as3mock\library\target\test-classes\TestRunner.swf -
> > > > 1.656.026 bytes after decompression
> > > > dataHandler
> > > > data Server Status
> > > > replying
> > > > Error #2044: Unhandled securityError:. text=Error #2048: Security
> > > > sandbox violation:
> > > > file:///D|/dev/as3mock/library/target/test%2Dclasses/TestRunner.swf
> > > > cannot load data from 127.0.0.1:13540.
> > > >        at
> > > > org.sonatype.flexmojos.unitestingsupport::ControlSocket/connect()[/
> > > > home/nexus/flexmojos/trunk/target/checkout/flexmojos-testing/flexmojos-
> > > > unittest-support/src/main/flex/org/sonatype/flexmojos/
> > > > unitestingsupport/ControlSocket.as:31]
> > > >        at
> > > > org.sonatype.flexmojos.unitestingsupport::TestApplication/runTests
> > > > ()[/home/nexus/flexmojos/trunk/target/checkout/flexmojos-testing/
> > > > flexmojos-unittest-support/src/main/flex/org/sonatype/flexmojos/
> > > > unitestingsupport/TestApplication.as:39]
> > > >        at flash.events::EventDispatcher/dispatchEventFunction()
> > > >        at flash.events::EventDispatcher/dispatchEvent()
> > > >        at
> > > > mx.core::UIComponent/dispatchEvent()[C:\autobuild\3.2.0\frameworks
> > > > \projects\framework\src\mx\core\UIComponent.as:9298]
> > > >        at mx.core::UIComponent/set initialized()[C:\autobuild
> > > > \3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:1169]
> > > >        at
> > mx.managers::LayoutManager/doPhasedInstantiation()[C:\autobuild
> > > > \3.2.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:
> > > > 718]
> > > >        at Function/http://adobe.com/AS3/2006/builtin::apply()
> > > >        at mx.core::UIComponent/callLaterDispatcher2()[C:\autobuild
> > > > \3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8628]
> > > >        at mx.core::UIComponent/callLaterDispatcher()[C:\autobuild
> > > > \3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8568]"
>
> > > > Problem is that mvn test closes the Flash Player immediately, so I can
> > > > not see if this message was also displayed.
> > > > Next thing I'll try is to see if I can get the thing running using one
> > > > dummy test without the compile dependency on flexunit, as I'm starting
> > > > to suspect the firewall on my machine...
>
> > > > On 2 apr, 22:50, bertSimon <[email protected]> wrote:
> > > > > Until now I was using FP9, I guess the release version (the one
> > > > > installed with Flexbuilder). I now downloaded FP10 debug version, and
> > > > > will try tomorrow morning.
> > > > > I'll let you know the result...
>
> > > > > On 2 apr, 22:32, Marvin Froeder <[email protected]> wrote:
>
> > > > > > Can you try debug player?
>
> > > > > > On Thu, Apr 2, 2009 at 5:28 PM, Marvin Froeder <[email protected]>
> > > > wrote:
> > > > > > > Are you using normal flash player or debug flash player?
> > > > > > > VELO
>
> > > > > > > On Thu, Apr 2, 2009 at 5:27 PM, bertSimon <
> > [email protected]
> > > > >wrote:
>
> > > > > > >> Yes, I have. Flash player appears, does nothing, and then the
> > error
> > > > > > >> occurs.
> > > > > > >> When the tests are actually there (which I later also deleted to
> > > > test
> > > > > > >> if that was causing the problem), none of the tests seem to be
> > > > > > >> started.
> > > > > > >> Meanwhile, I tried mvn test with this pom on another (Windows
> > XP)
> > > > > > >> machine not yet having a local repository, and I have the same
> > > > > > >> problem.
> > > > > > >> I guess you should be able to reproduce the problem using the
> > pom I
> > > > > > >> published, since the project doesn't have any sources and I
> > still
> > > > have
> > > > > > >> the problem...
>
> > > > > > >> On 2 apr, 17:30, Marvin Froeder <[email protected]> wrote:
> > > > > > >> > Do you see FlashPlayer window openning or trying to open?BTW,
> > do
> > > > you
> > > > > > >> have
> > > > > > >> > FlashPlayer on path?
>
> > > > > > >> > VELO
>
> > > > > > >> > On Thu, Apr 2, 2009 at 12:19 PM, bertSimon <
> > > > [email protected]
> > > > > > >> >wrote:
>
> > > > > > >> > > No, the scope is correct: as3mock is actually a mock
> > framework
> > > > built
> > > > > > >> > > on top of flexunit...
>
> > > > > > >> > > On Apr 2, 2:40 pm, Marvin Froeder <[email protected]>
> > wrote:
> > > > > > >> > > > The only weird thing I saw is the scope...Should be:
> > > > > > >> > > > <dependency>
> > > > > > >> > > > <groupId>com.adobe.flexunit</groupId>
> > > > > > >> > > > <artifactId>flexunit</artifactId>
> > > > > > >> > > > <version>0.85</version>
> > > > > > >> > > > <type>swc</type>
> > > > > > >> > > > <scope>test</scope>
> > > > > > >> > > > </dependency>
>
> > > > > > >> > > > VELO
>
> > > > > > >> > > > On Thu, Apr 2, 2009 at 5:15 AM, bertSimon <
> > > > > > >> [email protected]>
> > > > > > >> > > wrote:
>
> > > > > > >> > > > > I could isolate the problem: I removed all sources, and
> > I
> > > > still
> > > > > > >> got
> > > > > > >> > > > > the problem.
> > > > > > >> > > > > It definitely has to do with the dependency on flexunit
> > > > 0.85.
> > > > > > >> > > > > On the following locations, I posted the pom and the
> > dump of
> > > > the
> > > > > > >> test
> > > > > > >> > > > > run using -X.
> > > > > > >> > > > > You should be able to reproduce the problem without
> > > > sources...
>
> > > > > > >> > > > >http://users.skynet.be/bert.simon/flexmojo/pom.xml
> > > > > > >> > > > >http://users.skynet.be/bert.simon/flexmojo/mvndump.txt
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Flex Mojos" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/flex-mojos?hl=en?hl=en

http://blog.flex-mojos.info/
-~----------~----~----~----~------~----~------~--~---

Reply via email to