Hi Forrest Xia, *Can you please help me know, how do we make the test suite work on linux common terminal itself.*
*I tried installing the Xvfb & then editing the pom.xml file to run the suite in headless mode, but its giving me compilation errors itself, where as same code base works fine in GUI mode if tried from different box where firefox can be launched.* *Does it needs selenium code changes as well to make it work with Xvfb?* *Thanks in advance!* *Regards,* *Swapnil* On Saturday, 29 January 2011 13:18:10 UTC+5:30, Forrest Xia wrote: > > Hi, > > Does anyone encounter a problem like this? This maven project is using > selenium maven plugin to run some web testing in xvfb mode. This mode could > run successfully in common terminal, but failed in hudson. > > I execute the maven project via shell, not the hudson maven project. > > Any help is appreciated! > > Forrest > > [INFO] > ------------------------------------------------------------------------ > [INFO] Building Geronimo TestSuite :: CORBA TestSuite :: My Time EAR > > [INFO] task-segment: [clean, install] > [INFO] > ------------------------------------------------------------------------ > [INFO] [clean:clean {execution: default-clean}] > [INFO] Deleting file set: > /home/forrestxm/src/wombat/branches/eBay/eBay_eval/20110104/geronimo/testsuite/corba-testsuite/corba-mytime/corba-mytime-ear/target > (included: [**], excluded: []) > > [INFO] [genesis:validate-configuration {execution: default}] > [INFO] [geronimo-property:set-property {execution: set-property}] > [INFO] [enforcer:enforce {execution: default}] > [INFO] [ear:generate-application-xml {execution: > default-generate-application-xml}] > > [INFO] Generating application.xml > [INFO] [remote-resources:process {execution: default}] > [INFO] [resources:resources {execution: default-resources}] > [INFO] Using 'UTF-8' encoding to copy filtered resources. > > [INFO] skip non existing resourceDirectory > /home/forrestxm/src/wombat/branches/eBay/eBay_eval/20110104/geronimo/testsuite/corba-testsuite/corba-mytime/corba-mytime-ear/src/main/resources > [INFO] Copying 2 resources > [INFO] Copying 3 resources > > [INFO] [selenium:xvfb {execution: xvfb}] > [INFO] Starting Xvfb... > [INFO] Using display: :20 > [INFO] Using Xauthority file: /tmp/Xvfb2528176193333025929.Xauthority > Deleting: /tmp/Xvfb2528176193333025929.Xauthority > > xauth: creating new authority file /tmp/Xvfb2528176193333025929.Xauthority > Created dir: > /home/forrestxm/src/wombat/branches/eBay/eBay_eval/20110104/geronimo/testsuite/corba-testsuite/corba-mytime/corba-mytime-ear/target/selenium > > Launching Xvfb > Waiting for Xvfb... > [INFO] Redirecting output to: > /home/forrestxm/src/wombat/branches/eBay/eBay_eval/20110104/geronimo/testsuite/corba-testsuite/corba-mytime/corba-mytime-ear/target/selenium/xvfb.log > > Xvfb started > [INFO] [resources:testResources {execution: default}] > [INFO] Using 'UTF-8' encoding to copy filtered resources. > [INFO] Copying 1 resource > [INFO] skip non existing resourceDirectory > /home/forrestxm/src/wombat/branches/eBay/eBay_eval/20110104/geronimo/testsuite/corba-testsuite/corba-mytime/corba-mytime-ear/src/test/filtered-resources > > [INFO] Copying 3 resources > [INFO] [compiler:testCompile {execution: default}] > [INFO] Compiling 1 source file to > /home/forrestxm/src/wombat/branches/eBay/eBay_eval/20110104/geronimo/testsuite/corba-testsuite/corba-mytime/corba-mytime-ear/target/test-classes > > [INFO] [ear:ear {execution: default-ear}] > [INFO] Copying > artifact[war:org.apache.geronimo.testsuite:corba-mytime-war:3.0-SNAPSHOT] > to[corba-mytime-war-3.0-SNAPSHOT.war] > [INFO] Copying > artifact[ejb:org.apache.geronimo.testsuite:corba-mytime-ejb:3.0-SNAPSHOT] > to[corba-mytime-ejb-3.0-SNAPSHOT.jar] > > [INFO] Copying > artifact[jar:org.apache.geronimo.specs:geronimo-ejb_3.1_spec:1.0.2] > to[geronimo-ejb_3.1_spec-1.0.2.jar] > [INFO] Copy ear resources to > /home/forrestxm/src/wombat/branches/eBay/eBay_eval/20110104/geronimo/testsuite/corba-testsuite/corba-mytime/corba-mytime-ear/target/corba-mytime-ear-3.0-SNAPSHOT > > [INFO] Could not find manifest file: > /home/forrestxm/src/wombat/branches/eBay/eBay_eval/20110104/geronimo/testsuite/corba-testsuite/corba-mytime/corba-mytime-ear/src/main/application/META-INF/MANIFEST.MF > - Generating one > > [INFO] Building jar: > /home/forrestxm/src/wombat/branches/eBay/eBay_eval/20110104/geronimo/testsuite/corba-testsuite/corba-mytime/corba-mytime-ear/target/corba-mytime-ear-3.0-SNAPSHOT.ear > [INFO] [selenium:start-server {execution: start-selenium}] > > Launching Selenium Server > Waiting for Selenium Server... > [INFO] Including display properties from: > /home/forrestxm/src/wombat/branches/eBay/eBay_eval/20110104/geronimo/testsuite/corba-testsuite/corba-mytime/corba-mytime-ear/target/selenium/display.properties > > [INFO] Redirecting output to: > /home/forrestxm/src/wombat/branches/eBay/eBay_eval/20110104/geronimo/testsuite/corba-testsuite/corba-mytime/corba-mytime-ear/target/selenium/server.log > [INFO] User extensions: > /home/forrestxm/src/wombat/branches/eBay/eBay_eval/20110104/geronimo/testsuite/corba-testsuite/corba-mytime/corba-mytime-ear/target/selenium/user-extensions.js > > Selenium Server started > [INFO] [geronimo:start-server {execution: start-geronimo}] > [INFO] Using assembly configuration: tomcat-web > [INFO] Using assembly artifact: > org.apache.geronimo.assemblies:geronimo-tomcat7-javaee6-web:zip:bin:3.0-SNAPSHOT:provided > > [INFO] Using geronimoHome: > /home/forrestxm/src/wombat/branches/eBay/eBay_eval/20110104/geronimo/testsuite/corba-testsuite/corba-mytime/corba-mytime-ear/target/geronimo-tomcat7-javaee6-web-3.0-SNAPSHOT > [INFO] Installing assembly... > > [INFO] Expanding: > /home/forrestxm/src/mavenrepo/2ebayrepo/org/apache/geronimo/assemblies/geronimo-tomcat7-javaee6-web/3.0-SNAPSHOT/geronimo-tomcat7-javaee6-web-3.0-SNAPSHOT-bin.zip > into > /home/forrestxm/src/wombat/branches/eBay/eBay_eval/20110104/geronimo/testsuite/corba-testsuite/corba-mytime/corba-mytime-ear/target > > [INFO] Starting Geronimo server... > [INFO] Selected option set: default > [INFO] Redirecting output to: > /home/forrestxm/src/wombat/branches/eBay/eBay_eval/20110104/geronimo/testsuite/corba-testsuite/corba-mytime/corba-mytime-ear/target/geronimo-logs/org.apache.geronimo.mavenplugins.geronimo.server.StartServerMojo.log > > [INFO] Waiting for Geronimo server... > [org.apache.geronimo.mavenplugins.geronimo.ServerProxy] : Initialized with > URL: service:jmx:rmi://localhost/jndi/rmi://localhost:1099/JMXConnector, > environment: {jmx.remote.credentials=[Ljava.lang.String;@e9635a} > > [org.apache.geronimo.mavenplugins.geronimo.ServerProxy] : Connecting to: > service:jmx:rmi://localhost/jndi/rmi://localhost:1099/JMXConnector > [org.apache.geronimo.mavenplugins.geronimo.ServerProxy] : Connection failure; > ignoring: java.io.IOException: Failed to retrieve RMIServer stub: > javax.naming.ServiceUnavailableException [Root exception is > java.rmi.ConnectException: Connection refused to host: localhost; nested > exception is: > > java.net.ConnectException: Connection refused] > [org.apache.geronimo.mavenplugins.geronimo.ServerProxy] : Connecting to: > service:jmx:rmi://localhost/jndi/rmi://localhost:1099/JMXConnector > [org.apache.geronimo.mavenplugins.geronimo.ServerProxy] : Connection failure; > ignoring: java.io.IOException: Failed to retrieve RMIServer stub: > javax.naming.ServiceUnavailableException [Root exception is > java.rmi.ConnectException: Connection refused to host: localhost; nested > exception is: > > java.net.ConnectException: Connection refused] > [org.apache.geronimo.mavenplugins.geronimo.ServerProxy] : Connecting to: > service:jmx:rmi://localhost/jndi/rmi://localhost:1099/JMXConnector > [org.apache.geronimo.mavenplugins.geronimo.ServerProxy] : Connection failure; > ignoring: java.io.IOException: Failed to retrieve RMIServer stub: > javax.naming.ServiceUnavailableException [Root exception is > java.rmi.ConnectException: Connection refused to host: localhost; nested > exception is: > > java.net.ConnectException: Connection refused] > [org.apache.geronimo.mavenplugins.geronimo.ServerProxy] : Connecting to: > service:jmx:rmi://localhost/jndi/rmi://localhost:1099/JMXConnector > [org.apache.geronimo.mavenplugins.geronimo.ServerProxy] : Unable to determine > if the server is fully started; ignoring: java.lang.SecurityException: > Invalid login > > [org.apache.geronimo.mavenplugins.geronimo.ServerProxy] : Connecting to: > service:jmx:rmi://localhost/jndi/rmi://localhost:1099/JMXConnector > [org.apache.geronimo.mavenplugins.geronimo.ServerProxy] : Connected > [INFO] Geronimo server started in 0:00:55.355 > > [INFO] [geronimo:deploy-module {execution: deploy-ear}] > [INFO] Using non-artifact based module archive: > /home/forrestxm/src/wombat/branches/eBay/eBay_eval/20110104/geronimo/testsuite/corba-testsuite/corba-mytime/corba-mytime-ear/target/corba-mytime-ear-3.0-SNAPSHOT.ear > > [INFO] Distributing module artifact: > /home/forrestxm/src/wombat/branches/eBay/eBay_eval/20110104/geronimo/testsuite/corba-testsuite/corba-mytime/corba-mytime-ear/target/corba-mytime-ear-3.0-SNAPSHOT.ear > [org.apache.geronimo.deployment.plugin.factories.BaseDeploymentFactory] : > Parsing URI=deployer:geronimo:jmx://localhost:1099 > > [org.apache.geronimo.deployment.plugin.factories.BaseDeploymentFactory] : > Parsing URI=deployer:geronimo:jmx://localhost:1099 > [org.apache.geronimo.deployment.plugin.factories.BaseDeploymentFactory] : > Using protocol=jmx, host=localhost, port=1099 > > [org.apache.geronimo.deployment.plugin.factories.BaseDeploymentFactory] : > Using JMXServiceURL with host=localhost, port=1099, secure=false > [INFO] Starting modules... > [INFO] Starting module: > org.apache.geronimo.testsuite/corba-mytime-ear/3.0-SNAPSHOT/car > > [INFO] Started module(s): > [INFO] [0] org.apache.geronimo.testsuite/corba-mytime-ear/3.0-SNAPSHOT/car > [INFO] [failsafe:integration-test {execution: integration-test}] > [INFO] Failsafe report directory: > /home/forrestxm/src/wombat/branches/eBay/eBay_eval/20110104/geronimo/testsuite/corba-testsuite/corba-mytime/corba-mytime-ear/target/failsafe-reports > > ------------------------------------------------------- > T E S T S > ------------------------------------------------------- > Running TestSuite > killed. > [INFO] > ------------------------------------------------------------------------ > > [ERROR] BUILD ERROR > [INFO] > ------------------------------------------------------------------------ > [INFO] Error while executing forked tests.; nested exception is > org.apache.maven.surefire.booter.shade.org.codehaus.plexus.util.cli.CommandLineTimeOutException: > Error while executing external command, process killed. > > Process timeout out after 300 seconds > [INFO] > ------------------------------------------------------------------------ > [INFO] Trace > org.apache.maven.lifecycle.LifecycleExecutionException: Error while executing > forked tests.; nested exception is > org.apache.maven.surefire.booter.shade.org.codehaus.plexus.util.cli.CommandLineTimeOutException: > Error while executing external command, process killed. > > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556) > > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387) > > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) > > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) > at > org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > > at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) > at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) > at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) > at org.codehaus.classworlds.Launcher.main(Launcher.java:375) > > Caused by: org.apache.maven.plugin.MojoExecutionException: Error while > executing forked tests.; nested exception is > org.apache.maven.surefire.booter.shade.org.codehaus.plexus.util.cli.CommandLineTimeOutException: > Error while executing external command, process killed. > > at > org.apache.maven.plugin.failsafe.IntegrationTestMojo.execute(IntegrationTestMojo.java:613) > at > org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694) > > ... 17 more > Caused by: org.apache.maven.surefire.booter.SurefireBooterForkException: > Error while executing forked tests.; nested exception is > org.apache.maven.surefire.booter.shade.org.codehaus.plexus.util.cli.CommandLineTimeOutException: > Error while executing external command, process killed. > > at > org.apache.maven.surefire.booter.SurefireBooter.fork(SurefireBooter.java:685) > at > org.apache.maven.surefire.booter.SurefireBooter.forkSuites(SurefireBooter.java:485) > at > org.apache.maven.surefire.booter.SurefireBooter.runSuitesForkOnce(SurefireBooter.java:385) > > at > org.apache.maven.surefire.booter.SurefireBooter.run(SurefireBooter.java:246) > at > org.apache.maven.plugin.failsafe.IntegrationTestMojo.execute(IntegrationTestMojo.java:609) > ... 19 more > Caused by: > org.apache.maven.surefire.booter.shade.org.codehaus.plexus.util.cli.CommandLineTimeOutException: > Error while executing external command, process killed. > > at > org.apache.maven.surefire.booter.shade.org.codehaus.plexus.util.cli.CommandLineUtils.executeCommandLine(CommandLineUtils.java:200) > at > org.apache.maven.surefire.booter.shade.org.codehaus.plexus.util.cli.CommandLineUtils.executeCommandLine(CommandLineUtils.java:91) > > at > org.apache.maven.surefire.booter.SurefireBooter.fork(SurefireBooter.java:681) > ... 23 more > Caused by: java.lang.InterruptedException: Process timeout out after 300 > seconds > at > org.apache.maven.surefire.booter.shade.org.codehaus.plexus.util.cli.CommandLineUtils.executeCommandLine(CommandLineUtils.java:161) > > ... 25 more > > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.