Hmm... still doesn't seem to make a difference.  I have this now...
----------------------
    <build>
        <sourceDirectory>src/main/flex</sourceDirectory>
        <testSourceDirectory>src/test/flex</testSourceDirectory>
        <plugins>
            <plugin>
                <groupId>org.sonatype.flexmojos</groupId>
                <artifactId>flexmojos-maven-plugin</artifactId>
                <version>${flex.mojos.version}</version>
                <extensions>true</extensions>
                <configuration>
                    <testRunner>
                        <launcher>
                            <allowHeadlessMode>false</
allowHeadlessMode>
                        </launcher>
                    </testRunner>
----------------------

Again if I use true or false for <allowHeadlessMode> I get the same
output
[INFO] [flexmojos:test-run {execution: default-test-run}]
[INFO] flexmojos 3.3.0 - GNU GPL License (NO WARRANTY) - See COPYRIGHT
file
[INFO] Running tests /opt/apache-tomcat-6.0.18/hudson_work/jobs/
intouch-devel/workspace/intouch-devel/flexV3/intouch-flex-core-lib/
target/test-classes/TestRunner.swf
[WARNING] [LAUNCHER] Using xvfb-run to launch headless tests

Collin


On Sep 9, 12:36 pm, Marvin Froeder <[email protected]> wrote:
> Ow cheat, that maven-plexus bug again....
> Try that.... should work...
>
> <configuration>
> <testRunner>
> <launcher>
> <allowHeadlessMode>true</...
> </...
> </...
> </...
>
> On Wed, Sep 9, 2009 at 4:28 PM, Collin Peters <[email protected]>wrote:
>
>
>
> > Hmm... that doesn't seem to make a difference.
>
> > I have:
> >    <build>
> >        <sourceDirectory>src/main/flex</sourceDirectory>
> >        <testSourceDirectory>src/test/flex</testSourceDirectory>
> >        <plugins>
> >            <plugin>
> >                <groupId>org.sonatype.flexmojos</groupId>
> >                <artifactId>flexmojos-maven-plugin</artifactId>
> >                <version>${flex.mojos.version}</version>
> >                <extensions>true</extensions>
> >                <configuration>
> >                    <allowSourcePathOverlap>true</
> > allowSourcePathOverlap>
> >                    <allowHeadlessMode>false</allowHeadlessMode>
> >                etc...
>
> > No matter what I set <allowHeadlessMode> to (true or false), it always
> > tries to run xvfb.  I see the output:
> > [INFO] [flexmojos:test-run {execution: default-test-run}]
> > [INFO] flexmojos 3.3.0 - GNU GPL License (NO WARRANTY) - See COPYRIGHT
> > file
> > [INFO] Running tests /opt/apache-tomcat-6.0.18/hudson_work/jobs/
> > intouch-devel/workspace/intouch-devel/flexV3/intouch-flex-core-lib/
> > target/test-classes/TestRunner.swf
> > [WARNING] [LAUNCHER] Using xvfb-run to launch headless tests
>
> > Not sure if there is a bug there or not.  The strange part of all of
> > this is if I ssh into my (headless) buildserver and run mvn against
> > this project on the command line, it works, tests and all.  The same
> > project run through Hudson fails with the "#2048: Security sandbox
> > violation".  It strikes me that there must be some kind of environment
> > issue that makes Hudson run it differently.  Does anything jump out at
> > you from the output of the above two links?
>
> > Thanks,
> > Collin
>
> > On Sep 9, 12:04 pm, Marvin Froeder <[email protected]> wrote:
> > > I think we have a bug on java here =D
> > > Flexmojos checks if JVM is running on headless mode, if yes, try to use
> > > xvfb. And as far I understand, when you launch JVM under xvnc it does
> > give
> > > an UI to JVM.  But ok, I won't worry about that, at least not now =D
>
> > > Block flexmojos headless mode
>
> > >http://sites.sonatype.org/flexmojos/flexmojos-maven-plugin/test-run-m...
>
> > > VELO
>
> > > On Wed, Sep 9, 2009 at 3:53 PM, Collin Peters <[email protected]
> > >wrote:
>
> > > > I'll start off by saying this is not a path issue :)  Flex Mojos has
> > > > no trouble finding the Flash Player.
>
> > > > I believe this issue is caused by our recent upgrade to Flex Mojos 3.3
> > > > as things worked before that.  We used xvnc and that entire setup
> > > > worked great.  It seems that 3.3 defaults to xvfb now, though, and I
> > > > don't even know how to tell it to not use xvfb.  We would prefer to
> > > > use xvnc, so if I can find the option to go back that, that would be
> > > > perfect
>
> > > > What is happening now is that the build is failing when run through
> > > > Hudson.  It works on my Ubunutu Linux development box (i.e. with a
> > > > GUI) and it even works when I manually run mvn on the command line on
> > > > the build server (which is headless).  It only fails when run through
> > > > Hudson.  The output on a normal build is:
> > > > ------------
> > > > [INFO] [flexmojos:test-run {execution: default-test-run}]
> > > > [INFO] flexmojos 3.3.0 - GNU GPL License (NO WARRANTY) - See COPYRIGHT
> > > > file
> > > > [INFO] Running tests /opt/tomcat/hudson_work/jobs/intouch-devel/
> > > > workspace/intouch-devel/flexV3/intouch-flex-core-lib/target/test-
> > > > classes/TestRunner.swf
> > > > [WARNING] [LAUNCHER] Using xvfb-run to launch headless tests
> > > > ------------
> > > > And then it just hangs there.  If I look at the process list I can see
> > > > it running the xvfb command
> > > > ----------------
> > > > \_ /bin/sh /usr/bin/xvfb-run -a -e /tmp/
> > > > xvfbrun2113825775593935247flashplayer flashplayer /opt/tomcat/
> > > > hudson_work/jobs/intouch-devel/workspace/intouch-devel/flexV3
> > > >   \_ Xvfb :99 -screen 0 640x480x8 -nolisten tcp
> > > >    \_ flashplayer /opt/tomcat/hudson_work/jobs/intouch-devel/
> > > > workspace/intouch-devel/flexV3/intouch-flex-core-lib/target/test-
> > > > classes/TestRunner.swf
> > > > ------------------
>
> > > > The verbose out (-X option) shows that the classes are compiled and
> > > > attempted to run through the flash player but it results in the
> > > > message:
> > > > [DEBUG] [SYSOUT]: Error #2044: Unhandled securityError:. text=Error
> > > > #2048: Security sandbox violation:
>
> > file:///opt/tomcat/hudson_work/jobs/intouch-devel/workspace/intouch-devel/flexV3/intouch-flex-core-lib/target/test-classes/TestRunner.swf
> > > > cannot load data from 127.0.0.1:13540.
> > > > [DEBUG] [SYSOUT]:   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:33]
> > > > [DEBUG] [SYSOUT]:   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]
> > > > [DEBUG] [SYSOUT]:   at flash.events::EventDispatcher/
> > > > dispatchEventFunction()
> > > > [DEBUG] [SYSOUT]:   at flash.events::EventDispatcher/dispatchEvent()
> > > > [DEBUG] [SYSOUT]:   at mx.core::UIComponent/dispatchEvent()[C:
> > > > \autobuild\3.3.0\frameworks\projects\framework\src\mx\core
> > > > \UIComponent.as:9308]
> > > > [DEBUG] [SYSOUT]:   at mx.core::UIComponent/set initialized()[C:
> > > > \autobuild\3.3.0\frameworks\projects\framework\src\mx\core
> > > > \UIComponent.as:1169]
> > > > [DEBUG] [SYSOUT]:   at mx.managers::LayoutManager/doPhasedInstantiation
> > > > ()[C:\autobuild\3.3.0\frameworks\projects\framework\src\mx\managers
> > > > \LayoutManager.as:718]
> > > > [DEBUG] [SYSOUT]:   at Function/http://adobe.com/AS3/2006/
> > > > builtin::apply()
> > > > [DEBUG] [SYSOUT]:   at mx.core::UIComponent/callLaterDispatcher2()[C:
> > > > \autobuild\3.3.0\frameworks\projects\framework\src\mx\core
> > > > \UIComponent.as:8633]
> > > > [DEBUG] [SYSOUT]:   at mx.core::UIComponent/callLaterDispatcher()[C:
> > > > \autobuild\3.3.0\frameworks\projects\framework\src\mx\core
> > > > \UIComponent.as:8573]
>
> > > > Here is the full output for both the Hudson build, and the command
> > > > line build
> > > >http://office.intouchtechnology.com/~collin/hudson.txt
> > > >http://office.intouchtechnology.com/~collin/command_line.txt
>
> > > > So going back to xvnc is preferable.  But a solution for xvfb would be
> > > > nice as well.
>
> > > > Regards,
> > > > Collin
>
>
--~--~---------~--~----~------------~-------~--~----~
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