|
View:
New views
11 Messages
—
Rating Filter:
Alert me
|
|
|
[jira] Created: (CONTINUUM-2405) Selenium fails with java.lang.RuntimeException: Timed out waiting for profile to be created! inside Continuum
by JIRA jira@codehaus.org
::
Rate this Message:
Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message Selenium fails with java.lang.RuntimeException: Timed out waiting for profile to be created! inside Continuum
------------------------------------------------------------------------------------------------------------- Key: CONTINUUM-2405 URL: http://jira.codehaus.org/browse/CONTINUUM-2405 Project: Continuum Issue Type: Bug Affects Versions: 1.3.4 Environment: Maven 2.2.1 Continuum 1.3.4 Linux Fedora 11 Reporter: André Salvati I've been trying to run Continuum + Selenium Java tests + X virtual server (xvfb) without success. Continuum process is running with root privileges. When I run maven from console (mvn clean install), selenium works smoothly: [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Building MenuEAR [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting directory /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target [INFO] [ear:generate-application-xml {execution: default-generate-application-xml}] [INFO] Generating application.xml [INFO] Generating jboss-app.xml [INFO] [resources:resources {execution: default-resources}] [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] Copying 23 resources [INFO] [ear:ear {execution: default-ear}] [INFO] Copying artifact[ejb:Web:MenuJAR:1.0-SNAPSHOT] to[MenuJAR-1.0-SNAPSHOT.jar] [INFO] Copying artifact[war:Web:MenuWAR:1.0-SNAPSHOT] to[MenuWAR-1.0-SNAPSHOT.war] [INFO] Copying artifact[jar:org.richfaces.ui:richfaces-ui:3.3.1.GA] to[lib/richfaces-ui-3.3.1.GA.jar] [INFO] Copying artifact[jar:org.richfaces.framework:richfaces-impl:3.3.1.GA] to[lib/richfaces-impl-3.3.1.GA.jar] [INFO] Copying artifact[jar:commons-digester:commons-digester:1.8.1] to[lib/commons-digester-1.8.1.jar] [INFO] Copying artifact[jar:commons-beanutils:commons-beanutils:1.7.0] to[lib/commons-beanutils-1.7.0.jar] [INFO] Copying artifact[jar:org.richfaces.framework:richfaces-api:3.3.1.GA] to[lib/richfaces-api-3.3.1.GA.jar] [INFO] Copying artifact[jar:commons-collections:commons-collections:3.2] to[lib/commons-collections-3.2.jar] [INFO] Copying artifact[jar:commons-logging:commons-logging:1.0.4] to[lib/commons-logging-1.0.4.jar] [INFO] Copying artifact[jar:org.jbpm.jbpm3:jbpm-jpdl:3.2.6.SP1] to[lib/jbpm-jpdl-3.2.6.SP1.jar] [INFO] Copying artifact[jar:org.jbpm.jbpm3:jbpm-identity:3.2.6.SP1] to[lib/jbpm-identity-3.2.6.SP1.jar] [INFO] Copying artifact[jar:jasperreports:jasperreports:3.6.0] to[lib/jasperreports-3.6.0.jar] [INFO] Copying artifact[jar:org.codehaus.groovy:groovy-all:1.5.5] to[lib/groovy-all-1.5.5.jar] [INFO] Copying artifact[jar:junit:junit:4.7] to[lib/junit-4.7.jar] [INFO] Copying artifact[jar:org.apache.ant:ant:1.7.0] to[lib/ant-1.7.0.jar] [INFO] Copying artifact[jar:org.apache.ant:ant-launcher:1.7.0] to[lib/ant-launcher-1.7.0.jar] [INFO] Copying artifact[jar:jline:jline:0.9.94] to[lib/jline-0.9.94.jar] [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam:2.2.0.GA] to[lib/jboss-seam-2.2.0.GA.jar] [INFO] Copying artifact[jar:xstream:xstream:1.1.3] to[lib/xstream-1.1.3.jar] [INFO] Copying artifact[jar:xpp3:xpp3_min:1.1.3.4.O] to[lib/xpp3_min-1.1.3.4.O.jar] [INFO] Copying artifact[jar:org.jboss.el:jboss-el:1.0_02.CR4] to[lib/jboss-el-1.0_02.CR4.jar] [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-ui:2.2.0.GA] to[lib/jboss-seam-ui-2.2.0.GA.jar] [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-jul:2.2.0.GA] to[lib/jboss-seam-jul-2.2.0.GA.jar] [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-debug:2.2.0.GA] to[lib/jboss-seam-debug-2.2.0.GA.jar] [INFO] Copying artifact[jar:com.sun.facelets:jsf-facelets:1.1.15.B1] to[lib/jsf-facelets-1.1.15.B1.jar] [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-ioc:2.2.0.GA] to[lib/jboss-seam-ioc-2.2.0.GA.jar] [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-pdf:2.2.0.GA] to[lib/jboss-seam-pdf-2.2.0.GA.jar] [INFO] Copying artifact[jar:com.lowagie:itext:2.1.2] to[lib/itext-2.1.2.jar] [INFO] Copying artifact[jar:com.lowagie:itext-rtf:2.1.2] to[lib/itext-rtf-2.1.2.jar] [INFO] Copy ear sources to /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/menu [INFO] Could not find manifest file: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/src/main/application/META-INF/MANIFEST.MF - Generating one [INFO] Building jar: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/menu.ear [INFO] [selenium:xvfb {execution: xvfb}] [INFO] Starting Xvfb... [INFO] Using display: :20 [INFO] Using Xauthority file: /tmp/Xvfb7302122594304485725.Xauthority Deleting: /tmp/Xvfb7302122594304485725.Xauthority xauth: creating new authority file /tmp/Xvfb7302122594304485725.Xauthority Created dir: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium Launching Xvfb Waiting for Xvfb... [INFO] Redirecting output to: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium/xvfb.log Xvfb started [INFO] [selenium:start-server {execution: start-selenium}] Launching Selenium Server [INFO] Including display properties from: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium/display.properties [INFO] User extensions: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium/user-extensions.js Waiting for Selenium Server... 12:44:18,054 INFO [org.openqa.selenium.server.SeleniumServer] Java: Sun Microsystems Inc. 14.2-b01 12:44:18,055 INFO [org.openqa.selenium.server.SeleniumServer] OS: Linux 2.6.30.8-64.fc11.i686.PAE i386 12:44:18,066 INFO [org.openqa.selenium.server.SeleniumServer] v1.0.1 [2697], with Core v@VERSION@ [@REVISION@] 12:44:18,163 INFO [org.mortbay.http.HttpServer] Version Jetty/5.1.x 12:44:18,165 INFO [org.mortbay.util.Container] Started HttpContext[/selenium-server/driver,/selenium-server/driver] 12:44:18,166 INFO [org.mortbay.util.Container] Started HttpContext[/selenium-server,/selenium-server] 12:44:18,166 INFO [org.mortbay.util.Container] Started HttpContext[/,/] 12:44:18,173 INFO [org.mortbay.http.SocketListener] Started SocketListener on 0.0.0.0:8090 12:44:18,173 INFO [org.mortbay.util.Container] Started org.mortbay.jetty.Server@148aa23 12:44:18,832 INFO [org.mortbay.util.Credential] Checking Resource aliases Selenium Server started [INFO] [compiler:testCompile {execution: compila-testes}] [INFO] Compiling 11 source files to /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/test-classes [INFO] [surefire:test {execution: testes-funcionais}] [INFO] Surefire report directory: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/surefire-reports ------------------------------------------------------- T E S T S ------------------------------------------------------- Running br.com.optimus.teste.usuario.TestNavegacao 12:44:20,659 INFO [org.mortbay.util.Credential] Checking Resource aliases 12:44:20,665 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request: getNewBrowserSession[*firefox, http://prod1, ] on session null 12:44:20,668 INFO [org.openqa.selenium.server.BrowserSessionFactory] creating new remote session 12:44:20,775 INFO [org.openqa.selenium.server.BrowserSessionFactory] Allocated session a0d622d6b2d74fc7b5386a29752d7b89 for http://prod1, launching... 12:44:20,806 INFO [org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher] Preparing Firefox profile... Xlib: extension "RANDR" missing on display ":20.0". Xlib: extension "RANDR" missing on display ":20.0". 12:44:24,064 INFO [org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher] Launching Firefox... 12:44:26,098 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Got result: OK,a0d622d6b2d74fc7b5386a29752d7b89 on session a0d622d6b2d74fc7b5386a29752d7b89 12:44:26,104 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request: open[/erp/login.seam, ] on session a0d622d6b2d74fc7b5386a29752d7b89 12:44:26,241 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Got result: OK on session a0d622d6b2d74fc7b5386a29752d7b89 12:44:26,244 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request: waitForPageToLoad[3000, ] on session a0d622d6b2d74fc7b5386a29752d7b89 12:44:26,264 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Got result: OK on session a0d622d6b2d74fc7b5386a29752d7b89 12:44:26,266 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request: type[login:username, demo1] on session a0d622d6b2d74fc7b5386a29752d7b89 aberto /erp/login.seam 12:44:26,299 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Got result: OK on session a0d622d6b2d74fc7b5386a29752d7b89 12:44:26,301 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request: type[login:password, demo1] on session a0d622d6b2d74fc7b5386a29752d7b89 preenchido login:username com demo1 (....) Otherwise, when I run the same phases inside Selenium, it fails: [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Building MenuEAR [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting directory /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target [INFO] [ear:generate-application-xml {execution: default-generate-application-xml}] [INFO] Generating application.xml [INFO] Generating jboss-app.xml [INFO] [resources:resources {execution: default-resources}] [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] Copying 23 resources [INFO] [ear:ear {execution: default-ear}] [INFO] Copying artifact[ejb:Web:MenuJAR:1.0-SNAPSHOT] to[MenuJAR-1.0-SNAPSHOT.jar] [INFO] Copying artifact[war:Web:MenuWAR:1.0-SNAPSHOT] to[MenuWAR-1.0-SNAPSHOT.war] [INFO] Copying artifact[jar:org.richfaces.ui:richfaces-ui:3.3.1.GA] to[lib/richfaces-ui-3.3.1.GA.jar] [INFO] Copying artifact[jar:org.richfaces.framework:richfaces-impl:3.3.1.GA] to[lib/richfaces-impl-3.3.1.GA.jar] [INFO] Copying artifact[jar:commons-digester:commons-digester:1.8.1] to[lib/commons-digester-1.8.1.jar] [INFO] Copying artifact[jar:commons-beanutils:commons-beanutils:1.7.0] to[lib/commons-beanutils-1.7.0.jar] [INFO] Copying artifact[jar:org.richfaces.framework:richfaces-api:3.3.1.GA] to[lib/richfaces-api-3.3.1.GA.jar] [INFO] Copying artifact[jar:commons-collections:commons-collections:3.2] to[lib/commons-collections-3.2.jar] [INFO] Copying artifact[jar:commons-logging:commons-logging:1.0.4] to[lib/commons-logging-1.0.4.jar] [INFO] Copying artifact[jar:org.jbpm.jbpm3:jbpm-jpdl:3.2.6.SP1] to[lib/jbpm-jpdl-3.2.6.SP1.jar] [INFO] Copying artifact[jar:org.jbpm.jbpm3:jbpm-identity:3.2.6.SP1] to[lib/jbpm-identity-3.2.6.SP1.jar] [INFO] Copying artifact[jar:jasperreports:jasperreports:3.6.0] to[lib/jasperreports-3.6.0.jar] [INFO] Copying artifact[jar:org.codehaus.groovy:groovy-all:1.5.5] to[lib/groovy-all-1.5.5.jar] [INFO] Copying artifact[jar:junit:junit:4.7] to[lib/junit-4.7.jar] [INFO] Copying artifact[jar:org.apache.ant:ant:1.7.0] to[lib/ant-1.7.0.jar] [INFO] Copying artifact[jar:org.apache.ant:ant-launcher:1.7.0] to[lib/ant-launcher-1.7.0.jar] [INFO] Copying artifact[jar:jline:jline:0.9.94] to[lib/jline-0.9.94.jar] [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam:2.2.0.GA] to[lib/jboss-seam-2.2.0.GA.jar] [INFO] Copying artifact[jar:xstream:xstream:1.1.3] to[lib/xstream-1.1.3.jar] [INFO] Copying artifact[jar:xpp3:xpp3_min:1.1.3.4.O] to[lib/xpp3_min-1.1.3.4.O.jar] [INFO] Copying artifact[jar:org.jboss.el:jboss-el:1.0_02.CR4] to[lib/jboss-el-1.0_02.CR4.jar] [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-ui:2.2.0.GA] to[lib/jboss-seam-ui-2.2.0.GA.jar] [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-jul:2.2.0.GA] to[lib/jboss-seam-jul-2.2.0.GA.jar] [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-debug:2.2.0.GA] to[lib/jboss-seam-debug-2.2.0.GA.jar] [INFO] Copying artifact[jar:com.sun.facelets:jsf-facelets:1.1.15.B1] to[lib/jsf-facelets-1.1.15.B1.jar] [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-ioc:2.2.0.GA] to[lib/jboss-seam-ioc-2.2.0.GA.jar] [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-pdf:2.2.0.GA] to[lib/jboss-seam-pdf-2.2.0.GA.jar] [INFO] Copying artifact[jar:com.lowagie:itext:2.1.2] to[lib/itext-2.1.2.jar] [INFO] Copying artifact[jar:com.lowagie:itext-rtf:2.1.2] to[lib/itext-rtf-2.1.2.jar] [INFO] Copy ear sources to /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/menu [INFO] Could not find manifest file: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/src/main/application/META-INF/MANIFEST.MF - Generating one [INFO] Building jar: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/menu.ear [INFO] [selenium:xvfb {execution: xvfb}] [INFO] Starting Xvfb... [INFO] Using display: :20 [INFO] Using Xauthority file: /tmp/Xvfb31539120038900714.Xauthority Deleting: /tmp/Xvfb31539120038900714.Xauthority xauth: creating new authority file /tmp/Xvfb31539120038900714.Xauthority Created dir: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium Launching Xvfb Waiting for Xvfb... [INFO] Redirecting output to: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium/xvfb.log Xvfb started [INFO] [selenium:start-server {execution: start-selenium}] Launching Selenium Server Waiting for Selenium Server... [INFO] Including display properties from: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium/display.properties [INFO] User extensions: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium/user-extensions.js 12:57:19,390 INFO [org.openqa.selenium.server.SeleniumServer] Java: Sun Microsystems Inc. 14.2-b01 12:57:19,391 INFO [org.openqa.selenium.server.SeleniumServer] OS: Linux 2.6.30.8-64.fc11.i686.PAE i386 12:57:19,400 INFO [org.openqa.selenium.server.SeleniumServer] v1.0.1 [2697], with Core v@VERSION@ [@REVISION@] 12:57:19,464 INFO [org.mortbay.http.HttpServer] Version Jetty/5.1.x 12:57:19,465 INFO [org.mortbay.util.Container] Started HttpContext[/selenium-server/driver,/selenium-server/driver] 12:57:19,465 INFO [org.mortbay.util.Container] Started HttpContext[/selenium-server,/selenium-server] 12:57:19,465 INFO [org.mortbay.util.Container] Started HttpContext[/,/] 12:57:19,470 INFO [org.mortbay.http.SocketListener] Started SocketListener on 0.0.0.0:8090 12:57:19,470 INFO [org.mortbay.util.Container] Started org.mortbay.jetty.Server@199f91c 12:57:20,196 INFO [org.mortbay.util.Credential] Checking Resource aliases Selenium Server started [INFO] [compiler:testCompile {execution: compila-testes}] [INFO] Compiling 11 source files to /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/test-classes [INFO] [surefire:test {execution: testes-funcionais}] [INFO] Surefire report directory: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/surefire-reports ------------------------------------------------------- T E S T S ------------------------------------------------------- Running br.com.optimus.teste.usuario.TestNavegacao 12:57:21,862 INFO [org.mortbay.util.Credential] Checking Resource aliases 12:57:21,868 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request: getNewBrowserSession[*firefox, http://prod1, ] on session null 12:57:21,870 INFO [org.openqa.selenium.server.BrowserSessionFactory] creating new remote session 12:57:21,959 INFO [org.openqa.selenium.server.BrowserSessionFactory] Allocated session 76fa5615ee734a3ab6dbc5bf91df8ed0 for http://prod1, launching... 12:57:22,016 INFO [org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher] Preparing Firefox profile... Xlib: extension "RANDR" missing on display ":20.0". 12:57:42,073 ERROR [org.openqa.selenium.server.BrowserSessionFactory] Failed to start new browser session, shutdown browser and clear all session data java.lang.RuntimeException: Timed out waiting for profile to be created! at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.waitForFullProfileToBeCreated(FirefoxChromeLauncher.java:305) at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.populateCustomProfileDirectory(FirefoxChromeLauncher.java:106) at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.launch(FirefoxChromeLauncher.java:83) at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.launchRemoteSession(FirefoxChromeLauncher.java:350) at org.openqa.selenium.server.browserlaunchers.FirefoxLauncher.launchRemoteSession(FirefoxLauncher.java:98) at org.openqa.selenium.server.BrowserSessionFactory.createNewRemoteSession(BrowserSessionFactory.java:357) at org.openqa.selenium.server.BrowserSessionFactory.getNewBrowserSession(BrowserSessionFactory.java:122) at org.openqa.selenium.server.BrowserSessionFactory.getNewBrowserSession(BrowserSessionFactory.java:84) at org.openqa.selenium.server.SeleniumDriverResourceHandler.getNewBrowserSession(SeleniumDriverResourceHandler.java:712) at org.openqa.selenium.server.SeleniumDriverResourceHandler.doCommand(SeleniumDriverResourceHandler.java:393) at org.openqa.selenium.server.SeleniumDriverResourceHandler.handleCommandRequest(SeleniumDriverResourceHandler.java:364) at org.openqa.selenium.server.SeleniumDriverResourceHandler.handle(SeleniumDriverResourceHandler.java:125) at org.mortbay.http.HttpContext.handle(HttpContext.java:1530) at org.mortbay.http.HttpContext.handle(HttpContext.java:1482) at org.mortbay.http.HttpServer.service(HttpServer.java:909) at org.mortbay.http.HttpConnection.service(HttpConnection.java:820) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:986) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:837) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:245) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
|
|
[jira] Commented: (CONTINUUM-2405) Selenium fails with java.lang.RuntimeException: Timed out waiting for profile to be created! inside Continuum
by JIRA jira@codehaus.org
::
Rate this Message:
Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message [ http://jira.codehaus.org/browse/CONTINUUM-2405?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=197322#action_197322 ] André Salvati commented on CONTINUUM-2405: ------------------------------------------ Ops... I meant: "Otherwise, when I run the same phases inside Continuum, it fails..." When I run it from the console, I am logged as root. This is my .pom configuration: <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>selenium-maven-plugin</artifactId> <configuration> <port>8090</port> <background>false</background> </configuration> <executions> <execution> <id>xvfb</id> <phase>pre-integration-test</phase> <goals> <goal>xvfb</goal> </goals> <configuration> <display>:20</display> <background>true</background> </configuration> </execution> <execution> <id>start-selenium</id> <phase>pre-integration-test</phase> <goals> <goal>start-server</goal> </goals> <configuration> <background>true</background> <port>8090</port> </configuration> </execution> </executions> </plugin> > Selenium fails with java.lang.RuntimeException: Timed out waiting for profile to be created! inside Continuum > ------------------------------------------------------------------------------------------------------------- > > Key: CONTINUUM-2405 > URL: http://jira.codehaus.org/browse/CONTINUUM-2405 > Project: Continuum > Issue Type: Bug > Affects Versions: 1.3.4 > Environment: Maven 2.2.1 > Continuum 1.3.4 > Linux Fedora 11 > Reporter: André Salvati > > I've been trying to run Continuum + Selenium Java tests + X virtual server (xvfb) without success. > Continuum process is running with root privileges. > When I run maven from console (mvn clean install), selenium works smoothly: > [INFO] Scanning for projects... > [INFO] ------------------------------------------------------------------------ > [INFO] Building MenuEAR > [INFO] task-segment: [clean, install] > [INFO] ------------------------------------------------------------------------ > [INFO] [clean:clean {execution: default-clean}] > [INFO] Deleting directory /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target > [INFO] [ear:generate-application-xml {execution: default-generate-application-xml}] > [INFO] Generating application.xml > [INFO] Generating jboss-app.xml > [INFO] [resources:resources {execution: default-resources}] > [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! > [INFO] Copying 23 resources > [INFO] [ear:ear {execution: default-ear}] > [INFO] Copying artifact[ejb:Web:MenuJAR:1.0-SNAPSHOT] to[MenuJAR-1.0-SNAPSHOT.jar] > [INFO] Copying artifact[war:Web:MenuWAR:1.0-SNAPSHOT] to[MenuWAR-1.0-SNAPSHOT.war] > [INFO] Copying artifact[jar:org.richfaces.ui:richfaces-ui:3.3.1.GA] to[lib/richfaces-ui-3.3.1.GA.jar] > [INFO] Copying artifact[jar:org.richfaces.framework:richfaces-impl:3.3.1.GA] to[lib/richfaces-impl-3.3.1.GA.jar] > [INFO] Copying artifact[jar:commons-digester:commons-digester:1.8.1] to[lib/commons-digester-1.8.1.jar] > [INFO] Copying artifact[jar:commons-beanutils:commons-beanutils:1.7.0] to[lib/commons-beanutils-1.7.0.jar] > [INFO] Copying artifact[jar:org.richfaces.framework:richfaces-api:3.3.1.GA] to[lib/richfaces-api-3.3.1.GA.jar] > [INFO] Copying artifact[jar:commons-collections:commons-collections:3.2] to[lib/commons-collections-3.2.jar] > [INFO] Copying artifact[jar:commons-logging:commons-logging:1.0.4] to[lib/commons-logging-1.0.4.jar] > [INFO] Copying artifact[jar:org.jbpm.jbpm3:jbpm-jpdl:3.2.6.SP1] to[lib/jbpm-jpdl-3.2.6.SP1.jar] > [INFO] Copying artifact[jar:org.jbpm.jbpm3:jbpm-identity:3.2.6.SP1] to[lib/jbpm-identity-3.2.6.SP1.jar] > [INFO] Copying artifact[jar:jasperreports:jasperreports:3.6.0] to[lib/jasperreports-3.6.0.jar] > [INFO] Copying artifact[jar:org.codehaus.groovy:groovy-all:1.5.5] to[lib/groovy-all-1.5.5.jar] > [INFO] Copying artifact[jar:junit:junit:4.7] to[lib/junit-4.7.jar] > [INFO] Copying artifact[jar:org.apache.ant:ant:1.7.0] to[lib/ant-1.7.0.jar] > [INFO] Copying artifact[jar:org.apache.ant:ant-launcher:1.7.0] to[lib/ant-launcher-1.7.0.jar] > [INFO] Copying artifact[jar:jline:jline:0.9.94] to[lib/jline-0.9.94.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam:2.2.0.GA] to[lib/jboss-seam-2.2.0.GA.jar] > [INFO] Copying artifact[jar:xstream:xstream:1.1.3] to[lib/xstream-1.1.3.jar] > [INFO] Copying artifact[jar:xpp3:xpp3_min:1.1.3.4.O] to[lib/xpp3_min-1.1.3.4.O.jar] > [INFO] Copying artifact[jar:org.jboss.el:jboss-el:1.0_02.CR4] to[lib/jboss-el-1.0_02.CR4.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-ui:2.2.0.GA] to[lib/jboss-seam-ui-2.2.0.GA.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-jul:2.2.0.GA] to[lib/jboss-seam-jul-2.2.0.GA.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-debug:2.2.0.GA] to[lib/jboss-seam-debug-2.2.0.GA.jar] > [INFO] Copying artifact[jar:com.sun.facelets:jsf-facelets:1.1.15.B1] to[lib/jsf-facelets-1.1.15.B1.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-ioc:2.2.0.GA] to[lib/jboss-seam-ioc-2.2.0.GA.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-pdf:2.2.0.GA] to[lib/jboss-seam-pdf-2.2.0.GA.jar] > [INFO] Copying artifact[jar:com.lowagie:itext:2.1.2] to[lib/itext-2.1.2.jar] > [INFO] Copying artifact[jar:com.lowagie:itext-rtf:2.1.2] to[lib/itext-rtf-2.1.2.jar] > [INFO] Copy ear sources to /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/menu > [INFO] Could not find manifest file: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/src/main/application/META-INF/MANIFEST.MF - Generating one > [INFO] Building jar: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/menu.ear > [INFO] [selenium:xvfb {execution: xvfb}] > [INFO] Starting Xvfb... > [INFO] Using display: :20 > [INFO] Using Xauthority file: /tmp/Xvfb7302122594304485725.Xauthority > Deleting: /tmp/Xvfb7302122594304485725.Xauthority > xauth: creating new authority file /tmp/Xvfb7302122594304485725.Xauthority > Created dir: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium > Launching Xvfb > Waiting for Xvfb... > [INFO] Redirecting output to: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium/xvfb.log > Xvfb started > [INFO] [selenium:start-server {execution: start-selenium}] > Launching Selenium Server > [INFO] Including display properties from: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium/display.properties > [INFO] User extensions: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium/user-extensions.js > Waiting for Selenium Server... > 12:44:18,054 INFO [org.openqa.selenium.server.SeleniumServer] Java: Sun Microsystems Inc. 14.2-b01 > 12:44:18,055 INFO [org.openqa.selenium.server.SeleniumServer] OS: Linux 2.6.30.8-64.fc11.i686.PAE i386 > 12:44:18,066 INFO [org.openqa.selenium.server.SeleniumServer] v1.0.1 [2697], with Core v@VERSION@ [@REVISION@] > 12:44:18,163 INFO [org.mortbay.http.HttpServer] Version Jetty/5.1.x > 12:44:18,165 INFO [org.mortbay.util.Container] Started HttpContext[/selenium-server/driver,/selenium-server/driver] > 12:44:18,166 INFO [org.mortbay.util.Container] Started HttpContext[/selenium-server,/selenium-server] > 12:44:18,166 INFO [org.mortbay.util.Container] Started HttpContext[/,/] > 12:44:18,173 INFO [org.mortbay.http.SocketListener] Started SocketListener on 0.0.0.0:8090 > 12:44:18,173 INFO [org.mortbay.util.Container] Started org.mortbay.jetty.Server@148aa23 > 12:44:18,832 INFO [org.mortbay.util.Credential] Checking Resource aliases > Selenium Server started > [INFO] [compiler:testCompile {execution: compila-testes}] > [INFO] Compiling 11 source files to /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/test-classes > [INFO] [surefire:test {execution: testes-funcionais}] > [INFO] Surefire report directory: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/surefire-reports > ------------------------------------------------------- > T E S T S > ------------------------------------------------------- > Running br.com.optimus.teste.usuario.TestNavegacao > 12:44:20,659 INFO [org.mortbay.util.Credential] Checking Resource aliases > 12:44:20,665 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request: getNewBrowserSession[*firefox, http://prod1, ] on session null > 12:44:20,668 INFO [org.openqa.selenium.server.BrowserSessionFactory] creating new remote session > 12:44:20,775 INFO [org.openqa.selenium.server.BrowserSessionFactory] Allocated session a0d622d6b2d74fc7b5386a29752d7b89 for http://prod1, launching... > 12:44:20,806 INFO [org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher] Preparing Firefox profile... > Xlib: extension "RANDR" missing on display ":20.0". > Xlib: extension "RANDR" missing on display ":20.0". > 12:44:24,064 INFO [org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher] Launching Firefox... > 12:44:26,098 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Got result: OK,a0d622d6b2d74fc7b5386a29752d7b89 on session a0d622d6b2d74fc7b5386a29752d7b89 > 12:44:26,104 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request: open[/erp/login.seam, ] on session a0d622d6b2d74fc7b5386a29752d7b89 > 12:44:26,241 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Got result: OK on session a0d622d6b2d74fc7b5386a29752d7b89 > 12:44:26,244 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request: waitForPageToLoad[3000, ] on session a0d622d6b2d74fc7b5386a29752d7b89 > 12:44:26,264 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Got result: OK on session a0d622d6b2d74fc7b5386a29752d7b89 > 12:44:26,266 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request: type[login:username, demo1] on session a0d622d6b2d74fc7b5386a29752d7b89 > aberto /erp/login.seam > 12:44:26,299 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Got result: OK on session a0d622d6b2d74fc7b5386a29752d7b89 > 12:44:26,301 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request: type[login:password, demo1] on session a0d622d6b2d74fc7b5386a29752d7b89 > preenchido login:username com demo1 > (....) > Otherwise, when I run the same phases inside Selenium, it fails: > [INFO] Scanning for projects... > [INFO] ------------------------------------------------------------------------ > [INFO] Building MenuEAR > [INFO] task-segment: [clean, install] > [INFO] ------------------------------------------------------------------------ > [INFO] [clean:clean {execution: default-clean}] > [INFO] Deleting directory /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target > [INFO] [ear:generate-application-xml {execution: default-generate-application-xml}] > [INFO] Generating application.xml > [INFO] Generating jboss-app.xml > [INFO] [resources:resources {execution: default-resources}] > [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! > [INFO] Copying 23 resources > [INFO] [ear:ear {execution: default-ear}] > [INFO] Copying artifact[ejb:Web:MenuJAR:1.0-SNAPSHOT] to[MenuJAR-1.0-SNAPSHOT.jar] > [INFO] Copying artifact[war:Web:MenuWAR:1.0-SNAPSHOT] to[MenuWAR-1.0-SNAPSHOT.war] > [INFO] Copying artifact[jar:org.richfaces.ui:richfaces-ui:3.3.1.GA] to[lib/richfaces-ui-3.3.1.GA.jar] > [INFO] Copying artifact[jar:org.richfaces.framework:richfaces-impl:3.3.1.GA] to[lib/richfaces-impl-3.3.1.GA.jar] > [INFO] Copying artifact[jar:commons-digester:commons-digester:1.8.1] to[lib/commons-digester-1.8.1.jar] > [INFO] Copying artifact[jar:commons-beanutils:commons-beanutils:1.7.0] to[lib/commons-beanutils-1.7.0.jar] > [INFO] Copying artifact[jar:org.richfaces.framework:richfaces-api:3.3.1.GA] to[lib/richfaces-api-3.3.1.GA.jar] > [INFO] Copying artifact[jar:commons-collections:commons-collections:3.2] to[lib/commons-collections-3.2.jar] > [INFO] Copying artifact[jar:commons-logging:commons-logging:1.0.4] to[lib/commons-logging-1.0.4.jar] > [INFO] Copying artifact[jar:org.jbpm.jbpm3:jbpm-jpdl:3.2.6.SP1] to[lib/jbpm-jpdl-3.2.6.SP1.jar] > [INFO] Copying artifact[jar:org.jbpm.jbpm3:jbpm-identity:3.2.6.SP1] to[lib/jbpm-identity-3.2.6.SP1.jar] > [INFO] Copying artifact[jar:jasperreports:jasperreports:3.6.0] to[lib/jasperreports-3.6.0.jar] > [INFO] Copying artifact[jar:org.codehaus.groovy:groovy-all:1.5.5] to[lib/groovy-all-1.5.5.jar] > [INFO] Copying artifact[jar:junit:junit:4.7] to[lib/junit-4.7.jar] > [INFO] Copying artifact[jar:org.apache.ant:ant:1.7.0] to[lib/ant-1.7.0.jar] > [INFO] Copying artifact[jar:org.apache.ant:ant-launcher:1.7.0] to[lib/ant-launcher-1.7.0.jar] > [INFO] Copying artifact[jar:jline:jline:0.9.94] to[lib/jline-0.9.94.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam:2.2.0.GA] to[lib/jboss-seam-2.2.0.GA.jar] > [INFO] Copying artifact[jar:xstream:xstream:1.1.3] to[lib/xstream-1.1.3.jar] > [INFO] Copying artifact[jar:xpp3:xpp3_min:1.1.3.4.O] to[lib/xpp3_min-1.1.3.4.O.jar] > [INFO] Copying artifact[jar:org.jboss.el:jboss-el:1.0_02.CR4] to[lib/jboss-el-1.0_02.CR4.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-ui:2.2.0.GA] to[lib/jboss-seam-ui-2.2.0.GA.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-jul:2.2.0.GA] to[lib/jboss-seam-jul-2.2.0.GA.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-debug:2.2.0.GA] to[lib/jboss-seam-debug-2.2.0.GA.jar] > [INFO] Copying artifact[jar:com.sun.facelets:jsf-facelets:1.1.15.B1] to[lib/jsf-facelets-1.1.15.B1.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-ioc:2.2.0.GA] to[lib/jboss-seam-ioc-2.2.0.GA.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-pdf:2.2.0.GA] to[lib/jboss-seam-pdf-2.2.0.GA.jar] > [INFO] Copying artifact[jar:com.lowagie:itext:2.1.2] to[lib/itext-2.1.2.jar] > [INFO] Copying artifact[jar:com.lowagie:itext-rtf:2.1.2] to[lib/itext-rtf-2.1.2.jar] > [INFO] Copy ear sources to /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/menu > [INFO] Could not find manifest file: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/src/main/application/META-INF/MANIFEST.MF - Generating one > [INFO] Building jar: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/menu.ear > [INFO] [selenium:xvfb {execution: xvfb}] > [INFO] Starting Xvfb... > [INFO] Using display: :20 > [INFO] Using Xauthority file: /tmp/Xvfb31539120038900714.Xauthority > Deleting: /tmp/Xvfb31539120038900714.Xauthority > xauth: creating new authority file /tmp/Xvfb31539120038900714.Xauthority > Created dir: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium > Launching Xvfb > Waiting for Xvfb... > [INFO] Redirecting output to: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium/xvfb.log > Xvfb started > [INFO] [selenium:start-server {execution: start-selenium}] > Launching Selenium Server > Waiting for Selenium Server... > [INFO] Including display properties from: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium/display.properties > [INFO] User extensions: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium/user-extensions.js > 12:57:19,390 INFO [org.openqa.selenium.server.SeleniumServer] Java: Sun Microsystems Inc. 14.2-b01 > 12:57:19,391 INFO [org.openqa.selenium.server.SeleniumServer] OS: Linux 2.6.30.8-64.fc11.i686.PAE i386 > 12:57:19,400 INFO [org.openqa.selenium.server.SeleniumServer] v1.0.1 [2697], with Core v@VERSION@ [@REVISION@] > 12:57:19,464 INFO [org.mortbay.http.HttpServer] Version Jetty/5.1.x > 12:57:19,465 INFO [org.mortbay.util.Container] Started HttpContext[/selenium-server/driver,/selenium-server/driver] > 12:57:19,465 INFO [org.mortbay.util.Container] Started HttpContext[/selenium-server,/selenium-server] > 12:57:19,465 INFO [org.mortbay.util.Container] Started HttpContext[/,/] > 12:57:19,470 INFO [org.mortbay.http.SocketListener] Started SocketListener on 0.0.0.0:8090 > 12:57:19,470 INFO [org.mortbay.util.Container] Started org.mortbay.jetty.Server@199f91c > 12:57:20,196 INFO [org.mortbay.util.Credential] Checking Resource aliases > Selenium Server started > [INFO] [compiler:testCompile {execution: compila-testes}] > [INFO] Compiling 11 source files to /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/test-classes > [INFO] [surefire:test {execution: testes-funcionais}] > [INFO] Surefire report directory: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/surefire-reports > ------------------------------------------------------- > T E S T S > ------------------------------------------------------- > Running br.com.optimus.teste.usuario.TestNavegacao > 12:57:21,862 INFO [org.mortbay.util.Credential] Checking Resource aliases > 12:57:21,868 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request: getNewBrowserSession[*firefox, http://prod1, ] on session null > 12:57:21,870 INFO [org.openqa.selenium.server.BrowserSessionFactory] creating new remote session > 12:57:21,959 INFO [org.openqa.selenium.server.BrowserSessionFactory] Allocated session 76fa5615ee734a3ab6dbc5bf91df8ed0 for http://prod1, launching... > 12:57:22,016 INFO [org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher] Preparing Firefox profile... > Xlib: extension "RANDR" missing on display ":20.0". > 12:57:42,073 ERROR [org.openqa.selenium.server.BrowserSessionFactory] Failed to start new browser session, shutdown browser and clear all session data > java.lang.RuntimeException: Timed out waiting for profile to be created! > at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.waitForFullProfileToBeCreated(FirefoxChromeLauncher.java:305) > at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.populateCustomProfileDirectory(FirefoxChromeLauncher.java:106) > at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.launch(FirefoxChromeLauncher.java:83) > at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.launchRemoteSession(FirefoxChromeLauncher.java:350) > at org.openqa.selenium.server.browserlaunchers.FirefoxLauncher.launchRemoteSession(FirefoxLauncher.java:98) > at org.openqa.selenium.server.BrowserSessionFactory.createNewRemoteSession(BrowserSessionFactory.java:357) > at org.openqa.selenium.server.BrowserSessionFactory.getNewBrowserSession(BrowserSessionFactory.java:122) > at org.openqa.selenium.server.BrowserSessionFactory.getNewBrowserSession(BrowserSessionFactory.java:84) > at org.openqa.selenium.server.SeleniumDriverResourceHandler.getNewBrowserSession(SeleniumDriverResourceHandler.java:712) > at org.openqa.selenium.server.SeleniumDriverResourceHandler.doCommand(SeleniumDriverResourceHandler.java:393) > at org.openqa.selenium.server.SeleniumDriverResourceHandler.handleCommandRequest(SeleniumDriverResourceHandler.java:364) > at org.openqa.selenium.server.SeleniumDriverResourceHandler.handle(SeleniumDriverResourceHandler.java:125) > at org.mortbay.http.HttpContext.handle(HttpContext.java:1530) > at org.mortbay.http.HttpContext.handle(HttpContext.java:1482) > at org.mortbay.http.HttpServer.service(HttpServer.java:909) > at org.mortbay.http.HttpConnection.service(HttpConnection.java:820) > at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:986) > at org.mortbay.http.HttpConnection.handle(HttpConnection.java:837) > at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:245) > at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) > at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534) > -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
|
|
[jira] Commented: (CONTINUUM-2405) Selenium fails with java.lang.RuntimeException: Timed out waiting for profile to be created! inside Continuum
by JIRA jira@codehaus.org
::
Rate this Message:
Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message [ http://jira.codehaus.org/browse/CONTINUUM-2405?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=197460#action_197460 ] André Salvati commented on CONTINUUM-2405: ------------------------------------------ I've also tried to initialize Continuum within a virtual display. Same error. # run Continuum as root cd /opt/apache-continuum-1.3.4/bin Xvfb :20 -ac -noreset -extension RANDR & DISPLAY=:20 ./continuum $* > Selenium fails with java.lang.RuntimeException: Timed out waiting for profile to be created! inside Continuum > ------------------------------------------------------------------------------------------------------------- > > Key: CONTINUUM-2405 > URL: http://jira.codehaus.org/browse/CONTINUUM-2405 > Project: Continuum > Issue Type: Bug > Affects Versions: 1.3.4 > Environment: Maven 2.2.1 > Continuum 1.3.4 > Linux Fedora 11 > Reporter: André Salvati > > I've been trying to run Continuum + Selenium Java tests + X virtual server (xvfb) without success. > Continuum process is running with root privileges. > When I run maven from console (mvn clean install), selenium works smoothly: > [INFO] Scanning for projects... > [INFO] ------------------------------------------------------------------------ > [INFO] Building MenuEAR > [INFO] task-segment: [clean, install] > [INFO] ------------------------------------------------------------------------ > [INFO] [clean:clean {execution: default-clean}] > [INFO] Deleting directory /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target > [INFO] [ear:generate-application-xml {execution: default-generate-application-xml}] > [INFO] Generating application.xml > [INFO] Generating jboss-app.xml > [INFO] [resources:resources {execution: default-resources}] > [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! > [INFO] Copying 23 resources > [INFO] [ear:ear {execution: default-ear}] > [INFO] Copying artifact[ejb:Web:MenuJAR:1.0-SNAPSHOT] to[MenuJAR-1.0-SNAPSHOT.jar] > [INFO] Copying artifact[war:Web:MenuWAR:1.0-SNAPSHOT] to[MenuWAR-1.0-SNAPSHOT.war] > [INFO] Copying artifact[jar:org.richfaces.ui:richfaces-ui:3.3.1.GA] to[lib/richfaces-ui-3.3.1.GA.jar] > [INFO] Copying artifact[jar:org.richfaces.framework:richfaces-impl:3.3.1.GA] to[lib/richfaces-impl-3.3.1.GA.jar] > [INFO] Copying artifact[jar:commons-digester:commons-digester:1.8.1] to[lib/commons-digester-1.8.1.jar] > [INFO] Copying artifact[jar:commons-beanutils:commons-beanutils:1.7.0] to[lib/commons-beanutils-1.7.0.jar] > [INFO] Copying artifact[jar:org.richfaces.framework:richfaces-api:3.3.1.GA] to[lib/richfaces-api-3.3.1.GA.jar] > [INFO] Copying artifact[jar:commons-collections:commons-collections:3.2] to[lib/commons-collections-3.2.jar] > [INFO] Copying artifact[jar:commons-logging:commons-logging:1.0.4] to[lib/commons-logging-1.0.4.jar] > [INFO] Copying artifact[jar:org.jbpm.jbpm3:jbpm-jpdl:3.2.6.SP1] to[lib/jbpm-jpdl-3.2.6.SP1.jar] > [INFO] Copying artifact[jar:org.jbpm.jbpm3:jbpm-identity:3.2.6.SP1] to[lib/jbpm-identity-3.2.6.SP1.jar] > [INFO] Copying artifact[jar:jasperreports:jasperreports:3.6.0] to[lib/jasperreports-3.6.0.jar] > [INFO] Copying artifact[jar:org.codehaus.groovy:groovy-all:1.5.5] to[lib/groovy-all-1.5.5.jar] > [INFO] Copying artifact[jar:junit:junit:4.7] to[lib/junit-4.7.jar] > [INFO] Copying artifact[jar:org.apache.ant:ant:1.7.0] to[lib/ant-1.7.0.jar] > [INFO] Copying artifact[jar:org.apache.ant:ant-launcher:1.7.0] to[lib/ant-launcher-1.7.0.jar] > [INFO] Copying artifact[jar:jline:jline:0.9.94] to[lib/jline-0.9.94.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam:2.2.0.GA] to[lib/jboss-seam-2.2.0.GA.jar] > [INFO] Copying artifact[jar:xstream:xstream:1.1.3] to[lib/xstream-1.1.3.jar] > [INFO] Copying artifact[jar:xpp3:xpp3_min:1.1.3.4.O] to[lib/xpp3_min-1.1.3.4.O.jar] > [INFO] Copying artifact[jar:org.jboss.el:jboss-el:1.0_02.CR4] to[lib/jboss-el-1.0_02.CR4.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-ui:2.2.0.GA] to[lib/jboss-seam-ui-2.2.0.GA.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-jul:2.2.0.GA] to[lib/jboss-seam-jul-2.2.0.GA.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-debug:2.2.0.GA] to[lib/jboss-seam-debug-2.2.0.GA.jar] > [INFO] Copying artifact[jar:com.sun.facelets:jsf-facelets:1.1.15.B1] to[lib/jsf-facelets-1.1.15.B1.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-ioc:2.2.0.GA] to[lib/jboss-seam-ioc-2.2.0.GA.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-pdf:2.2.0.GA] to[lib/jboss-seam-pdf-2.2.0.GA.jar] > [INFO] Copying artifact[jar:com.lowagie:itext:2.1.2] to[lib/itext-2.1.2.jar] > [INFO] Copying artifact[jar:com.lowagie:itext-rtf:2.1.2] to[lib/itext-rtf-2.1.2.jar] > [INFO] Copy ear sources to /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/menu > [INFO] Could not find manifest file: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/src/main/application/META-INF/MANIFEST.MF - Generating one > [INFO] Building jar: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/menu.ear > [INFO] [selenium:xvfb {execution: xvfb}] > [INFO] Starting Xvfb... > [INFO] Using display: :20 > [INFO] Using Xauthority file: /tmp/Xvfb7302122594304485725.Xauthority > Deleting: /tmp/Xvfb7302122594304485725.Xauthority > xauth: creating new authority file /tmp/Xvfb7302122594304485725.Xauthority > Created dir: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium > Launching Xvfb > Waiting for Xvfb... > [INFO] Redirecting output to: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium/xvfb.log > Xvfb started > [INFO] [selenium:start-server {execution: start-selenium}] > Launching Selenium Server > [INFO] Including display properties from: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium/display.properties > [INFO] User extensions: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium/user-extensions.js > Waiting for Selenium Server... > 12:44:18,054 INFO [org.openqa.selenium.server.SeleniumServer] Java: Sun Microsystems Inc. 14.2-b01 > 12:44:18,055 INFO [org.openqa.selenium.server.SeleniumServer] OS: Linux 2.6.30.8-64.fc11.i686.PAE i386 > 12:44:18,066 INFO [org.openqa.selenium.server.SeleniumServer] v1.0.1 [2697], with Core v@VERSION@ [@REVISION@] > 12:44:18,163 INFO [org.mortbay.http.HttpServer] Version Jetty/5.1.x > 12:44:18,165 INFO [org.mortbay.util.Container] Started HttpContext[/selenium-server/driver,/selenium-server/driver] > 12:44:18,166 INFO [org.mortbay.util.Container] Started HttpContext[/selenium-server,/selenium-server] > 12:44:18,166 INFO [org.mortbay.util.Container] Started HttpContext[/,/] > 12:44:18,173 INFO [org.mortbay.http.SocketListener] Started SocketListener on 0.0.0.0:8090 > 12:44:18,173 INFO [org.mortbay.util.Container] Started org.mortbay.jetty.Server@148aa23 > 12:44:18,832 INFO [org.mortbay.util.Credential] Checking Resource aliases > Selenium Server started > [INFO] [compiler:testCompile {execution: compila-testes}] > [INFO] Compiling 11 source files to /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/test-classes > [INFO] [surefire:test {execution: testes-funcionais}] > [INFO] Surefire report directory: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/surefire-reports > ------------------------------------------------------- > T E S T S > ------------------------------------------------------- > Running br.com.optimus.teste.usuario.TestNavegacao > 12:44:20,659 INFO [org.mortbay.util.Credential] Checking Resource aliases > 12:44:20,665 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request: getNewBrowserSession[*firefox, http://prod1, ] on session null > 12:44:20,668 INFO [org.openqa.selenium.server.BrowserSessionFactory] creating new remote session > 12:44:20,775 INFO [org.openqa.selenium.server.BrowserSessionFactory] Allocated session a0d622d6b2d74fc7b5386a29752d7b89 for http://prod1, launching... > 12:44:20,806 INFO [org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher] Preparing Firefox profile... > Xlib: extension "RANDR" missing on display ":20.0". > Xlib: extension "RANDR" missing on display ":20.0". > 12:44:24,064 INFO [org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher] Launching Firefox... > 12:44:26,098 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Got result: OK,a0d622d6b2d74fc7b5386a29752d7b89 on session a0d622d6b2d74fc7b5386a29752d7b89 > 12:44:26,104 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request: open[/erp/login.seam, ] on session a0d622d6b2d74fc7b5386a29752d7b89 > 12:44:26,241 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Got result: OK on session a0d622d6b2d74fc7b5386a29752d7b89 > 12:44:26,244 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request: waitForPageToLoad[3000, ] on session a0d622d6b2d74fc7b5386a29752d7b89 > 12:44:26,264 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Got result: OK on session a0d622d6b2d74fc7b5386a29752d7b89 > 12:44:26,266 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request: type[login:username, demo1] on session a0d622d6b2d74fc7b5386a29752d7b89 > aberto /erp/login.seam > 12:44:26,299 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Got result: OK on session a0d622d6b2d74fc7b5386a29752d7b89 > 12:44:26,301 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request: type[login:password, demo1] on session a0d622d6b2d74fc7b5386a29752d7b89 > preenchido login:username com demo1 > (....) > Otherwise, when I run the same phases inside Selenium, it fails: > [INFO] Scanning for projects... > [INFO] ------------------------------------------------------------------------ > [INFO] Building MenuEAR > [INFO] task-segment: [clean, install] > [INFO] ------------------------------------------------------------------------ > [INFO] [clean:clean {execution: default-clean}] > [INFO] Deleting directory /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target > [INFO] [ear:generate-application-xml {execution: default-generate-application-xml}] > [INFO] Generating application.xml > [INFO] Generating jboss-app.xml > [INFO] [resources:resources {execution: default-resources}] > [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! > [INFO] Copying 23 resources > [INFO] [ear:ear {execution: default-ear}] > [INFO] Copying artifact[ejb:Web:MenuJAR:1.0-SNAPSHOT] to[MenuJAR-1.0-SNAPSHOT.jar] > [INFO] Copying artifact[war:Web:MenuWAR:1.0-SNAPSHOT] to[MenuWAR-1.0-SNAPSHOT.war] > [INFO] Copying artifact[jar:org.richfaces.ui:richfaces-ui:3.3.1.GA] to[lib/richfaces-ui-3.3.1.GA.jar] > [INFO] Copying artifact[jar:org.richfaces.framework:richfaces-impl:3.3.1.GA] to[lib/richfaces-impl-3.3.1.GA.jar] > [INFO] Copying artifact[jar:commons-digester:commons-digester:1.8.1] to[lib/commons-digester-1.8.1.jar] > [INFO] Copying artifact[jar:commons-beanutils:commons-beanutils:1.7.0] to[lib/commons-beanutils-1.7.0.jar] > [INFO] Copying artifact[jar:org.richfaces.framework:richfaces-api:3.3.1.GA] to[lib/richfaces-api-3.3.1.GA.jar] > [INFO] Copying artifact[jar:commons-collections:commons-collections:3.2] to[lib/commons-collections-3.2.jar] > [INFO] Copying artifact[jar:commons-logging:commons-logging:1.0.4] to[lib/commons-logging-1.0.4.jar] > [INFO] Copying artifact[jar:org.jbpm.jbpm3:jbpm-jpdl:3.2.6.SP1] to[lib/jbpm-jpdl-3.2.6.SP1.jar] > [INFO] Copying artifact[jar:org.jbpm.jbpm3:jbpm-identity:3.2.6.SP1] to[lib/jbpm-identity-3.2.6.SP1.jar] > [INFO] Copying artifact[jar:jasperreports:jasperreports:3.6.0] to[lib/jasperreports-3.6.0.jar] > [INFO] Copying artifact[jar:org.codehaus.groovy:groovy-all:1.5.5] to[lib/groovy-all-1.5.5.jar] > [INFO] Copying artifact[jar:junit:junit:4.7] to[lib/junit-4.7.jar] > [INFO] Copying artifact[jar:org.apache.ant:ant:1.7.0] to[lib/ant-1.7.0.jar] > [INFO] Copying artifact[jar:org.apache.ant:ant-launcher:1.7.0] to[lib/ant-launcher-1.7.0.jar] > [INFO] Copying artifact[jar:jline:jline:0.9.94] to[lib/jline-0.9.94.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam:2.2.0.GA] to[lib/jboss-seam-2.2.0.GA.jar] > [INFO] Copying artifact[jar:xstream:xstream:1.1.3] to[lib/xstream-1.1.3.jar] > [INFO] Copying artifact[jar:xpp3:xpp3_min:1.1.3.4.O] to[lib/xpp3_min-1.1.3.4.O.jar] > [INFO] Copying artifact[jar:org.jboss.el:jboss-el:1.0_02.CR4] to[lib/jboss-el-1.0_02.CR4.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-ui:2.2.0.GA] to[lib/jboss-seam-ui-2.2.0.GA.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-jul:2.2.0.GA] to[lib/jboss-seam-jul-2.2.0.GA.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-debug:2.2.0.GA] to[lib/jboss-seam-debug-2.2.0.GA.jar] > [INFO] Copying artifact[jar:com.sun.facelets:jsf-facelets:1.1.15.B1] to[lib/jsf-facelets-1.1.15.B1.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-ioc:2.2.0.GA] to[lib/jboss-seam-ioc-2.2.0.GA.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-pdf:2.2.0.GA] to[lib/jboss-seam-pdf-2.2.0.GA.jar] > [INFO] Copying artifact[jar:com.lowagie:itext:2.1.2] to[lib/itext-2.1.2.jar] > [INFO] Copying artifact[jar:com.lowagie:itext-rtf:2.1.2] to[lib/itext-rtf-2.1.2.jar] > [INFO] Copy ear sources to /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/menu > [INFO] Could not find manifest file: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/src/main/application/META-INF/MANIFEST.MF - Generating one > [INFO] Building jar: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/menu.ear > [INFO] [selenium:xvfb {execution: xvfb}] > [INFO] Starting Xvfb... > [INFO] Using display: :20 > [INFO] Using Xauthority file: /tmp/Xvfb31539120038900714.Xauthority > Deleting: /tmp/Xvfb31539120038900714.Xauthority > xauth: creating new authority file /tmp/Xvfb31539120038900714.Xauthority > Created dir: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium > Launching Xvfb > Waiting for Xvfb... > [INFO] Redirecting output to: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium/xvfb.log > Xvfb started > [INFO] [selenium:start-server {execution: start-selenium}] > Launching Selenium Server > Waiting for Selenium Server... > [INFO] Including display properties from: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium/display.properties > [INFO] User extensions: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium/user-extensions.js > 12:57:19,390 INFO [org.openqa.selenium.server.SeleniumServer] Java: Sun Microsystems Inc. 14.2-b01 > 12:57:19,391 INFO [org.openqa.selenium.server.SeleniumServer] OS: Linux 2.6.30.8-64.fc11.i686.PAE i386 > 12:57:19,400 INFO [org.openqa.selenium.server.SeleniumServer] v1.0.1 [2697], with Core v@VERSION@ [@REVISION@] > 12:57:19,464 INFO [org.mortbay.http.HttpServer] Version Jetty/5.1.x > 12:57:19,465 INFO [org.mortbay.util.Container] Started HttpContext[/selenium-server/driver,/selenium-server/driver] > 12:57:19,465 INFO [org.mortbay.util.Container] Started HttpContext[/selenium-server,/selenium-server] > 12:57:19,465 INFO [org.mortbay.util.Container] Started HttpContext[/,/] > 12:57:19,470 INFO [org.mortbay.http.SocketListener] Started SocketListener on 0.0.0.0:8090 > 12:57:19,470 INFO [org.mortbay.util.Container] Started org.mortbay.jetty.Server@199f91c > 12:57:20,196 INFO [org.mortbay.util.Credential] Checking Resource aliases > Selenium Server started > [INFO] [compiler:testCompile {execution: compila-testes}] > [INFO] Compiling 11 source files to /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/test-classes > [INFO] [surefire:test {execution: testes-funcionais}] > [INFO] Surefire report directory: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/surefire-reports > ------------------------------------------------------- > T E S T S > ------------------------------------------------------- > Running br.com.optimus.teste.usuario.TestNavegacao > 12:57:21,862 INFO [org.mortbay.util.Credential] Checking Resource aliases > 12:57:21,868 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request: getNewBrowserSession[*firefox, http://prod1, ] on session null > 12:57:21,870 INFO [org.openqa.selenium.server.BrowserSessionFactory] creating new remote session > 12:57:21,959 INFO [org.openqa.selenium.server.BrowserSessionFactory] Allocated session 76fa5615ee734a3ab6dbc5bf91df8ed0 for http://prod1, launching... > 12:57:22,016 INFO [org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher] Preparing Firefox profile... > Xlib: extension "RANDR" missing on display ":20.0". > 12:57:42,073 ERROR [org.openqa.selenium.server.BrowserSessionFactory] Failed to start new browser session, shutdown browser and clear all session data > java.lang.RuntimeException: Timed out waiting for profile to be created! > at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.waitForFullProfileToBeCreated(FirefoxChromeLauncher.java:305) > at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.populateCustomProfileDirectory(FirefoxChromeLauncher.java:106) > at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.launch(FirefoxChromeLauncher.java:83) > at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.launchRemoteSession(FirefoxChromeLauncher.java:350) > at org.openqa.selenium.server.browserlaunchers.FirefoxLauncher.launchRemoteSession(FirefoxLauncher.java:98) > at org.openqa.selenium.server.BrowserSessionFactory.createNewRemoteSession(BrowserSessionFactory.java:357) > at org.openqa.selenium.server.BrowserSessionFactory.getNewBrowserSession(BrowserSessionFactory.java:122) > at org.openqa.selenium.server.BrowserSessionFactory.getNewBrowserSession(BrowserSessionFactory.java:84) > at org.openqa.selenium.server.SeleniumDriverResourceHandler.getNewBrowserSession(SeleniumDriverResourceHandler.java:712) > at org.openqa.selenium.server.SeleniumDriverResourceHandler.doCommand(SeleniumDriverResourceHandler.java:393) > at org.openqa.selenium.server.SeleniumDriverResourceHandler.handleCommandRequest(SeleniumDriverResourceHandler.java:364) > at org.openqa.selenium.server.SeleniumDriverResourceHandler.handle(SeleniumDriverResourceHandler.java:125) > at org.mortbay.http.HttpContext.handle(HttpContext.java:1530) > at org.mortbay.http.HttpContext.handle(HttpContext.java:1482) > at org.mortbay.http.HttpServer.service(HttpServer.java:909) > at org.mortbay.http.HttpConnection.service(HttpConnection.java:820) > at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:986) > at org.mortbay.http.HttpConnection.handle(HttpConnection.java:837) > at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:245) > at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) > at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534) > -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
|
|
[jira] Issue Comment Edited: (CONTINUUM-2405) Selenium fails with java.lang.RuntimeException: Timed out waiting for profile to be created! inside Continuum
by JIRA jira@codehaus.org
::
Rate this Message:
Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message [ http://jira.codehaus.org/browse/CONTINUUM-2405?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=197460#action_197460 ] André Salvati edited comment on CONTINUUM-2405 at 11/6/09 4:23 AM: ------------------------------------------------------------------- I've also tried to initialize Continuum within a virtual display. Same error. cd /opt/apache-continuum-1.3.4/bin Xvfb :20 -ac -noreset -extension RANDR & DISPLAY=:20 ./continuum $* was (Author: asalvati): I've also tried to initialize Continuum within a virtual display. Same error. ## run Continuum as root cd /opt/apache-continuum-1.3.4/bin Xvfb :20 -ac -noreset -extension RANDR & DISPLAY=:20 ./continuum $* > Selenium fails with java.lang.RuntimeException: Timed out waiting for profile to be created! inside Continuum > ------------------------------------------------------------------------------------------------------------- > > Key: CONTINUUM-2405 > URL: http://jira.codehaus.org/browse/CONTINUUM-2405 > Project: Continuum > Issue Type: Bug > Affects Versions: 1.3.4 > Environment: Maven 2.2.1 > Continuum 1.3.4 > Linux Fedora 11 > Reporter: André Salvati > > I've been trying to run Continuum + Selenium Java tests + X virtual server (xvfb) without success. > Continuum process is running with root privileges. > When I run maven from console (mvn clean install), selenium works smoothly: > [INFO] Scanning for projects... > [INFO] ------------------------------------------------------------------------ > [INFO] Building MenuEAR > [INFO] task-segment: [clean, install] > [INFO] ------------------------------------------------------------------------ > [INFO] [clean:clean {execution: default-clean}] > [INFO] Deleting directory /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target > [INFO] [ear:generate-application-xml {execution: default-generate-application-xml}] > [INFO] Generating application.xml > [INFO] Generating jboss-app.xml > [INFO] [resources:resources {execution: default-resources}] > [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! > [INFO] Copying 23 resources > [INFO] [ear:ear {execution: default-ear}] > [INFO] Copying artifact[ejb:Web:MenuJAR:1.0-SNAPSHOT] to[MenuJAR-1.0-SNAPSHOT.jar] > [INFO] Copying artifact[war:Web:MenuWAR:1.0-SNAPSHOT] to[MenuWAR-1.0-SNAPSHOT.war] > [INFO] Copying artifact[jar:org.richfaces.ui:richfaces-ui:3.3.1.GA] to[lib/richfaces-ui-3.3.1.GA.jar] > [INFO] Copying artifact[jar:org.richfaces.framework:richfaces-impl:3.3.1.GA] to[lib/richfaces-impl-3.3.1.GA.jar] > [INFO] Copying artifact[jar:commons-digester:commons-digester:1.8.1] to[lib/commons-digester-1.8.1.jar] > [INFO] Copying artifact[jar:commons-beanutils:commons-beanutils:1.7.0] to[lib/commons-beanutils-1.7.0.jar] > [INFO] Copying artifact[jar:org.richfaces.framework:richfaces-api:3.3.1.GA] to[lib/richfaces-api-3.3.1.GA.jar] > [INFO] Copying artifact[jar:commons-collections:commons-collections:3.2] to[lib/commons-collections-3.2.jar] > [INFO] Copying artifact[jar:commons-logging:commons-logging:1.0.4] to[lib/commons-logging-1.0.4.jar] > [INFO] Copying artifact[jar:org.jbpm.jbpm3:jbpm-jpdl:3.2.6.SP1] to[lib/jbpm-jpdl-3.2.6.SP1.jar] > [INFO] Copying artifact[jar:org.jbpm.jbpm3:jbpm-identity:3.2.6.SP1] to[lib/jbpm-identity-3.2.6.SP1.jar] > [INFO] Copying artifact[jar:jasperreports:jasperreports:3.6.0] to[lib/jasperreports-3.6.0.jar] > [INFO] Copying artifact[jar:org.codehaus.groovy:groovy-all:1.5.5] to[lib/groovy-all-1.5.5.jar] > [INFO] Copying artifact[jar:junit:junit:4.7] to[lib/junit-4.7.jar] > [INFO] Copying artifact[jar:org.apache.ant:ant:1.7.0] to[lib/ant-1.7.0.jar] > [INFO] Copying artifact[jar:org.apache.ant:ant-launcher:1.7.0] to[lib/ant-launcher-1.7.0.jar] > [INFO] Copying artifact[jar:jline:jline:0.9.94] to[lib/jline-0.9.94.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam:2.2.0.GA] to[lib/jboss-seam-2.2.0.GA.jar] > [INFO] Copying artifact[jar:xstream:xstream:1.1.3] to[lib/xstream-1.1.3.jar] > [INFO] Copying artifact[jar:xpp3:xpp3_min:1.1.3.4.O] to[lib/xpp3_min-1.1.3.4.O.jar] > [INFO] Copying artifact[jar:org.jboss.el:jboss-el:1.0_02.CR4] to[lib/jboss-el-1.0_02.CR4.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-ui:2.2.0.GA] to[lib/jboss-seam-ui-2.2.0.GA.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-jul:2.2.0.GA] to[lib/jboss-seam-jul-2.2.0.GA.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-debug:2.2.0.GA] to[lib/jboss-seam-debug-2.2.0.GA.jar] > [INFO] Copying artifact[jar:com.sun.facelets:jsf-facelets:1.1.15.B1] to[lib/jsf-facelets-1.1.15.B1.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-ioc:2.2.0.GA] to[lib/jboss-seam-ioc-2.2.0.GA.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-pdf:2.2.0.GA] to[lib/jboss-seam-pdf-2.2.0.GA.jar] > [INFO] Copying artifact[jar:com.lowagie:itext:2.1.2] to[lib/itext-2.1.2.jar] > [INFO] Copying artifact[jar:com.lowagie:itext-rtf:2.1.2] to[lib/itext-rtf-2.1.2.jar] > [INFO] Copy ear sources to /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/menu > [INFO] Could not find manifest file: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/src/main/application/META-INF/MANIFEST.MF - Generating one > [INFO] Building jar: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/menu.ear > [INFO] [selenium:xvfb {execution: xvfb}] > [INFO] Starting Xvfb... > [INFO] Using display: :20 > [INFO] Using Xauthority file: /tmp/Xvfb7302122594304485725.Xauthority > Deleting: /tmp/Xvfb7302122594304485725.Xauthority > xauth: creating new authority file /tmp/Xvfb7302122594304485725.Xauthority > Created dir: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium > Launching Xvfb > Waiting for Xvfb... > [INFO] Redirecting output to: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium/xvfb.log > Xvfb started > [INFO] [selenium:start-server {execution: start-selenium}] > Launching Selenium Server > [INFO] Including display properties from: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium/display.properties > [INFO] User extensions: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium/user-extensions.js > Waiting for Selenium Server... > 12:44:18,054 INFO [org.openqa.selenium.server.SeleniumServer] Java: Sun Microsystems Inc. 14.2-b01 > 12:44:18,055 INFO [org.openqa.selenium.server.SeleniumServer] OS: Linux 2.6.30.8-64.fc11.i686.PAE i386 > 12:44:18,066 INFO [org.openqa.selenium.server.SeleniumServer] v1.0.1 [2697], with Core v@VERSION@ [@REVISION@] > 12:44:18,163 INFO [org.mortbay.http.HttpServer] Version Jetty/5.1.x > 12:44:18,165 INFO [org.mortbay.util.Container] Started HttpContext[/selenium-server/driver,/selenium-server/driver] > 12:44:18,166 INFO [org.mortbay.util.Container] Started HttpContext[/selenium-server,/selenium-server] > 12:44:18,166 INFO [org.mortbay.util.Container] Started HttpContext[/,/] > 12:44:18,173 INFO [org.mortbay.http.SocketListener] Started SocketListener on 0.0.0.0:8090 > 12:44:18,173 INFO [org.mortbay.util.Container] Started org.mortbay.jetty.Server@148aa23 > 12:44:18,832 INFO [org.mortbay.util.Credential] Checking Resource aliases > Selenium Server started > [INFO] [compiler:testCompile {execution: compila-testes}] > [INFO] Compiling 11 source files to /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/test-classes > [INFO] [surefire:test {execution: testes-funcionais}] > [INFO] Surefire report directory: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/surefire-reports > ------------------------------------------------------- > T E S T S > ------------------------------------------------------- > Running br.com.optimus.teste.usuario.TestNavegacao > 12:44:20,659 INFO [org.mortbay.util.Credential] Checking Resource aliases > 12:44:20,665 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request: getNewBrowserSession[*firefox, http://prod1, ] on session null > 12:44:20,668 INFO [org.openqa.selenium.server.BrowserSessionFactory] creating new remote session > 12:44:20,775 INFO [org.openqa.selenium.server.BrowserSessionFactory] Allocated session a0d622d6b2d74fc7b5386a29752d7b89 for http://prod1, launching... > 12:44:20,806 INFO [org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher] Preparing Firefox profile... > Xlib: extension "RANDR" missing on display ":20.0". > Xlib: extension "RANDR" missing on display ":20.0". > 12:44:24,064 INFO [org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher] Launching Firefox... > 12:44:26,098 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Got result: OK,a0d622d6b2d74fc7b5386a29752d7b89 on session a0d622d6b2d74fc7b5386a29752d7b89 > 12:44:26,104 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request: open[/erp/login.seam, ] on session a0d622d6b2d74fc7b5386a29752d7b89 > 12:44:26,241 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Got result: OK on session a0d622d6b2d74fc7b5386a29752d7b89 > 12:44:26,244 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request: waitForPageToLoad[3000, ] on session a0d622d6b2d74fc7b5386a29752d7b89 > 12:44:26,264 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Got result: OK on session a0d622d6b2d74fc7b5386a29752d7b89 > 12:44:26,266 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request: type[login:username, demo1] on session a0d622d6b2d74fc7b5386a29752d7b89 > aberto /erp/login.seam > 12:44:26,299 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Got result: OK on session a0d622d6b2d74fc7b5386a29752d7b89 > 12:44:26,301 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request: type[login:password, demo1] on session a0d622d6b2d74fc7b5386a29752d7b89 > preenchido login:username com demo1 > (....) > Otherwise, when I run the same phases inside Selenium, it fails: > [INFO] Scanning for projects... > [INFO] ------------------------------------------------------------------------ > [INFO] Building MenuEAR > [INFO] task-segment: [clean, install] > [INFO] ------------------------------------------------------------------------ > [INFO] [clean:clean {execution: default-clean}] > [INFO] Deleting directory /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target > [INFO] [ear:generate-application-xml {execution: default-generate-application-xml}] > [INFO] Generating application.xml > [INFO] Generating jboss-app.xml > [INFO] [resources:resources {execution: default-resources}] > [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! > [INFO] Copying 23 resources > [INFO] [ear:ear {execution: default-ear}] > [INFO] Copying artifact[ejb:Web:MenuJAR:1.0-SNAPSHOT] to[MenuJAR-1.0-SNAPSHOT.jar] > [INFO] Copying artifact[war:Web:MenuWAR:1.0-SNAPSHOT] to[MenuWAR-1.0-SNAPSHOT.war] > [INFO] Copying artifact[jar:org.richfaces.ui:richfaces-ui:3.3.1.GA] to[lib/richfaces-ui-3.3.1.GA.jar] > [INFO] Copying artifact[jar:org.richfaces.framework:richfaces-impl:3.3.1.GA] to[lib/richfaces-impl-3.3.1.GA.jar] > [INFO] Copying artifact[jar:commons-digester:commons-digester:1.8.1] to[lib/commons-digester-1.8.1.jar] > [INFO] Copying artifact[jar:commons-beanutils:commons-beanutils:1.7.0] to[lib/commons-beanutils-1.7.0.jar] > [INFO] Copying artifact[jar:org.richfaces.framework:richfaces-api:3.3.1.GA] to[lib/richfaces-api-3.3.1.GA.jar] > [INFO] Copying artifact[jar:commons-collections:commons-collections:3.2] to[lib/commons-collections-3.2.jar] > [INFO] Copying artifact[jar:commons-logging:commons-logging:1.0.4] to[lib/commons-logging-1.0.4.jar] > [INFO] Copying artifact[jar:org.jbpm.jbpm3:jbpm-jpdl:3.2.6.SP1] to[lib/jbpm-jpdl-3.2.6.SP1.jar] > [INFO] Copying artifact[jar:org.jbpm.jbpm3:jbpm-identity:3.2.6.SP1] to[lib/jbpm-identity-3.2.6.SP1.jar] > [INFO] Copying artifact[jar:jasperreports:jasperreports:3.6.0] to[lib/jasperreports-3.6.0.jar] > [INFO] Copying artifact[jar:org.codehaus.groovy:groovy-all:1.5.5] to[lib/groovy-all-1.5.5.jar] > [INFO] Copying artifact[jar:junit:junit:4.7] to[lib/junit-4.7.jar] > [INFO] Copying artifact[jar:org.apache.ant:ant:1.7.0] to[lib/ant-1.7.0.jar] > [INFO] Copying artifact[jar:org.apache.ant:ant-launcher:1.7.0] to[lib/ant-launcher-1.7.0.jar] > [INFO] Copying artifact[jar:jline:jline:0.9.94] to[lib/jline-0.9.94.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam:2.2.0.GA] to[lib/jboss-seam-2.2.0.GA.jar] > [INFO] Copying artifact[jar:xstream:xstream:1.1.3] to[lib/xstream-1.1.3.jar] > [INFO] Copying artifact[jar:xpp3:xpp3_min:1.1.3.4.O] to[lib/xpp3_min-1.1.3.4.O.jar] > [INFO] Copying artifact[jar:org.jboss.el:jboss-el:1.0_02.CR4] to[lib/jboss-el-1.0_02.CR4.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-ui:2.2.0.GA] to[lib/jboss-seam-ui-2.2.0.GA.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-jul:2.2.0.GA] to[lib/jboss-seam-jul-2.2.0.GA.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-debug:2.2.0.GA] to[lib/jboss-seam-debug-2.2.0.GA.jar] > [INFO] Copying artifact[jar:com.sun.facelets:jsf-facelets:1.1.15.B1] to[lib/jsf-facelets-1.1.15.B1.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-ioc:2.2.0.GA] to[lib/jboss-seam-ioc-2.2.0.GA.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-pdf:2.2.0.GA] to[lib/jboss-seam-pdf-2.2.0.GA.jar] > [INFO] Copying artifact[jar:com.lowagie:itext:2.1.2] to[lib/itext-2.1.2.jar] > [INFO] Copying artifact[jar:com.lowagie:itext-rtf:2.1.2] to[lib/itext-rtf-2.1.2.jar] > [INFO] Copy ear sources to /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/menu > [INFO] Could not find manifest file: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/src/main/application/META-INF/MANIFEST.MF - Generating one > [INFO] Building jar: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/menu.ear > [INFO] [selenium:xvfb {execution: xvfb}] > [INFO] Starting Xvfb... > [INFO] Using display: :20 > [INFO] Using Xauthority file: /tmp/Xvfb31539120038900714.Xauthority > Deleting: /tmp/Xvfb31539120038900714.Xauthority > xauth: creating new authority file /tmp/Xvfb31539120038900714.Xauthority > Created dir: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium > Launching Xvfb > Waiting for Xvfb... > [INFO] Redirecting output to: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium/xvfb.log > Xvfb started > [INFO] [selenium:start-server {execution: start-selenium}] > Launching Selenium Server > Waiting for Selenium Server... > [INFO] Including display properties from: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium/display.properties > [INFO] User extensions: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium/user-extensions.js > 12:57:19,390 INFO [org.openqa.selenium.server.SeleniumServer] Java: Sun Microsystems Inc. 14.2-b01 > 12:57:19,391 INFO [org.openqa.selenium.server.SeleniumServer] OS: Linux 2.6.30.8-64.fc11.i686.PAE i386 > 12:57:19,400 INFO [org.openqa.selenium.server.SeleniumServer] v1.0.1 [2697], with Core v@VERSION@ [@REVISION@] > 12:57:19,464 INFO [org.mortbay.http.HttpServer] Version Jetty/5.1.x > 12:57:19,465 INFO [org.mortbay.util.Container] Started HttpContext[/selenium-server/driver,/selenium-server/driver] > 12:57:19,465 INFO [org.mortbay.util.Container] Started HttpContext[/selenium-server,/selenium-server] > 12:57:19,465 INFO [org.mortbay.util.Container] Started HttpContext[/,/] > 12:57:19,470 INFO [org.mortbay.http.SocketListener] Started SocketListener on 0.0.0.0:8090 > 12:57:19,470 INFO [org.mortbay.util.Container] Started org.mortbay.jetty.Server@199f91c > 12:57:20,196 INFO [org.mortbay.util.Credential] Checking Resource aliases > Selenium Server started > [INFO] [compiler:testCompile {execution: compila-testes}] > [INFO] Compiling 11 source files to /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/test-classes > [INFO] [surefire:test {execution: testes-funcionais}] > [INFO] Surefire report directory: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/surefire-reports > ------------------------------------------------------- > T E S T S > ------------------------------------------------------- > Running br.com.optimus.teste.usuario.TestNavegacao > 12:57:21,862 INFO [org.mortbay.util.Credential] Checking Resource aliases > 12:57:21,868 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request: getNewBrowserSession[*firefox, http://prod1, ] on session null > 12:57:21,870 INFO [org.openqa.selenium.server.BrowserSessionFactory] creating new remote session > 12:57:21,959 INFO [org.openqa.selenium.server.BrowserSessionFactory] Allocated session 76fa5615ee734a3ab6dbc5bf91df8ed0 for http://prod1, launching... > 12:57:22,016 INFO [org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher] Preparing Firefox profile... > Xlib: extension "RANDR" missing on display ":20.0". > 12:57:42,073 ERROR [org.openqa.selenium.server.BrowserSessionFactory] Failed to start new browser session, shutdown browser and clear all session data > java.lang.RuntimeException: Timed out waiting for profile to be created! > at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.waitForFullProfileToBeCreated(FirefoxChromeLauncher.java:305) > at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.populateCustomProfileDirectory(FirefoxChromeLauncher.java:106) > at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.launch(FirefoxChromeLauncher.java:83) > at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.launchRemoteSession(FirefoxChromeLauncher.java:350) > at org.openqa.selenium.server.browserlaunchers.FirefoxLauncher.launchRemoteSession(FirefoxLauncher.java:98) > at org.openqa.selenium.server.BrowserSessionFactory.createNewRemoteSession(BrowserSessionFactory.java:357) > at org.openqa.selenium.server.BrowserSessionFactory.getNewBrowserSession(BrowserSessionFactory.java:122) > at org.openqa.selenium.server.BrowserSessionFactory.getNewBrowserSession(BrowserSessionFactory.java:84) > at org.openqa.selenium.server.SeleniumDriverResourceHandler.getNewBrowserSession(SeleniumDriverResourceHandler.java:712) > at org.openqa.selenium.server.SeleniumDriverResourceHandler.doCommand(SeleniumDriverResourceHandler.java:393) > at org.openqa.selenium.server.SeleniumDriverResourceHandler.handleCommandRequest(SeleniumDriverResourceHandler.java:364) > at org.openqa.selenium.server.SeleniumDriverResourceHandler.handle(SeleniumDriverResourceHandler.java:125) > at org.mortbay.http.HttpContext.handle(HttpContext.java:1530) > at org.mortbay.http.HttpContext.handle(HttpContext.java:1482) > at org.mortbay.http.HttpServer.service(HttpServer.java:909) > at org.mortbay.http.HttpConnection.service(HttpConnection.java:820) > at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:986) > at org.mortbay.http.HttpConnection.handle(HttpConnection.java:837) > at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:245) > at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) > at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534) > -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
|
|
[jira] Issue Comment Edited: (CONTINUUM-2405) Selenium fails with java.lang.RuntimeException: Timed out waiting for profile to be created! inside Continuum
by JIRA jira@codehaus.org
::
Rate this Message:
Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message [ http://jira.codehaus.org/browse/CONTINUUM-2405?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=197460#action_197460 ] André Salvati edited comment on CONTINUUM-2405 at 11/6/09 4:22 AM: ------------------------------------------------------------------- I've also tried to initialize Continuum within a virtual display. Same error. ## run Continuum as root cd /opt/apache-continuum-1.3.4/bin Xvfb :20 -ac -noreset -extension RANDR & DISPLAY=:20 ./continuum $* was (Author: asalvati): I've also tried to initialize Continuum within a virtual display. Same error. # run Continuum as root cd /opt/apache-continuum-1.3.4/bin Xvfb :20 -ac -noreset -extension RANDR & DISPLAY=:20 ./continuum $* > Selenium fails with java.lang.RuntimeException: Timed out waiting for profile to be created! inside Continuum > ------------------------------------------------------------------------------------------------------------- > > Key: CONTINUUM-2405 > URL: http://jira.codehaus.org/browse/CONTINUUM-2405 > Project: Continuum > Issue Type: Bug > Affects Versions: 1.3.4 > Environment: Maven 2.2.1 > Continuum 1.3.4 > Linux Fedora 11 > Reporter: André Salvati > > I've been trying to run Continuum + Selenium Java tests + X virtual server (xvfb) without success. > Continuum process is running with root privileges. > When I run maven from console (mvn clean install), selenium works smoothly: > [INFO] Scanning for projects... > [INFO] ------------------------------------------------------------------------ > [INFO] Building MenuEAR > [INFO] task-segment: [clean, install] > [INFO] ------------------------------------------------------------------------ > [INFO] [clean:clean {execution: default-clean}] > [INFO] Deleting directory /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target > [INFO] [ear:generate-application-xml {execution: default-generate-application-xml}] > [INFO] Generating application.xml > [INFO] Generating jboss-app.xml > [INFO] [resources:resources {execution: default-resources}] > [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! > [INFO] Copying 23 resources > [INFO] [ear:ear {execution: default-ear}] > [INFO] Copying artifact[ejb:Web:MenuJAR:1.0-SNAPSHOT] to[MenuJAR-1.0-SNAPSHOT.jar] > [INFO] Copying artifact[war:Web:MenuWAR:1.0-SNAPSHOT] to[MenuWAR-1.0-SNAPSHOT.war] > [INFO] Copying artifact[jar:org.richfaces.ui:richfaces-ui:3.3.1.GA] to[lib/richfaces-ui-3.3.1.GA.jar] > [INFO] Copying artifact[jar:org.richfaces.framework:richfaces-impl:3.3.1.GA] to[lib/richfaces-impl-3.3.1.GA.jar] > [INFO] Copying artifact[jar:commons-digester:commons-digester:1.8.1] to[lib/commons-digester-1.8.1.jar] > [INFO] Copying artifact[jar:commons-beanutils:commons-beanutils:1.7.0] to[lib/commons-beanutils-1.7.0.jar] > [INFO] Copying artifact[jar:org.richfaces.framework:richfaces-api:3.3.1.GA] to[lib/richfaces-api-3.3.1.GA.jar] > [INFO] Copying artifact[jar:commons-collections:commons-collections:3.2] to[lib/commons-collections-3.2.jar] > [INFO] Copying artifact[jar:commons-logging:commons-logging:1.0.4] to[lib/commons-logging-1.0.4.jar] > [INFO] Copying artifact[jar:org.jbpm.jbpm3:jbpm-jpdl:3.2.6.SP1] to[lib/jbpm-jpdl-3.2.6.SP1.jar] > [INFO] Copying artifact[jar:org.jbpm.jbpm3:jbpm-identity:3.2.6.SP1] to[lib/jbpm-identity-3.2.6.SP1.jar] > [INFO] Copying artifact[jar:jasperreports:jasperreports:3.6.0] to[lib/jasperreports-3.6.0.jar] > [INFO] Copying artifact[jar:org.codehaus.groovy:groovy-all:1.5.5] to[lib/groovy-all-1.5.5.jar] > [INFO] Copying artifact[jar:junit:junit:4.7] to[lib/junit-4.7.jar] > [INFO] Copying artifact[jar:org.apache.ant:ant:1.7.0] to[lib/ant-1.7.0.jar] > [INFO] Copying artifact[jar:org.apache.ant:ant-launcher:1.7.0] to[lib/ant-launcher-1.7.0.jar] > [INFO] Copying artifact[jar:jline:jline:0.9.94] to[lib/jline-0.9.94.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam:2.2.0.GA] to[lib/jboss-seam-2.2.0.GA.jar] > [INFO] Copying artifact[jar:xstream:xstream:1.1.3] to[lib/xstream-1.1.3.jar] > [INFO] Copying artifact[jar:xpp3:xpp3_min:1.1.3.4.O] to[lib/xpp3_min-1.1.3.4.O.jar] > [INFO] Copying artifact[jar:org.jboss.el:jboss-el:1.0_02.CR4] to[lib/jboss-el-1.0_02.CR4.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-ui:2.2.0.GA] to[lib/jboss-seam-ui-2.2.0.GA.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-jul:2.2.0.GA] to[lib/jboss-seam-jul-2.2.0.GA.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-debug:2.2.0.GA] to[lib/jboss-seam-debug-2.2.0.GA.jar] > [INFO] Copying artifact[jar:com.sun.facelets:jsf-facelets:1.1.15.B1] to[lib/jsf-facelets-1.1.15.B1.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-ioc:2.2.0.GA] to[lib/jboss-seam-ioc-2.2.0.GA.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-pdf:2.2.0.GA] to[lib/jboss-seam-pdf-2.2.0.GA.jar] > [INFO] Copying artifact[jar:com.lowagie:itext:2.1.2] to[lib/itext-2.1.2.jar] > [INFO] Copying artifact[jar:com.lowagie:itext-rtf:2.1.2] to[lib/itext-rtf-2.1.2.jar] > [INFO] Copy ear sources to /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/menu > [INFO] Could not find manifest file: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/src/main/application/META-INF/MANIFEST.MF - Generating one > [INFO] Building jar: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/menu.ear > [INFO] [selenium:xvfb {execution: xvfb}] > [INFO] Starting Xvfb... > [INFO] Using display: :20 > [INFO] Using Xauthority file: /tmp/Xvfb7302122594304485725.Xauthority > Deleting: /tmp/Xvfb7302122594304485725.Xauthority > xauth: creating new authority file /tmp/Xvfb7302122594304485725.Xauthority > Created dir: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium > Launching Xvfb > Waiting for Xvfb... > [INFO] Redirecting output to: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium/xvfb.log > Xvfb started > [INFO] [selenium:start-server {execution: start-selenium}] > Launching Selenium Server > [INFO] Including display properties from: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium/display.properties > [INFO] User extensions: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium/user-extensions.js > Waiting for Selenium Server... > 12:44:18,054 INFO [org.openqa.selenium.server.SeleniumServer] Java: Sun Microsystems Inc. 14.2-b01 > 12:44:18,055 INFO [org.openqa.selenium.server.SeleniumServer] OS: Linux 2.6.30.8-64.fc11.i686.PAE i386 > 12:44:18,066 INFO [org.openqa.selenium.server.SeleniumServer] v1.0.1 [2697], with Core v@VERSION@ [@REVISION@] > 12:44:18,163 INFO [org.mortbay.http.HttpServer] Version Jetty/5.1.x > 12:44:18,165 INFO [org.mortbay.util.Container] Started HttpContext[/selenium-server/driver,/selenium-server/driver] > 12:44:18,166 INFO [org.mortbay.util.Container] Started HttpContext[/selenium-server,/selenium-server] > 12:44:18,166 INFO [org.mortbay.util.Container] Started HttpContext[/,/] > 12:44:18,173 INFO [org.mortbay.http.SocketListener] Started SocketListener on 0.0.0.0:8090 > 12:44:18,173 INFO [org.mortbay.util.Container] Started org.mortbay.jetty.Server@148aa23 > 12:44:18,832 INFO [org.mortbay.util.Credential] Checking Resource aliases > Selenium Server started > [INFO] [compiler:testCompile {execution: compila-testes}] > [INFO] Compiling 11 source files to /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/test-classes > [INFO] [surefire:test {execution: testes-funcionais}] > [INFO] Surefire report directory: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/surefire-reports > ------------------------------------------------------- > T E S T S > ------------------------------------------------------- > Running br.com.optimus.teste.usuario.TestNavegacao > 12:44:20,659 INFO [org.mortbay.util.Credential] Checking Resource aliases > 12:44:20,665 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request: getNewBrowserSession[*firefox, http://prod1, ] on session null > 12:44:20,668 INFO [org.openqa.selenium.server.BrowserSessionFactory] creating new remote session > 12:44:20,775 INFO [org.openqa.selenium.server.BrowserSessionFactory] Allocated session a0d622d6b2d74fc7b5386a29752d7b89 for http://prod1, launching... > 12:44:20,806 INFO [org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher] Preparing Firefox profile... > Xlib: extension "RANDR" missing on display ":20.0". > Xlib: extension "RANDR" missing on display ":20.0". > 12:44:24,064 INFO [org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher] Launching Firefox... > 12:44:26,098 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Got result: OK,a0d622d6b2d74fc7b5386a29752d7b89 on session a0d622d6b2d74fc7b5386a29752d7b89 > 12:44:26,104 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request: open[/erp/login.seam, ] on session a0d622d6b2d74fc7b5386a29752d7b89 > 12:44:26,241 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Got result: OK on session a0d622d6b2d74fc7b5386a29752d7b89 > 12:44:26,244 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request: waitForPageToLoad[3000, ] on session a0d622d6b2d74fc7b5386a29752d7b89 > 12:44:26,264 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Got result: OK on session a0d622d6b2d74fc7b5386a29752d7b89 > 12:44:26,266 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request: type[login:username, demo1] on session a0d622d6b2d74fc7b5386a29752d7b89 > aberto /erp/login.seam > 12:44:26,299 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Got result: OK on session a0d622d6b2d74fc7b5386a29752d7b89 > 12:44:26,301 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request: type[login:password, demo1] on session a0d622d6b2d74fc7b5386a29752d7b89 > preenchido login:username com demo1 > (....) > Otherwise, when I run the same phases inside Selenium, it fails: > [INFO] Scanning for projects... > [INFO] ------------------------------------------------------------------------ > [INFO] Building MenuEAR > [INFO] task-segment: [clean, install] > [INFO] ------------------------------------------------------------------------ > [INFO] [clean:clean {execution: default-clean}] > [INFO] Deleting directory /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target > [INFO] [ear:generate-application-xml {execution: default-generate-application-xml}] > [INFO] Generating application.xml > [INFO] Generating jboss-app.xml > [INFO] [resources:resources {execution: default-resources}] > [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! > [INFO] Copying 23 resources > [INFO] [ear:ear {execution: default-ear}] > [INFO] Copying artifact[ejb:Web:MenuJAR:1.0-SNAPSHOT] to[MenuJAR-1.0-SNAPSHOT.jar] > [INFO] Copying artifact[war:Web:MenuWAR:1.0-SNAPSHOT] to[MenuWAR-1.0-SNAPSHOT.war] > [INFO] Copying artifact[jar:org.richfaces.ui:richfaces-ui:3.3.1.GA] to[lib/richfaces-ui-3.3.1.GA.jar] > [INFO] Copying artifact[jar:org.richfaces.framework:richfaces-impl:3.3.1.GA] to[lib/richfaces-impl-3.3.1.GA.jar] > [INFO] Copying artifact[jar:commons-digester:commons-digester:1.8.1] to[lib/commons-digester-1.8.1.jar] > [INFO] Copying artifact[jar:commons-beanutils:commons-beanutils:1.7.0] to[lib/commons-beanutils-1.7.0.jar] > [INFO] Copying artifact[jar:org.richfaces.framework:richfaces-api:3.3.1.GA] to[lib/richfaces-api-3.3.1.GA.jar] > [INFO] Copying artifact[jar:commons-collections:commons-collections:3.2] to[lib/commons-collections-3.2.jar] > [INFO] Copying artifact[jar:commons-logging:commons-logging:1.0.4] to[lib/commons-logging-1.0.4.jar] > [INFO] Copying artifact[jar:org.jbpm.jbpm3:jbpm-jpdl:3.2.6.SP1] to[lib/jbpm-jpdl-3.2.6.SP1.jar] > [INFO] Copying artifact[jar:org.jbpm.jbpm3:jbpm-identity:3.2.6.SP1] to[lib/jbpm-identity-3.2.6.SP1.jar] > [INFO] Copying artifact[jar:jasperreports:jasperreports:3.6.0] to[lib/jasperreports-3.6.0.jar] > [INFO] Copying artifact[jar:org.codehaus.groovy:groovy-all:1.5.5] to[lib/groovy-all-1.5.5.jar] > [INFO] Copying artifact[jar:junit:junit:4.7] to[lib/junit-4.7.jar] > [INFO] Copying artifact[jar:org.apache.ant:ant:1.7.0] to[lib/ant-1.7.0.jar] > [INFO] Copying artifact[jar:org.apache.ant:ant-launcher:1.7.0] to[lib/ant-launcher-1.7.0.jar] > [INFO] Copying artifact[jar:jline:jline:0.9.94] to[lib/jline-0.9.94.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam:2.2.0.GA] to[lib/jboss-seam-2.2.0.GA.jar] > [INFO] Copying artifact[jar:xstream:xstream:1.1.3] to[lib/xstream-1.1.3.jar] > [INFO] Copying artifact[jar:xpp3:xpp3_min:1.1.3.4.O] to[lib/xpp3_min-1.1.3.4.O.jar] > [INFO] Copying artifact[jar:org.jboss.el:jboss-el:1.0_02.CR4] to[lib/jboss-el-1.0_02.CR4.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-ui:2.2.0.GA] to[lib/jboss-seam-ui-2.2.0.GA.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-jul:2.2.0.GA] to[lib/jboss-seam-jul-2.2.0.GA.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-debug:2.2.0.GA] to[lib/jboss-seam-debug-2.2.0.GA.jar] > [INFO] Copying artifact[jar:com.sun.facelets:jsf-facelets:1.1.15.B1] to[lib/jsf-facelets-1.1.15.B1.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-ioc:2.2.0.GA] to[lib/jboss-seam-ioc-2.2.0.GA.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-pdf:2.2.0.GA] to[lib/jboss-seam-pdf-2.2.0.GA.jar] > [INFO] Copying artifact[jar:com.lowagie:itext:2.1.2] to[lib/itext-2.1.2.jar] > [INFO] Copying artifact[jar:com.lowagie:itext-rtf:2.1.2] to[lib/itext-rtf-2.1.2.jar] > [INFO] Copy ear sources to /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/menu > [INFO] Could not find manifest file: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/src/main/application/META-INF/MANIFEST.MF - Generating one > [INFO] Building jar: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/menu.ear > [INFO] [selenium:xvfb {execution: xvfb}] > [INFO] Starting Xvfb... > [INFO] Using display: :20 > [INFO] Using Xauthority file: /tmp/Xvfb31539120038900714.Xauthority > Deleting: /tmp/Xvfb31539120038900714.Xauthority > xauth: creating new authority file /tmp/Xvfb31539120038900714.Xauthority > Created dir: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium > Launching Xvfb > Waiting for Xvfb... > [INFO] Redirecting output to: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium/xvfb.log > Xvfb started > [INFO] [selenium:start-server {execution: start-selenium}] > Launching Selenium Server > Waiting for Selenium Server... > [INFO] Including display properties from: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium/display.properties > [INFO] User extensions: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium/user-extensions.js > 12:57:19,390 INFO [org.openqa.selenium.server.SeleniumServer] Java: Sun Microsystems Inc. 14.2-b01 > 12:57:19,391 INFO [org.openqa.selenium.server.SeleniumServer] OS: Linux 2.6.30.8-64.fc11.i686.PAE i386 > 12:57:19,400 INFO [org.openqa.selenium.server.SeleniumServer] v1.0.1 [2697], with Core v@VERSION@ [@REVISION@] > 12:57:19,464 INFO [org.mortbay.http.HttpServer] Version Jetty/5.1.x > 12:57:19,465 INFO [org.mortbay.util.Container] Started HttpContext[/selenium-server/driver,/selenium-server/driver] > 12:57:19,465 INFO [org.mortbay.util.Container] Started HttpContext[/selenium-server,/selenium-server] > 12:57:19,465 INFO [org.mortbay.util.Container] Started HttpContext[/,/] > 12:57:19,470 INFO [org.mortbay.http.SocketListener] Started SocketListener on 0.0.0.0:8090 > 12:57:19,470 INFO [org.mortbay.util.Container] Started org.mortbay.jetty.Server@199f91c > 12:57:20,196 INFO [org.mortbay.util.Credential] Checking Resource aliases > Selenium Server started > [INFO] [compiler:testCompile {execution: compila-testes}] > [INFO] Compiling 11 source files to /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/test-classes > [INFO] [surefire:test {execution: testes-funcionais}] > [INFO] Surefire report directory: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/surefire-reports > ------------------------------------------------------- > T E S T S > ------------------------------------------------------- > Running br.com.optimus.teste.usuario.TestNavegacao > 12:57:21,862 INFO [org.mortbay.util.Credential] Checking Resource aliases > 12:57:21,868 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request: getNewBrowserSession[*firefox, http://prod1, ] on session null > 12:57:21,870 INFO [org.openqa.selenium.server.BrowserSessionFactory] creating new remote session > 12:57:21,959 INFO [org.openqa.selenium.server.BrowserSessionFactory] Allocated session 76fa5615ee734a3ab6dbc5bf91df8ed0 for http://prod1, launching... > 12:57:22,016 INFO [org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher] Preparing Firefox profile... > Xlib: extension "RANDR" missing on display ":20.0". > 12:57:42,073 ERROR [org.openqa.selenium.server.BrowserSessionFactory] Failed to start new browser session, shutdown browser and clear all session data > java.lang.RuntimeException: Timed out waiting for profile to be created! > at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.waitForFullProfileToBeCreated(FirefoxChromeLauncher.java:305) > at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.populateCustomProfileDirectory(FirefoxChromeLauncher.java:106) > at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.launch(FirefoxChromeLauncher.java:83) > at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.launchRemoteSession(FirefoxChromeLauncher.java:350) > at org.openqa.selenium.server.browserlaunchers.FirefoxLauncher.launchRemoteSession(FirefoxLauncher.java:98) > at org.openqa.selenium.server.BrowserSessionFactory.createNewRemoteSession(BrowserSessionFactory.java:357) > at org.openqa.selenium.server.BrowserSessionFactory.getNewBrowserSession(BrowserSessionFactory.java:122) > at org.openqa.selenium.server.BrowserSessionFactory.getNewBrowserSession(BrowserSessionFactory.java:84) > at org.openqa.selenium.server.SeleniumDriverResourceHandler.getNewBrowserSession(SeleniumDriverResourceHandler.java:712) > at org.openqa.selenium.server.SeleniumDriverResourceHandler.doCommand(SeleniumDriverResourceHandler.java:393) > at org.openqa.selenium.server.SeleniumDriverResourceHandler.handleCommandRequest(SeleniumDriverResourceHandler.java:364) > at org.openqa.selenium.server.SeleniumDriverResourceHandler.handle(SeleniumDriverResourceHandler.java:125) > at org.mortbay.http.HttpContext.handle(HttpContext.java:1530) > at org.mortbay.http.HttpContext.handle(HttpContext.java:1482) > at org.mortbay.http.HttpServer.service(HttpServer.java:909) > at org.mortbay.http.HttpConnection.service(HttpConnection.java:820) > at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:986) > at org.mortbay.http.HttpConnection.handle(HttpConnection.java:837) > at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:245) > at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) > at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534) > -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
|
|
[jira] Commented: (CONTINUUM-2405) Selenium fails with java.lang.RuntimeException: Timed out waiting for profile to be created! inside Continuum
by JIRA jira@codehaus.org
::
Rate this Message:
Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message [ http://jira.codehaus.org/browse/CONTINUUM-2405?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=197464#action_197464 ] André Salvati commented on CONTINUUM-2405: ------------------------------------------ Same problem with continuum-webapp-test module. When I run it inside Continuum with -P headless I get for AdminTest and BasicTest: java.lang.RuntimeException: Could not start Selenium session: Failed to start new browser session: Error while launching browser at com.thoughtworks.selenium.DefaultSelenium.start(DefaultSelenium.java:89) at org.apache.continuum.web.test.parent.AbstractSeleniumTest.open(AbstractSeleniumTest.java:80) at org.apache.continuum.web.test.SetupSelenium.initializeContinuum(SetupSelenium.java:63) at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:74) at org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:92) at org.apache.maven.surefire.Surefire.run(Surefire.java:177) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009) Caused by: com.thoughtworks.selenium.SeleniumException: Failed to start new browser session: Error while launching browser at com.thoughtworks.selenium.HttpCommandProcessor.throwAssertionFailureExceptionOrError(HttpCommandProcessor.java:97) at com.thoughtworks.selenium.HttpCommandProcessor.doCommand(HttpCommandProcessor.java:91) at com.thoughtworks.selenium.HttpCommandProcessor.getString(HttpCommandProcessor.java:262) at com.thoughtworks.selenium.HttpCommandProcessor.start(HttpCommandProcessor.java:223) at com.thoughtworks.selenium.DefaultSelenium.start(DefaultSelenium.java:81) ... 28 more > Selenium fails with java.lang.RuntimeException: Timed out waiting for profile to be created! inside Continuum > ------------------------------------------------------------------------------------------------------------- > > Key: CONTINUUM-2405 > URL: http://jira.codehaus.org/browse/CONTINUUM-2405 > Project: Continuum > Issue Type: Bug > Affects Versions: 1.3.4 > Environment: Maven 2.2.1 > Continuum 1.3.4 > Linux Fedora 11 > Reporter: André Salvati > > I've been trying to run Continuum + Selenium Java tests + X virtual server (xvfb) without success. > Continuum process is running with root privileges. > When I run maven from console (mvn clean install), selenium works smoothly: > [INFO] Scanning for projects... > [INFO] ------------------------------------------------------------------------ > [INFO] Building MenuEAR > [INFO] task-segment: [clean, install] > [INFO] ------------------------------------------------------------------------ > [INFO] [clean:clean {execution: default-clean}] > [INFO] Deleting directory /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target > [INFO] [ear:generate-application-xml {execution: default-generate-application-xml}] > [INFO] Generating application.xml > [INFO] Generating jboss-app.xml > [INFO] [resources:resources {execution: default-resources}] > [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! > [INFO] Copying 23 resources > [INFO] [ear:ear {execution: default-ear}] > [INFO] Copying artifact[ejb:Web:MenuJAR:1.0-SNAPSHOT] to[MenuJAR-1.0-SNAPSHOT.jar] > [INFO] Copying artifact[war:Web:MenuWAR:1.0-SNAPSHOT] to[MenuWAR-1.0-SNAPSHOT.war] > [INFO] Copying artifact[jar:org.richfaces.ui:richfaces-ui:3.3.1.GA] to[lib/richfaces-ui-3.3.1.GA.jar] > [INFO] Copying artifact[jar:org.richfaces.framework:richfaces-impl:3.3.1.GA] to[lib/richfaces-impl-3.3.1.GA.jar] > [INFO] Copying artifact[jar:commons-digester:commons-digester:1.8.1] to[lib/commons-digester-1.8.1.jar] > [INFO] Copying artifact[jar:commons-beanutils:commons-beanutils:1.7.0] to[lib/commons-beanutils-1.7.0.jar] > [INFO] Copying artifact[jar:org.richfaces.framework:richfaces-api:3.3.1.GA] to[lib/richfaces-api-3.3.1.GA.jar] > [INFO] Copying artifact[jar:commons-collections:commons-collections:3.2] to[lib/commons-collections-3.2.jar] > [INFO] Copying artifact[jar:commons-logging:commons-logging:1.0.4] to[lib/commons-logging-1.0.4.jar] > [INFO] Copying artifact[jar:org.jbpm.jbpm3:jbpm-jpdl:3.2.6.SP1] to[lib/jbpm-jpdl-3.2.6.SP1.jar] > [INFO] Copying artifact[jar:org.jbpm.jbpm3:jbpm-identity:3.2.6.SP1] to[lib/jbpm-identity-3.2.6.SP1.jar] > [INFO] Copying artifact[jar:jasperreports:jasperreports:3.6.0] to[lib/jasperreports-3.6.0.jar] > [INFO] Copying artifact[jar:org.codehaus.groovy:groovy-all:1.5.5] to[lib/groovy-all-1.5.5.jar] > [INFO] Copying artifact[jar:junit:junit:4.7] to[lib/junit-4.7.jar] > [INFO] Copying artifact[jar:org.apache.ant:ant:1.7.0] to[lib/ant-1.7.0.jar] > [INFO] Copying artifact[jar:org.apache.ant:ant-launcher:1.7.0] to[lib/ant-launcher-1.7.0.jar] > [INFO] Copying artifact[jar:jline:jline:0.9.94] to[lib/jline-0.9.94.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam:2.2.0.GA] to[lib/jboss-seam-2.2.0.GA.jar] > [INFO] Copying artifact[jar:xstream:xstream:1.1.3] to[lib/xstream-1.1.3.jar] > [INFO] Copying artifact[jar:xpp3:xpp3_min:1.1.3.4.O] to[lib/xpp3_min-1.1.3.4.O.jar] > [INFO] Copying artifact[jar:org.jboss.el:jboss-el:1.0_02.CR4] to[lib/jboss-el-1.0_02.CR4.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-ui:2.2.0.GA] to[lib/jboss-seam-ui-2.2.0.GA.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-jul:2.2.0.GA] to[lib/jboss-seam-jul-2.2.0.GA.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-debug:2.2.0.GA] to[lib/jboss-seam-debug-2.2.0.GA.jar] > [INFO] Copying artifact[jar:com.sun.facelets:jsf-facelets:1.1.15.B1] to[lib/jsf-facelets-1.1.15.B1.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-ioc:2.2.0.GA] to[lib/jboss-seam-ioc-2.2.0.GA.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-pdf:2.2.0.GA] to[lib/jboss-seam-pdf-2.2.0.GA.jar] > [INFO] Copying artifact[jar:com.lowagie:itext:2.1.2] to[lib/itext-2.1.2.jar] > [INFO] Copying artifact[jar:com.lowagie:itext-rtf:2.1.2] to[lib/itext-rtf-2.1.2.jar] > [INFO] Copy ear sources to /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/menu > [INFO] Could not find manifest file: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/src/main/application/META-INF/MANIFEST.MF - Generating one > [INFO] Building jar: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/menu.ear > [INFO] [selenium:xvfb {execution: xvfb}] > [INFO] Starting Xvfb... > [INFO] Using display: :20 > [INFO] Using Xauthority file: /tmp/Xvfb7302122594304485725.Xauthority > Deleting: /tmp/Xvfb7302122594304485725.Xauthority > xauth: creating new authority file /tmp/Xvfb7302122594304485725.Xauthority > Created dir: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium > Launching Xvfb > Waiting for Xvfb... > [INFO] Redirecting output to: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium/xvfb.log > Xvfb started > [INFO] [selenium:start-server {execution: start-selenium}] > Launching Selenium Server > [INFO] Including display properties from: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium/display.properties > [INFO] User extensions: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium/user-extensions.js > Waiting for Selenium Server... > 12:44:18,054 INFO [org.openqa.selenium.server.SeleniumServer] Java: Sun Microsystems Inc. 14.2-b01 > 12:44:18,055 INFO [org.openqa.selenium.server.SeleniumServer] OS: Linux 2.6.30.8-64.fc11.i686.PAE i386 > 12:44:18,066 INFO [org.openqa.selenium.server.SeleniumServer] v1.0.1 [2697], with Core v@VERSION@ [@REVISION@] > 12:44:18,163 INFO [org.mortbay.http.HttpServer] Version Jetty/5.1.x > 12:44:18,165 INFO [org.mortbay.util.Container] Started HttpContext[/selenium-server/driver,/selenium-server/driver] > 12:44:18,166 INFO [org.mortbay.util.Container] Started HttpContext[/selenium-server,/selenium-server] > 12:44:18,166 INFO [org.mortbay.util.Container] Started HttpContext[/,/] > 12:44:18,173 INFO [org.mortbay.http.SocketListener] Started SocketListener on 0.0.0.0:8090 > 12:44:18,173 INFO [org.mortbay.util.Container] Started org.mortbay.jetty.Server@148aa23 > 12:44:18,832 INFO [org.mortbay.util.Credential] Checking Resource aliases > Selenium Server started > [INFO] [compiler:testCompile {execution: compila-testes}] > [INFO] Compiling 11 source files to /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/test-classes > [INFO] [surefire:test {execution: testes-funcionais}] > [INFO] Surefire report directory: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/surefire-reports > ------------------------------------------------------- > T E S T S > ------------------------------------------------------- > Running br.com.optimus.teste.usuario.TestNavegacao > 12:44:20,659 INFO [org.mortbay.util.Credential] Checking Resource aliases > 12:44:20,665 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request: getNewBrowserSession[*firefox, http://prod1, ] on session null > 12:44:20,668 INFO [org.openqa.selenium.server.BrowserSessionFactory] creating new remote session > 12:44:20,775 INFO [org.openqa.selenium.server.BrowserSessionFactory] Allocated session a0d622d6b2d74fc7b5386a29752d7b89 for http://prod1, launching... > 12:44:20,806 INFO [org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher] Preparing Firefox profile... > Xlib: extension "RANDR" missing on display ":20.0". > Xlib: extension "RANDR" missing on display ":20.0". > 12:44:24,064 INFO [org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher] Launching Firefox... > 12:44:26,098 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Got result: OK,a0d622d6b2d74fc7b5386a29752d7b89 on session a0d622d6b2d74fc7b5386a29752d7b89 > 12:44:26,104 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request: open[/erp/login.seam, ] on session a0d622d6b2d74fc7b5386a29752d7b89 > 12:44:26,241 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Got result: OK on session a0d622d6b2d74fc7b5386a29752d7b89 > 12:44:26,244 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request: waitForPageToLoad[3000, ] on session a0d622d6b2d74fc7b5386a29752d7b89 > 12:44:26,264 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Got result: OK on session a0d622d6b2d74fc7b5386a29752d7b89 > 12:44:26,266 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request: type[login:username, demo1] on session a0d622d6b2d74fc7b5386a29752d7b89 > aberto /erp/login.seam > 12:44:26,299 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Got result: OK on session a0d622d6b2d74fc7b5386a29752d7b89 > 12:44:26,301 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request: type[login:password, demo1] on session a0d622d6b2d74fc7b5386a29752d7b89 > preenchido login:username com demo1 > (....) > Otherwise, when I run the same phases inside Selenium, it fails: > [INFO] Scanning for projects... > [INFO] ------------------------------------------------------------------------ > [INFO] Building MenuEAR > [INFO] task-segment: [clean, install] > [INFO] ------------------------------------------------------------------------ > [INFO] [clean:clean {execution: default-clean}] > [INFO] Deleting directory /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target > [INFO] [ear:generate-application-xml {execution: default-generate-application-xml}] > [INFO] Generating application.xml > [INFO] Generating jboss-app.xml > [INFO] [resources:resources {execution: default-resources}] > [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! > [INFO] Copying 23 resources > [INFO] [ear:ear {execution: default-ear}] > [INFO] Copying artifact[ejb:Web:MenuJAR:1.0-SNAPSHOT] to[MenuJAR-1.0-SNAPSHOT.jar] > [INFO] Copying artifact[war:Web:MenuWAR:1.0-SNAPSHOT] to[MenuWAR-1.0-SNAPSHOT.war] > [INFO] Copying artifact[jar:org.richfaces.ui:richfaces-ui:3.3.1.GA] to[lib/richfaces-ui-3.3.1.GA.jar] > [INFO] Copying artifact[jar:org.richfaces.framework:richfaces-impl:3.3.1.GA] to[lib/richfaces-impl-3.3.1.GA.jar] > [INFO] Copying artifact[jar:commons-digester:commons-digester:1.8.1] to[lib/commons-digester-1.8.1.jar] > [INFO] Copying artifact[jar:commons-beanutils:commons-beanutils:1.7.0] to[lib/commons-beanutils-1.7.0.jar] > [INFO] Copying artifact[jar:org.richfaces.framework:richfaces-api:3.3.1.GA] to[lib/richfaces-api-3.3.1.GA.jar] > [INFO] Copying artifact[jar:commons-collections:commons-collections:3.2] to[lib/commons-collections-3.2.jar] > [INFO] Copying artifact[jar:commons-logging:commons-logging:1.0.4] to[lib/commons-logging-1.0.4.jar] > [INFO] Copying artifact[jar:org.jbpm.jbpm3:jbpm-jpdl:3.2.6.SP1] to[lib/jbpm-jpdl-3.2.6.SP1.jar] > [INFO] Copying artifact[jar:org.jbpm.jbpm3:jbpm-identity:3.2.6.SP1] to[lib/jbpm-identity-3.2.6.SP1.jar] > [INFO] Copying artifact[jar:jasperreports:jasperreports:3.6.0] to[lib/jasperreports-3.6.0.jar] > [INFO] Copying artifact[jar:org.codehaus.groovy:groovy-all:1.5.5] to[lib/groovy-all-1.5.5.jar] > [INFO] Copying artifact[jar:junit:junit:4.7] to[lib/junit-4.7.jar] > [INFO] Copying artifact[jar:org.apache.ant:ant:1.7.0] to[lib/ant-1.7.0.jar] > [INFO] Copying artifact[jar:org.apache.ant:ant-launcher:1.7.0] to[lib/ant-launcher-1.7.0.jar] > [INFO] Copying artifact[jar:jline:jline:0.9.94] to[lib/jline-0.9.94.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam:2.2.0.GA] to[lib/jboss-seam-2.2.0.GA.jar] > [INFO] Copying artifact[jar:xstream:xstream:1.1.3] to[lib/xstream-1.1.3.jar] > [INFO] Copying artifact[jar:xpp3:xpp3_min:1.1.3.4.O] to[lib/xpp3_min-1.1.3.4.O.jar] > [INFO] Copying artifact[jar:org.jboss.el:jboss-el:1.0_02.CR4] to[lib/jboss-el-1.0_02.CR4.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-ui:2.2.0.GA] to[lib/jboss-seam-ui-2.2.0.GA.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-jul:2.2.0.GA] to[lib/jboss-seam-jul-2.2.0.GA.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-debug:2.2.0.GA] to[lib/jboss-seam-debug-2.2.0.GA.jar] > [INFO] Copying artifact[jar:com.sun.facelets:jsf-facelets:1.1.15.B1] to[lib/jsf-facelets-1.1.15.B1.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-ioc:2.2.0.GA] to[lib/jboss-seam-ioc-2.2.0.GA.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-pdf:2.2.0.GA] to[lib/jboss-seam-pdf-2.2.0.GA.jar] > [INFO] Copying artifact[jar:com.lowagie:itext:2.1.2] to[lib/itext-2.1.2.jar] > [INFO] Copying artifact[jar:com.lowagie:itext-rtf:2.1.2] to[lib/itext-rtf-2.1.2.jar] > [INFO] Copy ear sources to /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/menu > [INFO] Could not find manifest file: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/src/main/application/META-INF/MANIFEST.MF - Generating one > [INFO] Building jar: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/menu.ear > [INFO] [selenium:xvfb {execution: xvfb}] > [INFO] Starting Xvfb... > [INFO] Using display: :20 > [INFO] Using Xauthority file: /tmp/Xvfb31539120038900714.Xauthority > Deleting: /tmp/Xvfb31539120038900714.Xauthority > xauth: creating new authority file /tmp/Xvfb31539120038900714.Xauthority > Created dir: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium > Launching Xvfb > Waiting for Xvfb... > [INFO] Redirecting output to: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium/xvfb.log > Xvfb started > [INFO] [selenium:start-server {execution: start-selenium}] > Launching Selenium Server > Waiting for Selenium Server... > [INFO] Including display properties from: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium/display.properties > [INFO] User extensions: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium/user-extensions.js > 12:57:19,390 INFO [org.openqa.selenium.server.SeleniumServer] Java: Sun Microsystems Inc. 14.2-b01 > 12:57:19,391 INFO [org.openqa.selenium.server.SeleniumServer] OS: Linux 2.6.30.8-64.fc11.i686.PAE i386 > 12:57:19,400 INFO [org.openqa.selenium.server.SeleniumServer] v1.0.1 [2697], with Core v@VERSION@ [@REVISION@] > 12:57:19,464 INFO [org.mortbay.http.HttpServer] Version Jetty/5.1.x > 12:57:19,465 INFO [org.mortbay.util.Container] Started HttpContext[/selenium-server/driver,/selenium-server/driver] > 12:57:19,465 INFO [org.mortbay.util.Container] Started HttpContext[/selenium-server,/selenium-server] > 12:57:19,465 INFO [org.mortbay.util.Container] Started HttpContext[/,/] > 12:57:19,470 INFO [org.mortbay.http.SocketListener] Started SocketListener on 0.0.0.0:8090 > 12:57:19,470 INFO [org.mortbay.util.Container] Started org.mortbay.jetty.Server@199f91c > 12:57:20,196 INFO [org.mortbay.util.Credential] Checking Resource aliases > Selenium Server started > [INFO] [compiler:testCompile {execution: compila-testes}] > [INFO] Compiling 11 source files to /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/test-classes > [INFO] [surefire:test {execution: testes-funcionais}] > [INFO] Surefire report directory: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/surefire-reports > ------------------------------------------------------- > T E S T S > ------------------------------------------------------- > Running br.com.optimus.teste.usuario.TestNavegacao > 12:57:21,862 INFO [org.mortbay.util.Credential] Checking Resource aliases > 12:57:21,868 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request: getNewBrowserSession[*firefox, http://prod1, ] on session null > 12:57:21,870 INFO [org.openqa.selenium.server.BrowserSessionFactory] creating new remote session > 12:57:21,959 INFO [org.openqa.selenium.server.BrowserSessionFactory] Allocated session 76fa5615ee734a3ab6dbc5bf91df8ed0 for http://prod1, launching... > 12:57:22,016 INFO [org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher] Preparing Firefox profile... > Xlib: extension "RANDR" missing on display ":20.0". > 12:57:42,073 ERROR [org.openqa.selenium.server.BrowserSessionFactory] Failed to start new browser session, shutdown browser and clear all session data > java.lang.RuntimeException: Timed out waiting for profile to be created! > at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.waitForFullProfileToBeCreated(FirefoxChromeLauncher.java:305) > at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.populateCustomProfileDirectory(FirefoxChromeLauncher.java:106) > at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.launch(FirefoxChromeLauncher.java:83) > at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.launchRemoteSession(FirefoxChromeLauncher.java:350) > at org.openqa.selenium.server.browserlaunchers.FirefoxLauncher.launchRemoteSession(FirefoxLauncher.java:98) > at org.openqa.selenium.server.BrowserSessionFactory.createNewRemoteSession(BrowserSessionFactory.java:357) > at org.openqa.selenium.server.BrowserSessionFactory.getNewBrowserSession(BrowserSessionFactory.java:122) > at org.openqa.selenium.server.BrowserSessionFactory.getNewBrowserSession(BrowserSessionFactory.java:84) > at org.openqa.selenium.server.SeleniumDriverResourceHandler.getNewBrowserSession(SeleniumDriverResourceHandler.java:712) > at org.openqa.selenium.server.SeleniumDriverResourceHandler.doCommand(SeleniumDriverResourceHandler.java:393) > at org.openqa.selenium.server.SeleniumDriverResourceHandler.handleCommandRequest(SeleniumDriverResourceHandler.java:364) > at org.openqa.selenium.server.SeleniumDriverResourceHandler.handle(SeleniumDriverResourceHandler.java:125) > at org.mortbay.http.HttpContext.handle(HttpContext.java:1530) > at org.mortbay.http.HttpContext.handle(HttpContext.java:1482) > at org.mortbay.http.HttpServer.service(HttpServer.java:909) > at org.mortbay.http.HttpConnection.service(HttpConnection.java:820) > at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:986) > at org.mortbay.http.HttpConnection.handle(HttpConnection.java:837) > at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:245) > at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) > at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534) > -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
|
|
[jira] Commented: (CONTINUUM-2405) Selenium fails with java.lang.RuntimeException: Timed out waiting for profile to be created! inside Continuum
by JIRA jira@codehaus.org
::
Rate this Message:
Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message [ http://jira.codehaus.org/browse/CONTINUUM-2405?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=197515#action_197515 ] Wendy Smoak commented on CONTINUUM-2405: ---------------------------------------- Please ask on the user list. I'm fairly sure a couple of other people have gotten this working, so it's likely a configuration problem. > Selenium fails with java.lang.RuntimeException: Timed out waiting for profile to be created! inside Continuum > ------------------------------------------------------------------------------------------------------------- > > Key: CONTINUUM-2405 > URL: http://jira.codehaus.org/browse/CONTINUUM-2405 > Project: Continuum > Issue Type: Bug > Affects Versions: 1.3.4 > Environment: Maven 2.2.1 > Continuum 1.3.4 > Linux Fedora 11 > Reporter: André Salvati > > I've been trying to run Continuum + Selenium Java tests + X virtual server (xvfb) without success. > Continuum process is running with root privileges. > When I run maven from console (mvn clean install), selenium works smoothly: > [INFO] Scanning for projects... > [INFO] ------------------------------------------------------------------------ > [INFO] Building MenuEAR > [INFO] task-segment: [clean, install] > [INFO] ------------------------------------------------------------------------ > [INFO] [clean:clean {execution: default-clean}] > [INFO] Deleting directory /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target > [INFO] [ear:generate-application-xml {execution: default-generate-application-xml}] > [INFO] Generating application.xml > [INFO] Generating jboss-app.xml > [INFO] [resources:resources {execution: default-resources}] > [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! > [INFO] Copying 23 resources > [INFO] [ear:ear {execution: default-ear}] > [INFO] Copying artifact[ejb:Web:MenuJAR:1.0-SNAPSHOT] to[MenuJAR-1.0-SNAPSHOT.jar] > [INFO] Copying artifact[war:Web:MenuWAR:1.0-SNAPSHOT] to[MenuWAR-1.0-SNAPSHOT.war] > [INFO] Copying artifact[jar:org.richfaces.ui:richfaces-ui:3.3.1.GA] to[lib/richfaces-ui-3.3.1.GA.jar] > [INFO] Copying artifact[jar:org.richfaces.framework:richfaces-impl:3.3.1.GA] to[lib/richfaces-impl-3.3.1.GA.jar] > [INFO] Copying artifact[jar:commons-digester:commons-digester:1.8.1] to[lib/commons-digester-1.8.1.jar] > [INFO] Copying artifact[jar:commons-beanutils:commons-beanutils:1.7.0] to[lib/commons-beanutils-1.7.0.jar] > [INFO] Copying artifact[jar:org.richfaces.framework:richfaces-api:3.3.1.GA] to[lib/richfaces-api-3.3.1.GA.jar] > [INFO] Copying artifact[jar:commons-collections:commons-collections:3.2] to[lib/commons-collections-3.2.jar] > [INFO] Copying artifact[jar:commons-logging:commons-logging:1.0.4] to[lib/commons-logging-1.0.4.jar] > [INFO] Copying artifact[jar:org.jbpm.jbpm3:jbpm-jpdl:3.2.6.SP1] to[lib/jbpm-jpdl-3.2.6.SP1.jar] > [INFO] Copying artifact[jar:org.jbpm.jbpm3:jbpm-identity:3.2.6.SP1] to[lib/jbpm-identity-3.2.6.SP1.jar] > [INFO] Copying artifact[jar:jasperreports:jasperreports:3.6.0] to[lib/jasperreports-3.6.0.jar] > [INFO] Copying artifact[jar:org.codehaus.groovy:groovy-all:1.5.5] to[lib/groovy-all-1.5.5.jar] > [INFO] Copying artifact[jar:junit:junit:4.7] to[lib/junit-4.7.jar] > [INFO] Copying artifact[jar:org.apache.ant:ant:1.7.0] to[lib/ant-1.7.0.jar] > [INFO] Copying artifact[jar:org.apache.ant:ant-launcher:1.7.0] to[lib/ant-launcher-1.7.0.jar] > [INFO] Copying artifact[jar:jline:jline:0.9.94] to[lib/jline-0.9.94.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam:2.2.0.GA] to[lib/jboss-seam-2.2.0.GA.jar] > [INFO] Copying artifact[jar:xstream:xstream:1.1.3] to[lib/xstream-1.1.3.jar] > [INFO] Copying artifact[jar:xpp3:xpp3_min:1.1.3.4.O] to[lib/xpp3_min-1.1.3.4.O.jar] > [INFO] Copying artifact[jar:org.jboss.el:jboss-el:1.0_02.CR4] to[lib/jboss-el-1.0_02.CR4.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-ui:2.2.0.GA] to[lib/jboss-seam-ui-2.2.0.GA.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-jul:2.2.0.GA] to[lib/jboss-seam-jul-2.2.0.GA.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-debug:2.2.0.GA] to[lib/jboss-seam-debug-2.2.0.GA.jar] > [INFO] Copying artifact[jar:com.sun.facelets:jsf-facelets:1.1.15.B1] to[lib/jsf-facelets-1.1.15.B1.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-ioc:2.2.0.GA] to[lib/jboss-seam-ioc-2.2.0.GA.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-pdf:2.2.0.GA] to[lib/jboss-seam-pdf-2.2.0.GA.jar] > [INFO] Copying artifact[jar:com.lowagie:itext:2.1.2] to[lib/itext-2.1.2.jar] > [INFO] Copying artifact[jar:com.lowagie:itext-rtf:2.1.2] to[lib/itext-rtf-2.1.2.jar] > [INFO] Copy ear sources to /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/menu > [INFO] Could not find manifest file: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/src/main/application/META-INF/MANIFEST.MF - Generating one > [INFO] Building jar: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/menu.ear > [INFO] [selenium:xvfb {execution: xvfb}] > [INFO] Starting Xvfb... > [INFO] Using display: :20 > [INFO] Using Xauthority file: /tmp/Xvfb7302122594304485725.Xauthority > Deleting: /tmp/Xvfb7302122594304485725.Xauthority > xauth: creating new authority file /tmp/Xvfb7302122594304485725.Xauthority > Created dir: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium > Launching Xvfb > Waiting for Xvfb... > [INFO] Redirecting output to: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium/xvfb.log > Xvfb started > [INFO] [selenium:start-server {execution: start-selenium}] > Launching Selenium Server > [INFO] Including display properties from: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium/display.properties > [INFO] User extensions: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium/user-extensions.js > Waiting for Selenium Server... > 12:44:18,054 INFO [org.openqa.selenium.server.SeleniumServer] Java: Sun Microsystems Inc. 14.2-b01 > 12:44:18,055 INFO [org.openqa.selenium.server.SeleniumServer] OS: Linux 2.6.30.8-64.fc11.i686.PAE i386 > 12:44:18,066 INFO [org.openqa.selenium.server.SeleniumServer] v1.0.1 [2697], with Core v@VERSION@ [@REVISION@] > 12:44:18,163 INFO [org.mortbay.http.HttpServer] Version Jetty/5.1.x > 12:44:18,165 INFO [org.mortbay.util.Container] Started HttpContext[/selenium-server/driver,/selenium-server/driver] > 12:44:18,166 INFO [org.mortbay.util.Container] Started HttpContext[/selenium-server,/selenium-server] > 12:44:18,166 INFO [org.mortbay.util.Container] Started HttpContext[/,/] > 12:44:18,173 INFO [org.mortbay.http.SocketListener] Started SocketListener on 0.0.0.0:8090 > 12:44:18,173 INFO [org.mortbay.util.Container] Started org.mortbay.jetty.Server@148aa23 > 12:44:18,832 INFO [org.mortbay.util.Credential] Checking Resource aliases > Selenium Server started > [INFO] [compiler:testCompile {execution: compila-testes}] > [INFO] Compiling 11 source files to /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/test-classes > [INFO] [surefire:test {execution: testes-funcionais}] > [INFO] Surefire report directory: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/surefire-reports > ------------------------------------------------------- > T E S T S > ------------------------------------------------------- > Running br.com.optimus.teste.usuario.TestNavegacao > 12:44:20,659 INFO [org.mortbay.util.Credential] Checking Resource aliases > 12:44:20,665 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request: getNewBrowserSession[*firefox, http://prod1, ] on session null > 12:44:20,668 INFO [org.openqa.selenium.server.BrowserSessionFactory] creating new remote session > 12:44:20,775 INFO [org.openqa.selenium.server.BrowserSessionFactory] Allocated session a0d622d6b2d74fc7b5386a29752d7b89 for http://prod1, launching... > 12:44:20,806 INFO [org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher] Preparing Firefox profile... > Xlib: extension "RANDR" missing on display ":20.0". > Xlib: extension "RANDR" missing on display ":20.0". > 12:44:24,064 INFO [org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher] Launching Firefox... > 12:44:26,098 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Got result: OK,a0d622d6b2d74fc7b5386a29752d7b89 on session a0d622d6b2d74fc7b5386a29752d7b89 > 12:44:26,104 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request: open[/erp/login.seam, ] on session a0d622d6b2d74fc7b5386a29752d7b89 > 12:44:26,241 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Got result: OK on session a0d622d6b2d74fc7b5386a29752d7b89 > 12:44:26,244 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request: waitForPageToLoad[3000, ] on session a0d622d6b2d74fc7b5386a29752d7b89 > 12:44:26,264 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Got result: OK on session a0d622d6b2d74fc7b5386a29752d7b89 > 12:44:26,266 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request: type[login:username, demo1] on session a0d622d6b2d74fc7b5386a29752d7b89 > aberto /erp/login.seam > 12:44:26,299 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Got result: OK on session a0d622d6b2d74fc7b5386a29752d7b89 > 12:44:26,301 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request: type[login:password, demo1] on session a0d622d6b2d74fc7b5386a29752d7b89 > preenchido login:username com demo1 > (....) > Otherwise, when I run the same phases inside Selenium, it fails: > [INFO] Scanning for projects... > [INFO] ------------------------------------------------------------------------ > [INFO] Building MenuEAR > [INFO] task-segment: [clean, install] > [INFO] ------------------------------------------------------------------------ > [INFO] [clean:clean {execution: default-clean}] > [INFO] Deleting directory /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target > [INFO] [ear:generate-application-xml {execution: default-generate-application-xml}] > [INFO] Generating application.xml > [INFO] Generating jboss-app.xml > [INFO] [resources:resources {execution: default-resources}] > [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! > [INFO] Copying 23 resources > [INFO] [ear:ear {execution: default-ear}] > [INFO] Copying artifact[ejb:Web:MenuJAR:1.0-SNAPSHOT] to[MenuJAR-1.0-SNAPSHOT.jar] > [INFO] Copying artifact[war:Web:MenuWAR:1.0-SNAPSHOT] to[MenuWAR-1.0-SNAPSHOT.war] > [INFO] Copying artifact[jar:org.richfaces.ui:richfaces-ui:3.3.1.GA] to[lib/richfaces-ui-3.3.1.GA.jar] > [INFO] Copying artifact[jar:org.richfaces.framework:richfaces-impl:3.3.1.GA] to[lib/richfaces-impl-3.3.1.GA.jar] > [INFO] Copying artifact[jar:commons-digester:commons-digester:1.8.1] to[lib/commons-digester-1.8.1.jar] > [INFO] Copying artifact[jar:commons-beanutils:commons-beanutils:1.7.0] to[lib/commons-beanutils-1.7.0.jar] > [INFO] Copying artifact[jar:org.richfaces.framework:richfaces-api:3.3.1.GA] to[lib/richfaces-api-3.3.1.GA.jar] > [INFO] Copying artifact[jar:commons-collections:commons-collections:3.2] to[lib/commons-collections-3.2.jar] > [INFO] Copying artifact[jar:commons-logging:commons-logging:1.0.4] to[lib/commons-logging-1.0.4.jar] > [INFO] Copying artifact[jar:org.jbpm.jbpm3:jbpm-jpdl:3.2.6.SP1] to[lib/jbpm-jpdl-3.2.6.SP1.jar] > [INFO] Copying artifact[jar:org.jbpm.jbpm3:jbpm-identity:3.2.6.SP1] to[lib/jbpm-identity-3.2.6.SP1.jar] > [INFO] Copying artifact[jar:jasperreports:jasperreports:3.6.0] to[lib/jasperreports-3.6.0.jar] > [INFO] Copying artifact[jar:org.codehaus.groovy:groovy-all:1.5.5] to[lib/groovy-all-1.5.5.jar] > [INFO] Copying artifact[jar:junit:junit:4.7] to[lib/junit-4.7.jar] > [INFO] Copying artifact[jar:org.apache.ant:ant:1.7.0] to[lib/ant-1.7.0.jar] > [INFO] Copying artifact[jar:org.apache.ant:ant-launcher:1.7.0] to[lib/ant-launcher-1.7.0.jar] > [INFO] Copying artifact[jar:jline:jline:0.9.94] to[lib/jline-0.9.94.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam:2.2.0.GA] to[lib/jboss-seam-2.2.0.GA.jar] > [INFO] Copying artifact[jar:xstream:xstream:1.1.3] to[lib/xstream-1.1.3.jar] > [INFO] Copying artifact[jar:xpp3:xpp3_min:1.1.3.4.O] to[lib/xpp3_min-1.1.3.4.O.jar] > [INFO] Copying artifact[jar:org.jboss.el:jboss-el:1.0_02.CR4] to[lib/jboss-el-1.0_02.CR4.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-ui:2.2.0.GA] to[lib/jboss-seam-ui-2.2.0.GA.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-jul:2.2.0.GA] to[lib/jboss-seam-jul-2.2.0.GA.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-debug:2.2.0.GA] to[lib/jboss-seam-debug-2.2.0.GA.jar] > [INFO] Copying artifact[jar:com.sun.facelets:jsf-facelets:1.1.15.B1] to[lib/jsf-facelets-1.1.15.B1.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-ioc:2.2.0.GA] to[lib/jboss-seam-ioc-2.2.0.GA.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-pdf:2.2.0.GA] to[lib/jboss-seam-pdf-2.2.0.GA.jar] > [INFO] Copying artifact[jar:com.lowagie:itext:2.1.2] to[lib/itext-2.1.2.jar] > [INFO] Copying artifact[jar:com.lowagie:itext-rtf:2.1.2] to[lib/itext-rtf-2.1.2.jar] > [INFO] Copy ear sources to /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/menu > [INFO] Could not find manifest file: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/src/main/application/META-INF/MANIFEST.MF - Generating one > [INFO] Building jar: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/menu.ear > [INFO] [selenium:xvfb {execution: xvfb}] > [INFO] Starting Xvfb... > [INFO] Using display: :20 > [INFO] Using Xauthority file: /tmp/Xvfb31539120038900714.Xauthority > Deleting: /tmp/Xvfb31539120038900714.Xauthority > xauth: creating new authority file /tmp/Xvfb31539120038900714.Xauthority > Created dir: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium > Launching Xvfb > Waiting for Xvfb... > [INFO] Redirecting output to: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium/xvfb.log > Xvfb started > [INFO] [selenium:start-server {execution: start-selenium}] > Launching Selenium Server > Waiting for Selenium Server... > [INFO] Including display properties from: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium/display.properties > [INFO] User extensions: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium/user-extensions.js > 12:57:19,390 INFO [org.openqa.selenium.server.SeleniumServer] Java: Sun Microsystems Inc. 14.2-b01 > 12:57:19,391 INFO [org.openqa.selenium.server.SeleniumServer] OS: Linux 2.6.30.8-64.fc11.i686.PAE i386 > 12:57:19,400 INFO [org.openqa.selenium.server.SeleniumServer] v1.0.1 [2697], with Core v@VERSION@ [@REVISION@] > 12:57:19,464 INFO [org.mortbay.http.HttpServer] Version Jetty/5.1.x > 12:57:19,465 INFO [org.mortbay.util.Container] Started HttpContext[/selenium-server/driver,/selenium-server/driver] > 12:57:19,465 INFO [org.mortbay.util.Container] Started HttpContext[/selenium-server,/selenium-server] > 12:57:19,465 INFO [org.mortbay.util.Container] Started HttpContext[/,/] > 12:57:19,470 INFO [org.mortbay.http.SocketListener] Started SocketListener on 0.0.0.0:8090 > 12:57:19,470 INFO [org.mortbay.util.Container] Started org.mortbay.jetty.Server@199f91c > 12:57:20,196 INFO [org.mortbay.util.Credential] Checking Resource aliases > Selenium Server started > [INFO] [compiler:testCompile {execution: compila-testes}] > [INFO] Compiling 11 source files to /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/test-classes > [INFO] [surefire:test {execution: testes-funcionais}] > [INFO] Surefire report directory: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/surefire-reports > ------------------------------------------------------- > T E S T S > ------------------------------------------------------- > Running br.com.optimus.teste.usuario.TestNavegacao > 12:57:21,862 INFO [org.mortbay.util.Credential] Checking Resource aliases > 12:57:21,868 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request: getNewBrowserSession[*firefox, http://prod1, ] on session null > 12:57:21,870 INFO [org.openqa.selenium.server.BrowserSessionFactory] creating new remote session > 12:57:21,959 INFO [org.openqa.selenium.server.BrowserSessionFactory] Allocated session 76fa5615ee734a3ab6dbc5bf91df8ed0 for http://prod1, launching... > 12:57:22,016 INFO [org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher] Preparing Firefox profile... > Xlib: extension "RANDR" missing on display ":20.0". > 12:57:42,073 ERROR [org.openqa.selenium.server.BrowserSessionFactory] Failed to start new browser session, shutdown browser and clear all session data > java.lang.RuntimeException: Timed out waiting for profile to be created! > at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.waitForFullProfileToBeCreated(FirefoxChromeLauncher.java:305) > at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.populateCustomProfileDirectory(FirefoxChromeLauncher.java:106) > at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.launch(FirefoxChromeLauncher.java:83) > at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.launchRemoteSession(FirefoxChromeLauncher.java:350) > at org.openqa.selenium.server.browserlaunchers.FirefoxLauncher.launchRemoteSession(FirefoxLauncher.java:98) > at org.openqa.selenium.server.BrowserSessionFactory.createNewRemoteSession(BrowserSessionFactory.java:357) > at org.openqa.selenium.server.BrowserSessionFactory.getNewBrowserSession(BrowserSessionFactory.java:122) > at org.openqa.selenium.server.BrowserSessionFactory.getNewBrowserSession(BrowserSessionFactory.java:84) > at org.openqa.selenium.server.SeleniumDriverResourceHandler.getNewBrowserSession(SeleniumDriverResourceHandler.java:712) > at org.openqa.selenium.server.SeleniumDriverResourceHandler.doCommand(SeleniumDriverResourceHandler.java:393) > at org.openqa.selenium.server.SeleniumDriverResourceHandler.handleCommandRequest(SeleniumDriverResourceHandler.java:364) > at org.openqa.selenium.server.SeleniumDriverResourceHandler.handle(SeleniumDriverResourceHandler.java:125) > at org.mortbay.http.HttpContext.handle(HttpContext.java:1530) > at org.mortbay.http.HttpContext.handle(HttpContext.java:1482) > at org.mortbay.http.HttpServer.service(HttpServer.java:909) > at org.mortbay.http.HttpConnection.service(HttpConnection.java:820) > at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:986) > at org.mortbay.http.HttpConnection.handle(HttpConnection.java:837) > at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:245) > at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) > at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534) > -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
|
|
[jira] Commented: (CONTINUUM-2405) Selenium fails with java.lang.RuntimeException: Timed out waiting for profile to be created! inside Continuum
by JIRA jira@codehaus.org
::
Rate this Message:
Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message [ http://jira.codehaus.org/browse/CONTINUUM-2405?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=197552#action_197552 ] André Salvati commented on CONTINUUM-2405: ------------------------------------------ Hi Wendy... I'm not so sure... http://mail-archives.apache.org/mod_mbox/continuum-users/200911.mbox/browser What configuration problem could it be if it it works with pure Maven and doesn't work with Continuum? Both are running as root. > Selenium fails with java.lang.RuntimeException: Timed out waiting for profile to be created! inside Continuum > ------------------------------------------------------------------------------------------------------------- > > Key: CONTINUUM-2405 > URL: http://jira.codehaus.org/browse/CONTINUUM-2405 > Project: Continuum > Issue Type: Bug > Affects Versions: 1.3.4 > Environment: Maven 2.2.1 > Continuum 1.3.4 > Linux Fedora 11 > Reporter: André Salvati > > I've been trying to run Continuum + Selenium Java tests + X virtual server (xvfb) without success. > Continuum process is running with root privileges. > When I run maven from console (mvn clean install), selenium works smoothly: > [INFO] Scanning for projects... > [INFO] ------------------------------------------------------------------------ > [INFO] Building MenuEAR > [INFO] task-segment: [clean, install] > [INFO] ------------------------------------------------------------------------ > [INFO] [clean:clean {execution: default-clean}] > [INFO] Deleting directory /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target > [INFO] [ear:generate-application-xml {execution: default-generate-application-xml}] > [INFO] Generating application.xml > [INFO] Generating jboss-app.xml > [INFO] [resources:resources {execution: default-resources}] > [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! > [INFO] Copying 23 resources > [INFO] [ear:ear {execution: default-ear}] > [INFO] Copying artifact[ejb:Web:MenuJAR:1.0-SNAPSHOT] to[MenuJAR-1.0-SNAPSHOT.jar] > [INFO] Copying artifact[war:Web:MenuWAR:1.0-SNAPSHOT] to[MenuWAR-1.0-SNAPSHOT.war] > [INFO] Copying artifact[jar:org.richfaces.ui:richfaces-ui:3.3.1.GA] to[lib/richfaces-ui-3.3.1.GA.jar] > [INFO] Copying artifact[jar:org.richfaces.framework:richfaces-impl:3.3.1.GA] to[lib/richfaces-impl-3.3.1.GA.jar] > [INFO] Copying artifact[jar:commons-digester:commons-digester:1.8.1] to[lib/commons-digester-1.8.1.jar] > [INFO] Copying artifact[jar:commons-beanutils:commons-beanutils:1.7.0] to[lib/commons-beanutils-1.7.0.jar] > [INFO] Copying artifact[jar:org.richfaces.framework:richfaces-api:3.3.1.GA] to[lib/richfaces-api-3.3.1.GA.jar] > [INFO] Copying artifact[jar:commons-collections:commons-collections:3.2] to[lib/commons-collections-3.2.jar] > [INFO] Copying artifact[jar:commons-logging:commons-logging:1.0.4] to[lib/commons-logging-1.0.4.jar] > [INFO] Copying artifact[jar:org.jbpm.jbpm3:jbpm-jpdl:3.2.6.SP1] to[lib/jbpm-jpdl-3.2.6.SP1.jar] > [INFO] Copying artifact[jar:org.jbpm.jbpm3:jbpm-identity:3.2.6.SP1] to[lib/jbpm-identity-3.2.6.SP1.jar] > [INFO] Copying artifact[jar:jasperreports:jasperreports:3.6.0] to[lib/jasperreports-3.6.0.jar] > [INFO] Copying artifact[jar:org.codehaus.groovy:groovy-all:1.5.5] to[lib/groovy-all-1.5.5.jar] > [INFO] Copying artifact[jar:junit:junit:4.7] to[lib/junit-4.7.jar] > [INFO] Copying artifact[jar:org.apache.ant:ant:1.7.0] to[lib/ant-1.7.0.jar] > [INFO] Copying artifact[jar:org.apache.ant:ant-launcher:1.7.0] to[lib/ant-launcher-1.7.0.jar] > [INFO] Copying artifact[jar:jline:jline:0.9.94] to[lib/jline-0.9.94.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam:2.2.0.GA] to[lib/jboss-seam-2.2.0.GA.jar] > [INFO] Copying artifact[jar:xstream:xstream:1.1.3] to[lib/xstream-1.1.3.jar] > [INFO] Copying artifact[jar:xpp3:xpp3_min:1.1.3.4.O] to[lib/xpp3_min-1.1.3.4.O.jar] > [INFO] Copying artifact[jar:org.jboss.el:jboss-el:1.0_02.CR4] to[lib/jboss-el-1.0_02.CR4.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-ui:2.2.0.GA] to[lib/jboss-seam-ui-2.2.0.GA.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-jul:2.2.0.GA] to[lib/jboss-seam-jul-2.2.0.GA.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-debug:2.2.0.GA] to[lib/jboss-seam-debug-2.2.0.GA.jar] > [INFO] Copying artifact[jar:com.sun.facelets:jsf-facelets:1.1.15.B1] to[lib/jsf-facelets-1.1.15.B1.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-ioc:2.2.0.GA] to[lib/jboss-seam-ioc-2.2.0.GA.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-pdf:2.2.0.GA] to[lib/jboss-seam-pdf-2.2.0.GA.jar] > [INFO] Copying artifact[jar:com.lowagie:itext:2.1.2] to[lib/itext-2.1.2.jar] > [INFO] Copying artifact[jar:com.lowagie:itext-rtf:2.1.2] to[lib/itext-rtf-2.1.2.jar] > [INFO] Copy ear sources to /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/menu > [INFO] Could not find manifest file: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/src/main/application/META-INF/MANIFEST.MF - Generating one > [INFO] Building jar: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/menu.ear > [INFO] [selenium:xvfb {execution: xvfb}] > [INFO] Starting Xvfb... > [INFO] Using display: :20 > [INFO] Using Xauthority file: /tmp/Xvfb7302122594304485725.Xauthority > Deleting: /tmp/Xvfb7302122594304485725.Xauthority > xauth: creating new authority file /tmp/Xvfb7302122594304485725.Xauthority > Created dir: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium > Launching Xvfb > Waiting for Xvfb... > [INFO] Redirecting output to: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium/xvfb.log > Xvfb started > [INFO] [selenium:start-server {execution: start-selenium}] > Launching Selenium Server > [INFO] Including display properties from: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium/display.properties > [INFO] User extensions: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium/user-extensions.js > Waiting for Selenium Server... > 12:44:18,054 INFO [org.openqa.selenium.server.SeleniumServer] Java: Sun Microsystems Inc. 14.2-b01 > 12:44:18,055 INFO [org.openqa.selenium.server.SeleniumServer] OS: Linux 2.6.30.8-64.fc11.i686.PAE i386 > 12:44:18,066 INFO [org.openqa.selenium.server.SeleniumServer] v1.0.1 [2697], with Core v@VERSION@ [@REVISION@] > 12:44:18,163 INFO [org.mortbay.http.HttpServer] Version Jetty/5.1.x > 12:44:18,165 INFO [org.mortbay.util.Container] Started HttpContext[/selenium-server/driver,/selenium-server/driver] > 12:44:18,166 INFO [org.mortbay.util.Container] Started HttpContext[/selenium-server,/selenium-server] > 12:44:18,166 INFO [org.mortbay.util.Container] Started HttpContext[/,/] > 12:44:18,173 INFO [org.mortbay.http.SocketListener] Started SocketListener on 0.0.0.0:8090 > 12:44:18,173 INFO [org.mortbay.util.Container] Started org.mortbay.jetty.Server@148aa23 > 12:44:18,832 INFO [org.mortbay.util.Credential] Checking Resource aliases > Selenium Server started > [INFO] [compiler:testCompile {execution: compila-testes}] > [INFO] Compiling 11 source files to /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/test-classes > [INFO] [surefire:test {execution: testes-funcionais}] > [INFO] Surefire report directory: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/surefire-reports > ------------------------------------------------------- > T E S T S > ------------------------------------------------------- > Running br.com.optimus.teste.usuario.TestNavegacao > 12:44:20,659 INFO [org.mortbay.util.Credential] Checking Resource aliases > 12:44:20,665 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request: getNewBrowserSession[*firefox, http://prod1, ] on session null > 12:44:20,668 INFO [org.openqa.selenium.server.BrowserSessionFactory] creating new remote session > 12:44:20,775 INFO [org.openqa.selenium.server.BrowserSessionFactory] Allocated session a0d622d6b2d74fc7b5386a29752d7b89 for http://prod1, launching... > 12:44:20,806 INFO [org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher] Preparing Firefox profile... > Xlib: extension "RANDR" missing on display ":20.0". > Xlib: extension "RANDR" missing on display ":20.0". > 12:44:24,064 INFO [org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher] Launching Firefox... > 12:44:26,098 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Got result: OK,a0d622d6b2d74fc7b5386a29752d7b89 on session a0d622d6b2d74fc7b5386a29752d7b89 > 12:44:26,104 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request: open[/erp/login.seam, ] on session a0d622d6b2d74fc7b5386a29752d7b89 > 12:44:26,241 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Got result: OK on session a0d622d6b2d74fc7b5386a29752d7b89 > 12:44:26,244 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request: waitForPageToLoad[3000, ] on session a0d622d6b2d74fc7b5386a29752d7b89 > 12:44:26,264 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Got result: OK on session a0d622d6b2d74fc7b5386a29752d7b89 > 12:44:26,266 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request: type[login:username, demo1] on session a0d622d6b2d74fc7b5386a29752d7b89 > aberto /erp/login.seam > 12:44:26,299 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Got result: OK on session a0d622d6b2d74fc7b5386a29752d7b89 > 12:44:26,301 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request: type[login:password, demo1] on session a0d622d6b2d74fc7b5386a29752d7b89 > preenchido login:username com demo1 > (....) > Otherwise, when I run the same phases inside Selenium, it fails: > [INFO] Scanning for projects... > [INFO] ------------------------------------------------------------------------ > [INFO] Building MenuEAR > [INFO] task-segment: [clean, install] > [INFO] ------------------------------------------------------------------------ > [INFO] [clean:clean {execution: default-clean}] > [INFO] Deleting directory /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target > [INFO] [ear:generate-application-xml {execution: default-generate-application-xml}] > [INFO] Generating application.xml > [INFO] Generating jboss-app.xml > [INFO] [resources:resources {execution: default-resources}] > [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! > [INFO] Copying 23 resources > [INFO] [ear:ear {execution: default-ear}] > [INFO] Copying artifact[ejb:Web:MenuJAR:1.0-SNAPSHOT] to[MenuJAR-1.0-SNAPSHOT.jar] > [INFO] Copying artifact[war:Web:MenuWAR:1.0-SNAPSHOT] to[MenuWAR-1.0-SNAPSHOT.war] > [INFO] Copying artifact[jar:org.richfaces.ui:richfaces-ui:3.3.1.GA] to[lib/richfaces-ui-3.3.1.GA.jar] > [INFO] Copying artifact[jar:org.richfaces.framework:richfaces-impl:3.3.1.GA] to[lib/richfaces-impl-3.3.1.GA.jar] > [INFO] Copying artifact[jar:commons-digester:commons-digester:1.8.1] to[lib/commons-digester-1.8.1.jar] > [INFO] Copying artifact[jar:commons-beanutils:commons-beanutils:1.7.0] to[lib/commons-beanutils-1.7.0.jar] > [INFO] Copying artifact[jar:org.richfaces.framework:richfaces-api:3.3.1.GA] to[lib/richfaces-api-3.3.1.GA.jar] > [INFO] Copying artifact[jar:commons-collections:commons-collections:3.2] to[lib/commons-collections-3.2.jar] > [INFO] Copying artifact[jar:commons-logging:commons-logging:1.0.4] to[lib/commons-logging-1.0.4.jar] > [INFO] Copying artifact[jar:org.jbpm.jbpm3:jbpm-jpdl:3.2.6.SP1] to[lib/jbpm-jpdl-3.2.6.SP1.jar] > [INFO] Copying artifact[jar:org.jbpm.jbpm3:jbpm-identity:3.2.6.SP1] to[lib/jbpm-identity-3.2.6.SP1.jar] > [INFO] Copying artifact[jar:jasperreports:jasperreports:3.6.0] to[lib/jasperreports-3.6.0.jar] > [INFO] Copying artifact[jar:org.codehaus.groovy:groovy-all:1.5.5] to[lib/groovy-all-1.5.5.jar] > [INFO] Copying artifact[jar:junit:junit:4.7] to[lib/junit-4.7.jar] > [INFO] Copying artifact[jar:org.apache.ant:ant:1.7.0] to[lib/ant-1.7.0.jar] > [INFO] Copying artifact[jar:org.apache.ant:ant-launcher:1.7.0] to[lib/ant-launcher-1.7.0.jar] > [INFO] Copying artifact[jar:jline:jline:0.9.94] to[lib/jline-0.9.94.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam:2.2.0.GA] to[lib/jboss-seam-2.2.0.GA.jar] > [INFO] Copying artifact[jar:xstream:xstream:1.1.3] to[lib/xstream-1.1.3.jar] > [INFO] Copying artifact[jar:xpp3:xpp3_min:1.1.3.4.O] to[lib/xpp3_min-1.1.3.4.O.jar] > [INFO] Copying artifact[jar:org.jboss.el:jboss-el:1.0_02.CR4] to[lib/jboss-el-1.0_02.CR4.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-ui:2.2.0.GA] to[lib/jboss-seam-ui-2.2.0.GA.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-jul:2.2.0.GA] to[lib/jboss-seam-jul-2.2.0.GA.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-debug:2.2.0.GA] to[lib/jboss-seam-debug-2.2.0.GA.jar] > [INFO] Copying artifact[jar:com.sun.facelets:jsf-facelets:1.1.15.B1] to[lib/jsf-facelets-1.1.15.B1.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-ioc:2.2.0.GA] to[lib/jboss-seam-ioc-2.2.0.GA.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-pdf:2.2.0.GA] to[lib/jboss-seam-pdf-2.2.0.GA.jar] > [INFO] Copying artifact[jar:com.lowagie:itext:2.1.2] to[lib/itext-2.1.2.jar] > [INFO] Copying artifact[jar:com.lowagie:itext-rtf:2.1.2] to[lib/itext-rtf-2.1.2.jar] > [INFO] Copy ear sources to /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/menu > [INFO] Could not find manifest file: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/src/main/application/META-INF/MANIFEST.MF - Generating one > [INFO] Building jar: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/menu.ear > [INFO] [selenium:xvfb {execution: xvfb}] > [INFO] Starting Xvfb... > [INFO] Using display: :20 > [INFO] Using Xauthority file: /tmp/Xvfb31539120038900714.Xauthority > Deleting: /tmp/Xvfb31539120038900714.Xauthority > xauth: creating new authority file /tmp/Xvfb31539120038900714.Xauthority > Created dir: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium > Launching Xvfb > Waiting for Xvfb... > [INFO] Redirecting output to: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium/xvfb.log > Xvfb started > [INFO] [selenium:start-server {execution: start-selenium}] > Launching Selenium Server > Waiting for Selenium Server... > [INFO] Including display properties from: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium/display.properties > [INFO] User extensions: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium/user-extensions.js > 12:57:19,390 INFO [org.openqa.selenium.server.SeleniumServer] Java: Sun Microsystems Inc. 14.2-b01 > 12:57:19,391 INFO [org.openqa.selenium.server.SeleniumServer] OS: Linux 2.6.30.8-64.fc11.i686.PAE i386 > 12:57:19,400 INFO [org.openqa.selenium.server.SeleniumServer] v1.0.1 [2697], with Core v@VERSION@ [@REVISION@] > 12:57:19,464 INFO [org.mortbay.http.HttpServer] Version Jetty/5.1.x > 12:57:19,465 INFO [org.mortbay.util.Container] Started HttpContext[/selenium-server/driver,/selenium-server/driver] > 12:57:19,465 INFO [org.mortbay.util.Container] Started HttpContext[/selenium-server,/selenium-server] > 12:57:19,465 INFO [org.mortbay.util.Container] Started HttpContext[/,/] > 12:57:19,470 INFO [org.mortbay.http.SocketListener] Started SocketListener on 0.0.0.0:8090 > 12:57:19,470 INFO [org.mortbay.util.Container] Started org.mortbay.jetty.Server@199f91c > 12:57:20,196 INFO [org.mortbay.util.Credential] Checking Resource aliases > Selenium Server started > [INFO] [compiler:testCompile {execution: compila-testes}] > [INFO] Compiling 11 source files to /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/test-classes > [INFO] [surefire:test {execution: testes-funcionais}] > [INFO] Surefire report directory: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/surefire-reports > ------------------------------------------------------- > T E S T S > ------------------------------------------------------- > Running br.com.optimus.teste.usuario.TestNavegacao > 12:57:21,862 INFO [org.mortbay.util.Credential] Checking Resource aliases > 12:57:21,868 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request: getNewBrowserSession[*firefox, http://prod1, ] on session null > 12:57:21,870 INFO [org.openqa.selenium.server.BrowserSessionFactory] creating new remote session > 12:57:21,959 INFO [org.openqa.selenium.server.BrowserSessionFactory] Allocated session 76fa5615ee734a3ab6dbc5bf91df8ed0 for http://prod1, launching... > 12:57:22,016 INFO [org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher] Preparing Firefox profile... > Xlib: extension "RANDR" missing on display ":20.0". > 12:57:42,073 ERROR [org.openqa.selenium.server.BrowserSessionFactory] Failed to start new browser session, shutdown browser and clear all session data > java.lang.RuntimeException: Timed out waiting for profile to be created! > at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.waitForFullProfileToBeCreated(FirefoxChromeLauncher.java:305) > at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.populateCustomProfileDirectory(FirefoxChromeLauncher.java:106) > at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.launch(FirefoxChromeLauncher.java:83) > at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.launchRemoteSession(FirefoxChromeLauncher.java:350) > at org.openqa.selenium.server.browserlaunchers.FirefoxLauncher.launchRemoteSession(FirefoxLauncher.java:98) > at org.openqa.selenium.server.BrowserSessionFactory.createNewRemoteSession(BrowserSessionFactory.java:357) > at org.openqa.selenium.server.BrowserSessionFactory.getNewBrowserSession(BrowserSessionFactory.java:122) > at org.openqa.selenium.server.BrowserSessionFactory.getNewBrowserSession(BrowserSessionFactory.java:84) > at org.openqa.selenium.server.SeleniumDriverResourceHandler.getNewBrowserSession(SeleniumDriverResourceHandler.java:712) > at org.openqa.selenium.server.SeleniumDriverResourceHandler.doCommand(SeleniumDriverResourceHandler.java:393) > at org.openqa.selenium.server.SeleniumDriverResourceHandler.handleCommandRequest(SeleniumDriverResourceHandler.java:364) > at org.openqa.selenium.server.SeleniumDriverResourceHandler.handle(SeleniumDriverResourceHandler.java:125) > at org.mortbay.http.HttpContext.handle(HttpContext.java:1530) > at org.mortbay.http.HttpContext.handle(HttpContext.java:1482) > at org.mortbay.http.HttpServer.service(HttpServer.java:909) > at org.mortbay.http.HttpConnection.service(HttpConnection.java:820) > at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:986) > at org.mortbay.http.HttpConnection.handle(HttpConnection.java:837) > at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:245) > at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) > at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534) > -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
|
|
[jira] Commented: (CONTINUUM-2405) Selenium fails with java.lang.RuntimeException: Timed out waiting for profile to be created! inside Continuum
by JIRA jira@codehaus.org
::
Rate this Message:
Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message [ http://jira.codehaus.org/browse/CONTINUUM-2405?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=197567#action_197567 ] André Salvati commented on CONTINUUM-2405: ------------------------------------------ Ok. This is happening because I'm starting Continuum as a service. Any workarround? > Selenium fails with java.lang.RuntimeException: Timed out waiting for profile to be created! inside Continuum > ------------------------------------------------------------------------------------------------------------- > > Key: CONTINUUM-2405 > URL: http://jira.codehaus.org/browse/CONTINUUM-2405 > Project: Continuum > Issue Type: Bug > Affects Versions: 1.3.4 > Environment: Maven 2.2.1 > Continuum 1.3.4 > Linux Fedora 11 > Reporter: André Salvati > > I've been trying to run Continuum + Selenium Java tests + X virtual server (xvfb) without success. > Continuum process is running with root privileges. > When I run maven from console (mvn clean install), selenium works smoothly: > [INFO] Scanning for projects... > [INFO] ------------------------------------------------------------------------ > [INFO] Building MenuEAR > [INFO] task-segment: [clean, install] > [INFO] ------------------------------------------------------------------------ > [INFO] [clean:clean {execution: default-clean}] > [INFO] Deleting directory /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target > [INFO] [ear:generate-application-xml {execution: default-generate-application-xml}] > [INFO] Generating application.xml > [INFO] Generating jboss-app.xml > [INFO] [resources:resources {execution: default-resources}] > [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! > [INFO] Copying 23 resources > [INFO] [ear:ear {execution: default-ear}] > [INFO] Copying artifact[ejb:Web:MenuJAR:1.0-SNAPSHOT] to[MenuJAR-1.0-SNAPSHOT.jar] > [INFO] Copying artifact[war:Web:MenuWAR:1.0-SNAPSHOT] to[MenuWAR-1.0-SNAPSHOT.war] > [INFO] Copying artifact[jar:org.richfaces.ui:richfaces-ui:3.3.1.GA] to[lib/richfaces-ui-3.3.1.GA.jar] > [INFO] Copying artifact[jar:org.richfaces.framework:richfaces-impl:3.3.1.GA] to[lib/richfaces-impl-3.3.1.GA.jar] > [INFO] Copying artifact[jar:commons-digester:commons-digester:1.8.1] to[lib/commons-digester-1.8.1.jar] > [INFO] Copying artifact[jar:commons-beanutils:commons-beanutils:1.7.0] to[lib/commons-beanutils-1.7.0.jar] > [INFO] Copying artifact[jar:org.richfaces.framework:richfaces-api:3.3.1.GA] to[lib/richfaces-api-3.3.1.GA.jar] > [INFO] Copying artifact[jar:commons-collections:commons-collections:3.2] to[lib/commons-collections-3.2.jar] > [INFO] Copying artifact[jar:commons-logging:commons-logging:1.0.4] to[lib/commons-logging-1.0.4.jar] > [INFO] Copying artifact[jar:org.jbpm.jbpm3:jbpm-jpdl:3.2.6.SP1] to[lib/jbpm-jpdl-3.2.6.SP1.jar] > [INFO] Copying artifact[jar:org.jbpm.jbpm3:jbpm-identity:3.2.6.SP1] to[lib/jbpm-identity-3.2.6.SP1.jar] > [INFO] Copying artifact[jar:jasperreports:jasperreports:3.6.0] to[lib/jasperreports-3.6.0.jar] > [INFO] Copying artifact[jar:org.codehaus.groovy:groovy-all:1.5.5] to[lib/groovy-all-1.5.5.jar] > [INFO] Copying artifact[jar:junit:junit:4.7] to[lib/junit-4.7.jar] > [INFO] Copying artifact[jar:org.apache.ant:ant:1.7.0] to[lib/ant-1.7.0.jar] > [INFO] Copying artifact[jar:org.apache.ant:ant-launcher:1.7.0] to[lib/ant-launcher-1.7.0.jar] > [INFO] Copying artifact[jar:jline:jline:0.9.94] to[lib/jline-0.9.94.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam:2.2.0.GA] to[lib/jboss-seam-2.2.0.GA.jar] > [INFO] Copying artifact[jar:xstream:xstream:1.1.3] to[lib/xstream-1.1.3.jar] > [INFO] Copying artifact[jar:xpp3:xpp3_min:1.1.3.4.O] to[lib/xpp3_min-1.1.3.4.O.jar] > [INFO] Copying artifact[jar:org.jboss.el:jboss-el:1.0_02.CR4] to[lib/jboss-el-1.0_02.CR4.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-ui:2.2.0.GA] to[lib/jboss-seam-ui-2.2.0.GA.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-jul:2.2.0.GA] to[lib/jboss-seam-jul-2.2.0.GA.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-debug:2.2.0.GA] to[lib/jboss-seam-debug-2.2.0.GA.jar] > [INFO] Copying artifact[jar:com.sun.facelets:jsf-facelets:1.1.15.B1] to[lib/jsf-facelets-1.1.15.B1.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-ioc:2.2.0.GA] to[lib/jboss-seam-ioc-2.2.0.GA.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-pdf:2.2.0.GA] to[lib/jboss-seam-pdf-2.2.0.GA.jar] > [INFO] Copying artifact[jar:com.lowagie:itext:2.1.2] to[lib/itext-2.1.2.jar] > [INFO] Copying artifact[jar:com.lowagie:itext-rtf:2.1.2] to[lib/itext-rtf-2.1.2.jar] > [INFO] Copy ear sources to /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/menu > [INFO] Could not find manifest file: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/src/main/application/META-INF/MANIFEST.MF - Generating one > [INFO] Building jar: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/menu.ear > [INFO] [selenium:xvfb {execution: xvfb}] > [INFO] Starting Xvfb... > [INFO] Using display: :20 > [INFO] Using Xauthority file: /tmp/Xvfb7302122594304485725.Xauthority > Deleting: /tmp/Xvfb7302122594304485725.Xauthority > xauth: creating new authority file /tmp/Xvfb7302122594304485725.Xauthority > Created dir: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium > Launching Xvfb > Waiting for Xvfb... > [INFO] Redirecting output to: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium/xvfb.log > Xvfb started > [INFO] [selenium:start-server {execution: start-selenium}] > Launching Selenium Server > [INFO] Including display properties from: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium/display.properties > [INFO] User extensions: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium/user-extensions.js > Waiting for Selenium Server... > 12:44:18,054 INFO [org.openqa.selenium.server.SeleniumServer] Java: Sun Microsystems Inc. 14.2-b01 > 12:44:18,055 INFO [org.openqa.selenium.server.SeleniumServer] OS: Linux 2.6.30.8-64.fc11.i686.PAE i386 > 12:44:18,066 INFO [org.openqa.selenium.server.SeleniumServer] v1.0.1 [2697], with Core v@VERSION@ [@REVISION@] > 12:44:18,163 INFO [org.mortbay.http.HttpServer] Version Jetty/5.1.x > 12:44:18,165 INFO [org.mortbay.util.Container] Started HttpContext[/selenium-server/driver,/selenium-server/driver] > 12:44:18,166 INFO [org.mortbay.util.Container] Started HttpContext[/selenium-server,/selenium-server] > 12:44:18,166 INFO [org.mortbay.util.Container] Started HttpContext[/,/] > 12:44:18,173 INFO [org.mortbay.http.SocketListener] Started SocketListener on 0.0.0.0:8090 > 12:44:18,173 INFO [org.mortbay.util.Container] Started org.mortbay.jetty.Server@148aa23 > 12:44:18,832 INFO [org.mortbay.util.Credential] Checking Resource aliases > Selenium Server started > [INFO] [compiler:testCompile {execution: compila-testes}] > [INFO] Compiling 11 source files to /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/test-classes > [INFO] [surefire:test {execution: testes-funcionais}] > [INFO] Surefire report directory: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/surefire-reports > ------------------------------------------------------- > T E S T S > ------------------------------------------------------- > Running br.com.optimus.teste.usuario.TestNavegacao > 12:44:20,659 INFO [org.mortbay.util.Credential] Checking Resource aliases > 12:44:20,665 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request: getNewBrowserSession[*firefox, http://prod1, ] on session null > 12:44:20,668 INFO [org.openqa.selenium.server.BrowserSessionFactory] creating new remote session > 12:44:20,775 INFO [org.openqa.selenium.server.BrowserSessionFactory] Allocated session a0d622d6b2d74fc7b5386a29752d7b89 for http://prod1, launching... > 12:44:20,806 INFO [org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher] Preparing Firefox profile... > Xlib: extension "RANDR" missing on display ":20.0". > Xlib: extension "RANDR" missing on display ":20.0". > 12:44:24,064 INFO [org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher] Launching Firefox... > 12:44:26,098 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Got result: OK,a0d622d6b2d74fc7b5386a29752d7b89 on session a0d622d6b2d74fc7b5386a29752d7b89 > 12:44:26,104 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request: open[/erp/login.seam, ] on session a0d622d6b2d74fc7b5386a29752d7b89 > 12:44:26,241 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Got result: OK on session a0d622d6b2d74fc7b5386a29752d7b89 > 12:44:26,244 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request: waitForPageToLoad[3000, ] on session a0d622d6b2d74fc7b5386a29752d7b89 > 12:44:26,264 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Got result: OK on session a0d622d6b2d74fc7b5386a29752d7b89 > 12:44:26,266 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request: type[login:username, demo1] on session a0d622d6b2d74fc7b5386a29752d7b89 > aberto /erp/login.seam > 12:44:26,299 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Got result: OK on session a0d622d6b2d74fc7b5386a29752d7b89 > 12:44:26,301 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request: type[login:password, demo1] on session a0d622d6b2d74fc7b5386a29752d7b89 > preenchido login:username com demo1 > (....) > Otherwise, when I run the same phases inside Selenium, it fails: > [INFO] Scanning for projects... > [INFO] ------------------------------------------------------------------------ > [INFO] Building MenuEAR > [INFO] task-segment: [clean, install] > [INFO] ------------------------------------------------------------------------ > [INFO] [clean:clean {execution: default-clean}] > [INFO] Deleting directory /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target > [INFO] [ear:generate-application-xml {execution: default-generate-application-xml}] > [INFO] Generating application.xml > [INFO] Generating jboss-app.xml > [INFO] [resources:resources {execution: default-resources}] > [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! > [INFO] Copying 23 resources > [INFO] [ear:ear {execution: default-ear}] > [INFO] Copying artifact[ejb:Web:MenuJAR:1.0-SNAPSHOT] to[MenuJAR-1.0-SNAPSHOT.jar] > [INFO] Copying artifact[war:Web:MenuWAR:1.0-SNAPSHOT] to[MenuWAR-1.0-SNAPSHOT.war] > [INFO] Copying artifact[jar:org.richfaces.ui:richfaces-ui:3.3.1.GA] to[lib/richfaces-ui-3.3.1.GA.jar] > [INFO] Copying artifact[jar:org.richfaces.framework:richfaces-impl:3.3.1.GA] to[lib/richfaces-impl-3.3.1.GA.jar] > [INFO] Copying artifact[jar:commons-digester:commons-digester:1.8.1] to[lib/commons-digester-1.8.1.jar] > [INFO] Copying artifact[jar:commons-beanutils:commons-beanutils:1.7.0] to[lib/commons-beanutils-1.7.0.jar] > [INFO] Copying artifact[jar:org.richfaces.framework:richfaces-api:3.3.1.GA] to[lib/richfaces-api-3.3.1.GA.jar] > [INFO] Copying artifact[jar:commons-collections:commons-collections:3.2] to[lib/commons-collections-3.2.jar] > [INFO] Copying artifact[jar:commons-logging:commons-logging:1.0.4] to[lib/commons-logging-1.0.4.jar] > [INFO] Copying artifact[jar:org.jbpm.jbpm3:jbpm-jpdl:3.2.6.SP1] to[lib/jbpm-jpdl-3.2.6.SP1.jar] > [INFO] Copying artifact[jar:org.jbpm.jbpm3:jbpm-identity:3.2.6.SP1] to[lib/jbpm-identity-3.2.6.SP1.jar] > [INFO] Copying artifact[jar:jasperreports:jasperreports:3.6.0] to[lib/jasperreports-3.6.0.jar] > [INFO] Copying artifact[jar:org.codehaus.groovy:groovy-all:1.5.5] to[lib/groovy-all-1.5.5.jar] > [INFO] Copying artifact[jar:junit:junit:4.7] to[lib/junit-4.7.jar] > [INFO] Copying artifact[jar:org.apache.ant:ant:1.7.0] to[lib/ant-1.7.0.jar] > [INFO] Copying artifact[jar:org.apache.ant:ant-launcher:1.7.0] to[lib/ant-launcher-1.7.0.jar] > [INFO] Copying artifact[jar:jline:jline:0.9.94] to[lib/jline-0.9.94.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam:2.2.0.GA] to[lib/jboss-seam-2.2.0.GA.jar] > [INFO] Copying artifact[jar:xstream:xstream:1.1.3] to[lib/xstream-1.1.3.jar] > [INFO] Copying artifact[jar:xpp3:xpp3_min:1.1.3.4.O] to[lib/xpp3_min-1.1.3.4.O.jar] > [INFO] Copying artifact[jar:org.jboss.el:jboss-el:1.0_02.CR4] to[lib/jboss-el-1.0_02.CR4.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-ui:2.2.0.GA] to[lib/jboss-seam-ui-2.2.0.GA.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-jul:2.2.0.GA] to[lib/jboss-seam-jul-2.2.0.GA.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-debug:2.2.0.GA] to[lib/jboss-seam-debug-2.2.0.GA.jar] > [INFO] Copying artifact[jar:com.sun.facelets:jsf-facelets:1.1.15.B1] to[lib/jsf-facelets-1.1.15.B1.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-ioc:2.2.0.GA] to[lib/jboss-seam-ioc-2.2.0.GA.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-pdf:2.2.0.GA] to[lib/jboss-seam-pdf-2.2.0.GA.jar] > [INFO] Copying artifact[jar:com.lowagie:itext:2.1.2] to[lib/itext-2.1.2.jar] > [INFO] Copying artifact[jar:com.lowagie:itext-rtf:2.1.2] to[lib/itext-rtf-2.1.2.jar] > [INFO] Copy ear sources to /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/menu > [INFO] Could not find manifest file: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/src/main/application/META-INF/MANIFEST.MF - Generating one > [INFO] Building jar: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/menu.ear > [INFO] [selenium:xvfb {execution: xvfb}] > [INFO] Starting Xvfb... > [INFO] Using display: :20 > [INFO] Using Xauthority file: /tmp/Xvfb31539120038900714.Xauthority > Deleting: /tmp/Xvfb31539120038900714.Xauthority > xauth: creating new authority file /tmp/Xvfb31539120038900714.Xauthority > Created dir: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium > Launching Xvfb > Waiting for Xvfb... > [INFO] Redirecting output to: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium/xvfb.log > Xvfb started > [INFO] [selenium:start-server {execution: start-selenium}] > Launching Selenium Server > Waiting for Selenium Server... > [INFO] Including display properties from: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium/display.properties > [INFO] User extensions: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium/user-extensions.js > 12:57:19,390 INFO [org.openqa.selenium.server.SeleniumServer] Java: Sun Microsystems Inc. 14.2-b01 > 12:57:19,391 INFO [org.openqa.selenium.server.SeleniumServer] OS: Linux 2.6.30.8-64.fc11.i686.PAE i386 > 12:57:19,400 INFO [org.openqa.selenium.server.SeleniumServer] v1.0.1 [2697], with Core v@VERSION@ [@REVISION@] > 12:57:19,464 INFO [org.mortbay.http.HttpServer] Version Jetty/5.1.x > 12:57:19,465 INFO [org.mortbay.util.Container] Started HttpContext[/selenium-server/driver,/selenium-server/driver] > 12:57:19,465 INFO [org.mortbay.util.Container] Started HttpContext[/selenium-server,/selenium-server] > 12:57:19,465 INFO [org.mortbay.util.Container] Started HttpContext[/,/] > 12:57:19,470 INFO [org.mortbay.http.SocketListener] Started SocketListener on 0.0.0.0:8090 > 12:57:19,470 INFO [org.mortbay.util.Container] Started org.mortbay.jetty.Server@199f91c > 12:57:20,196 INFO [org.mortbay.util.Credential] Checking Resource aliases > Selenium Server started > [INFO] [compiler:testCompile {execution: compila-testes}] > [INFO] Compiling 11 source files to /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/test-classes > [INFO] [surefire:test {execution: testes-funcionais}] > [INFO] Surefire report directory: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/surefire-reports > ------------------------------------------------------- > T E S T S > ------------------------------------------------------- > Running br.com.optimus.teste.usuario.TestNavegacao > 12:57:21,862 INFO [org.mortbay.util.Credential] Checking Resource aliases > 12:57:21,868 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request: getNewBrowserSession[*firefox, http://prod1, ] on session null > 12:57:21,870 INFO [org.openqa.selenium.server.BrowserSessionFactory] creating new remote session > 12:57:21,959 INFO [org.openqa.selenium.server.BrowserSessionFactory] Allocated session 76fa5615ee734a3ab6dbc5bf91df8ed0 for http://prod1, launching... > 12:57:22,016 INFO [org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher] Preparing Firefox profile... > Xlib: extension "RANDR" missing on display ":20.0". > 12:57:42,073 ERROR [org.openqa.selenium.server.BrowserSessionFactory] Failed to start new browser session, shutdown browser and clear all session data > java.lang.RuntimeException: Timed out waiting for profile to be created! > at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.waitForFullProfileToBeCreated(FirefoxChromeLauncher.java:305) > at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.populateCustomProfileDirectory(FirefoxChromeLauncher.java:106) > at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.launch(FirefoxChromeLauncher.java:83) > at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.launchRemoteSession(FirefoxChromeLauncher.java:350) > at org.openqa.selenium.server.browserlaunchers.FirefoxLauncher.launchRemoteSession(FirefoxLauncher.java:98) > at org.openqa.selenium.server.BrowserSessionFactory.createNewRemoteSession(BrowserSessionFactory.java:357) > at org.openqa.selenium.server.BrowserSessionFactory.getNewBrowserSession(BrowserSessionFactory.java:122) > at org.openqa.selenium.server.BrowserSessionFactory.getNewBrowserSession(BrowserSessionFactory.java:84) > at org.openqa.selenium.server.SeleniumDriverResourceHandler.getNewBrowserSession(SeleniumDriverResourceHandler.java:712) > at org.openqa.selenium.server.SeleniumDriverResourceHandler.doCommand(SeleniumDriverResourceHandler.java:393) > at org.openqa.selenium.server.SeleniumDriverResourceHandler.handleCommandRequest(SeleniumDriverResourceHandler.java:364) > at org.openqa.selenium.server.SeleniumDriverResourceHandler.handle(SeleniumDriverResourceHandler.java:125) > at org.mortbay.http.HttpContext.handle(HttpContext.java:1530) > at org.mortbay.http.HttpContext.handle(HttpContext.java:1482) > at org.mortbay.http.HttpServer.service(HttpServer.java:909) > at org.mortbay.http.HttpConnection.service(HttpConnection.java:820) > at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:986) > at org.mortbay.http.HttpConnection.handle(HttpConnection.java:837) > at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:245) > at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) > at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534) > -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
|
|
[jira] Commented: (CONTINUUM-2405) Selenium fails with java.lang.RuntimeException: Timed out waiting for profile to be created! inside Continuum
by JIRA jira@codehaus.org
::
Rate this Message:
Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message [ http://jira.codehaus.org/browse/CONTINUUM-2405?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=197660#action_197660 ] Wendy Smoak commented on CONTINUUM-2405: ---------------------------------------- "as a service" sounds like Windows, but the environment section above says Fedora. Can you clarify? What makes you say that starting it as a service is the problem? Continuum does need to run as a real user with a home directory. > Selenium fails with java.lang.RuntimeException: Timed out waiting for profile to be created! inside Continuum > ------------------------------------------------------------------------------------------------------------- > > Key: CONTINUUM-2405 > URL: http://jira.codehaus.org/browse/CONTINUUM-2405 > Project: Continuum > Issue Type: Bug > Affects Versions: 1.3.4 > Environment: Maven 2.2.1 > Continuum 1.3.4 > Linux Fedora 11 > Reporter: André Salvati > > I've been trying to run Continuum + Selenium Java tests + X virtual server (xvfb) without success. > Continuum process is running with root privileges. > When I run maven from console (mvn clean install), selenium works smoothly: > [INFO] Scanning for projects... > [INFO] ------------------------------------------------------------------------ > [INFO] Building MenuEAR > [INFO] task-segment: [clean, install] > [INFO] ------------------------------------------------------------------------ > [INFO] [clean:clean {execution: default-clean}] > [INFO] Deleting directory /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target > [INFO] [ear:generate-application-xml {execution: default-generate-application-xml}] > [INFO] Generating application.xml > [INFO] Generating jboss-app.xml > [INFO] [resources:resources {execution: default-resources}] > [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! > [INFO] Copying 23 resources > [INFO] [ear:ear {execution: default-ear}] > [INFO] Copying artifact[ejb:Web:MenuJAR:1.0-SNAPSHOT] to[MenuJAR-1.0-SNAPSHOT.jar] > [INFO] Copying artifact[war:Web:MenuWAR:1.0-SNAPSHOT] to[MenuWAR-1.0-SNAPSHOT.war] > [INFO] Copying artifact[jar:org.richfaces.ui:richfaces-ui:3.3.1.GA] to[lib/richfaces-ui-3.3.1.GA.jar] > [INFO] Copying artifact[jar:org.richfaces.framework:richfaces-impl:3.3.1.GA] to[lib/richfaces-impl-3.3.1.GA.jar] > [INFO] Copying artifact[jar:commons-digester:commons-digester:1.8.1] to[lib/commons-digester-1.8.1.jar] > [INFO] Copying artifact[jar:commons-beanutils:commons-beanutils:1.7.0] to[lib/commons-beanutils-1.7.0.jar] > [INFO] Copying artifact[jar:org.richfaces.framework:richfaces-api:3.3.1.GA] to[lib/richfaces-api-3.3.1.GA.jar] > [INFO] Copying artifact[jar:commons-collections:commons-collections:3.2] to[lib/commons-collections-3.2.jar] > [INFO] Copying artifact[jar:commons-logging:commons-logging:1.0.4] to[lib/commons-logging-1.0.4.jar] > [INFO] Copying artifact[jar:org.jbpm.jbpm3:jbpm-jpdl:3.2.6.SP1] to[lib/jbpm-jpdl-3.2.6.SP1.jar] > [INFO] Copying artifact[jar:org.jbpm.jbpm3:jbpm-identity:3.2.6.SP1] to[lib/jbpm-identity-3.2.6.SP1.jar] > [INFO] Copying artifact[jar:jasperreports:jasperreports:3.6.0] to[lib/jasperreports-3.6.0.jar] > [INFO] Copying artifact[jar:org.codehaus.groovy:groovy-all:1.5.5] to[lib/groovy-all-1.5.5.jar] > [INFO] Copying artifact[jar:junit:junit:4.7] to[lib/junit-4.7.jar] > [INFO] Copying artifact[jar:org.apache.ant:ant:1.7.0] to[lib/ant-1.7.0.jar] > [INFO] Copying artifact[jar:org.apache.ant:ant-launcher:1.7.0] to[lib/ant-launcher-1.7.0.jar] > [INFO] Copying artifact[jar:jline:jline:0.9.94] to[lib/jline-0.9.94.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam:2.2.0.GA] to[lib/jboss-seam-2.2.0.GA.jar] > [INFO] Copying artifact[jar:xstream:xstream:1.1.3] to[lib/xstream-1.1.3.jar] > [INFO] Copying artifact[jar:xpp3:xpp3_min:1.1.3.4.O] to[lib/xpp3_min-1.1.3.4.O.jar] > [INFO] Copying artifact[jar:org.jboss.el:jboss-el:1.0_02.CR4] to[lib/jboss-el-1.0_02.CR4.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-ui:2.2.0.GA] to[lib/jboss-seam-ui-2.2.0.GA.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-jul:2.2.0.GA] to[lib/jboss-seam-jul-2.2.0.GA.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-debug:2.2.0.GA] to[lib/jboss-seam-debug-2.2.0.GA.jar] > [INFO] Copying artifact[jar:com.sun.facelets:jsf-facelets:1.1.15.B1] to[lib/jsf-facelets-1.1.15.B1.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-ioc:2.2.0.GA] to[lib/jboss-seam-ioc-2.2.0.GA.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-pdf:2.2.0.GA] to[lib/jboss-seam-pdf-2.2.0.GA.jar] > [INFO] Copying artifact[jar:com.lowagie:itext:2.1.2] to[lib/itext-2.1.2.jar] > [INFO] Copying artifact[jar:com.lowagie:itext-rtf:2.1.2] to[lib/itext-rtf-2.1.2.jar] > [INFO] Copy ear sources to /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/menu > [INFO] Could not find manifest file: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/src/main/application/META-INF/MANIFEST.MF - Generating one > [INFO] Building jar: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/menu.ear > [INFO] [selenium:xvfb {execution: xvfb}] > [INFO] Starting Xvfb... > [INFO] Using display: :20 > [INFO] Using Xauthority file: /tmp/Xvfb7302122594304485725.Xauthority > Deleting: /tmp/Xvfb7302122594304485725.Xauthority > xauth: creating new authority file /tmp/Xvfb7302122594304485725.Xauthority > Created dir: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium > Launching Xvfb > Waiting for Xvfb... > [INFO] Redirecting output to: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium/xvfb.log > Xvfb started > [INFO] [selenium:start-server {execution: start-selenium}] > Launching Selenium Server > [INFO] Including display properties from: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium/display.properties > [INFO] User extensions: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium/user-extensions.js > Waiting for Selenium Server... > 12:44:18,054 INFO [org.openqa.selenium.server.SeleniumServer] Java: Sun Microsystems Inc. 14.2-b01 > 12:44:18,055 INFO [org.openqa.selenium.server.SeleniumServer] OS: Linux 2.6.30.8-64.fc11.i686.PAE i386 > 12:44:18,066 INFO [org.openqa.selenium.server.SeleniumServer] v1.0.1 [2697], with Core v@VERSION@ [@REVISION@] > 12:44:18,163 INFO [org.mortbay.http.HttpServer] Version Jetty/5.1.x > 12:44:18,165 INFO [org.mortbay.util.Container] Started HttpContext[/selenium-server/driver,/selenium-server/driver] > 12:44:18,166 INFO [org.mortbay.util.Container] Started HttpContext[/selenium-server,/selenium-server] > 12:44:18,166 INFO [org.mortbay.util.Container] Started HttpContext[/,/] > 12:44:18,173 INFO [org.mortbay.http.SocketListener] Started SocketListener on 0.0.0.0:8090 > 12:44:18,173 INFO [org.mortbay.util.Container] Started org.mortbay.jetty.Server@148aa23 > 12:44:18,832 INFO [org.mortbay.util.Credential] Checking Resource aliases > Selenium Server started > [INFO] [compiler:testCompile {execution: compila-testes}] > [INFO] Compiling 11 source files to /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/test-classes > [INFO] [surefire:test {execution: testes-funcionais}] > [INFO] Surefire report directory: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/surefire-reports > ------------------------------------------------------- > T E S T S > ------------------------------------------------------- > Running br.com.optimus.teste.usuario.TestNavegacao > 12:44:20,659 INFO [org.mortbay.util.Credential] Checking Resource aliases > 12:44:20,665 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request: getNewBrowserSession[*firefox, http://prod1, ] on session null > 12:44:20,668 INFO [org.openqa.selenium.server.BrowserSessionFactory] creating new remote session > 12:44:20,775 INFO [org.openqa.selenium.server.BrowserSessionFactory] Allocated session a0d622d6b2d74fc7b5386a29752d7b89 for http://prod1, launching... > 12:44:20,806 INFO [org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher] Preparing Firefox profile... > Xlib: extension "RANDR" missing on display ":20.0". > Xlib: extension "RANDR" missing on display ":20.0". > 12:44:24,064 INFO [org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher] Launching Firefox... > 12:44:26,098 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Got result: OK,a0d622d6b2d74fc7b5386a29752d7b89 on session a0d622d6b2d74fc7b5386a29752d7b89 > 12:44:26,104 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request: open[/erp/login.seam, ] on session a0d622d6b2d74fc7b5386a29752d7b89 > 12:44:26,241 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Got result: OK on session a0d622d6b2d74fc7b5386a29752d7b89 > 12:44:26,244 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request: waitForPageToLoad[3000, ] on session a0d622d6b2d74fc7b5386a29752d7b89 > 12:44:26,264 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Got result: OK on session a0d622d6b2d74fc7b5386a29752d7b89 > 12:44:26,266 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request: type[login:username, demo1] on session a0d622d6b2d74fc7b5386a29752d7b89 > aberto /erp/login.seam > 12:44:26,299 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Got result: OK on session a0d622d6b2d74fc7b5386a29752d7b89 > 12:44:26,301 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request: type[login:password, demo1] on session a0d622d6b2d74fc7b5386a29752d7b89 > preenchido login:username com demo1 > (....) > Otherwise, when I run the same phases inside Selenium, it fails: > [INFO] Scanning for projects... > [INFO] ------------------------------------------------------------------------ > [INFO] Building MenuEAR > [INFO] task-segment: [clean, install] > [INFO] ------------------------------------------------------------------------ > [INFO] [clean:clean {execution: default-clean}] > [INFO] Deleting directory /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target > [INFO] [ear:generate-application-xml {execution: default-generate-application-xml}] > [INFO] Generating application.xml > [INFO] Generating jboss-app.xml > [INFO] [resources:resources {execution: default-resources}] > [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! > [INFO] Copying 23 resources > [INFO] [ear:ear {execution: default-ear}] > [INFO] Copying artifact[ejb:Web:MenuJAR:1.0-SNAPSHOT] to[MenuJAR-1.0-SNAPSHOT.jar] > [INFO] Copying artifact[war:Web:MenuWAR:1.0-SNAPSHOT] to[MenuWAR-1.0-SNAPSHOT.war] > [INFO] Copying artifact[jar:org.richfaces.ui:richfaces-ui:3.3.1.GA] to[lib/richfaces-ui-3.3.1.GA.jar] > [INFO] Copying artifact[jar:org.richfaces.framework:richfaces-impl:3.3.1.GA] to[lib/richfaces-impl-3.3.1.GA.jar] > [INFO] Copying artifact[jar:commons-digester:commons-digester:1.8.1] to[lib/commons-digester-1.8.1.jar] > [INFO] Copying artifact[jar:commons-beanutils:commons-beanutils:1.7.0] to[lib/commons-beanutils-1.7.0.jar] > [INFO] Copying artifact[jar:org.richfaces.framework:richfaces-api:3.3.1.GA] to[lib/richfaces-api-3.3.1.GA.jar] > [INFO] Copying artifact[jar:commons-collections:commons-collections:3.2] to[lib/commons-collections-3.2.jar] > [INFO] Copying artifact[jar:commons-logging:commons-logging:1.0.4] to[lib/commons-logging-1.0.4.jar] > [INFO] Copying artifact[jar:org.jbpm.jbpm3:jbpm-jpdl:3.2.6.SP1] to[lib/jbpm-jpdl-3.2.6.SP1.jar] > [INFO] Copying artifact[jar:org.jbpm.jbpm3:jbpm-identity:3.2.6.SP1] to[lib/jbpm-identity-3.2.6.SP1.jar] > [INFO] Copying artifact[jar:jasperreports:jasperreports:3.6.0] to[lib/jasperreports-3.6.0.jar] > [INFO] Copying artifact[jar:org.codehaus.groovy:groovy-all:1.5.5] to[lib/groovy-all-1.5.5.jar] > [INFO] Copying artifact[jar:junit:junit:4.7] to[lib/junit-4.7.jar] > [INFO] Copying artifact[jar:org.apache.ant:ant:1.7.0] to[lib/ant-1.7.0.jar] > [INFO] Copying artifact[jar:org.apache.ant:ant-launcher:1.7.0] to[lib/ant-launcher-1.7.0.jar] > [INFO] Copying artifact[jar:jline:jline:0.9.94] to[lib/jline-0.9.94.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam:2.2.0.GA] to[lib/jboss-seam-2.2.0.GA.jar] > [INFO] Copying artifact[jar:xstream:xstream:1.1.3] to[lib/xstream-1.1.3.jar] > [INFO] Copying artifact[jar:xpp3:xpp3_min:1.1.3.4.O] to[lib/xpp3_min-1.1.3.4.O.jar] > [INFO] Copying artifact[jar:org.jboss.el:jboss-el:1.0_02.CR4] to[lib/jboss-el-1.0_02.CR4.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-ui:2.2.0.GA] to[lib/jboss-seam-ui-2.2.0.GA.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-jul:2.2.0.GA] to[lib/jboss-seam-jul-2.2.0.GA.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-debug:2.2.0.GA] to[lib/jboss-seam-debug-2.2.0.GA.jar] > [INFO] Copying artifact[jar:com.sun.facelets:jsf-facelets:1.1.15.B1] to[lib/jsf-facelets-1.1.15.B1.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-ioc:2.2.0.GA] to[lib/jboss-seam-ioc-2.2.0.GA.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-pdf:2.2.0.GA] to[lib/jboss-seam-pdf-2.2.0.GA.jar] > [INFO] Copying artifact[jar:com.lowagie:itext:2.1.2] to[lib/itext-2.1.2.jar] > [INFO] Copying artifact[jar:com.lowagie:itext-rtf:2.1.2] to[lib/itext-rtf-2.1.2.jar] > [INFO] Copy ear sources to /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/menu > [INFO] Could not find manifest file: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/src/main/application/META-INF/MANIFEST.MF - Generating one > [INFO] Building jar: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/menu.ear > [INFO] [selenium:xvfb {execution: xvfb}] > [INFO] Starting Xvfb... > [INFO] Using display: :20 > [INFO] Using Xauthority file: /tmp/Xvfb31539120038900714.Xauthority > Deleting: /tmp/Xvfb31539120038900714.Xauthority > xauth: creating new authority file /tmp/Xvfb31539120038900714.Xauthority > Created dir: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium > Launching Xvfb > Waiting for Xvfb... > [INFO] Redirecting output to: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium/xvfb.log > Xvfb started > [INFO] [selenium:start-server {execution: start-selenium}] > Launching Selenium Server > Waiting for Selenium Server... > [INFO] Including display properties from: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium/display.properties > [INFO] User extensions: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium/user-extensions.js > 12:57:19,390 INFO [org.openqa.selenium.server.SeleniumServer] Java: Sun Microsystems Inc. 14.2-b01 > 12:57:19,391 INFO [org.openqa.selenium.server.SeleniumServer] OS: Linux 2.6.30.8-64.fc11.i686.PAE i386 > 12:57:19,400 INFO [org.openqa.selenium.server.SeleniumServer] v1.0.1 [2697], with Core v@VERSION@ [@REVISION@] > 12:57:19,464 INFO [org.mortbay.http.HttpServer] Version Jetty/5.1.x > 12:57:19,465 INFO [org.mortbay.util.Container] Started HttpContext[/selenium-server/driver,/selenium-server/driver] > 12:57:19,465 INFO [org.mortbay.util.Container] Started HttpContext[/selenium-server,/selenium-server] > 12:57:19,465 INFO [org.mortbay.util.Container] Started HttpContext[/,/] > 12:57:19,470 INFO [org.mortbay.http.SocketListener] Started SocketListener on 0.0.0.0:8090 > 12:57:19,470 INFO [org.mortbay.util.Container] Started org.mortbay.jetty.Server@199f91c > 12:57:20,196 INFO [org.mortbay.util.Credential] Checking Resource aliases > Selenium Server started > [INFO] [compiler:testCompile {execution: compila-testes}] > [INFO] Compiling 11 source files to /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/test-classes > [INFO] [surefire:test {execution: testes-funcionais}] > [INFO] Surefire report directory: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/surefire-reports > ------------------------------------------------------- > T E S T S > ------------------------------------------------------- > Running br.com.optimus.teste.usuario.TestNavegacao > 12:57:21,862 INFO [org.mortbay.util.Credential] Checking Resource aliases > 12:57:21,868 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request: getNewBrowserSession[*firefox, http://prod1, ] on session null > 12:57:21,870 INFO [org.openqa.selenium.server.BrowserSessionFactory] creating new remote session > 12:57:21,959 INFO [org.openqa.selenium.server.BrowserSessionFactory] Allocated session 76fa5615ee734a3ab6dbc5bf91df8ed0 for http://prod1, launching... > 12:57:22,016 INFO [org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher] Preparing Firefox profile... > Xlib: extension "RANDR" missing on display ":20.0". > 12:57:42,073 ERROR [org.openqa.selenium.server.BrowserSessionFactory] Failed to start new browser session, shutdown browser and clear all session data > java.lang.RuntimeException: Timed out waiting for profile to be created! > at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.waitForFullProfileToBeCreated(FirefoxChromeLauncher.java:305) > at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.populateCustomProfileDirectory(FirefoxChromeLauncher.java:106) > at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.launch(FirefoxChromeLauncher.java:83) > at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.launchRemoteSession(FirefoxChromeLauncher.java:350) > at org.openqa.selenium.server.browserlaunchers.FirefoxLauncher.launchRemoteSession(FirefoxLauncher.java:98) > at org.openqa.selenium.server.BrowserSessionFactory.createNewRemoteSession(BrowserSessionFactory.java:357) > at org.openqa.selenium.server.BrowserSessionFactory.getNewBrowserSession(BrowserSessionFactory.java:122) > at org.openqa.selenium.server.BrowserSessionFactory.getNewBrowserSession(BrowserSessionFactory.java:84) > at org.openqa.selenium.server.SeleniumDriverResourceHandler.getNewBrowserSession(SeleniumDriverResourceHandler.java:712) > at org.openqa.selenium.server.SeleniumDriverResourceHandler.doCommand(SeleniumDriverResourceHandler.java:393) > at org.openqa.selenium.server.SeleniumDriverResourceHandler.handleCommandRequest(SeleniumDriverResourceHandler.java:364) > at org.openqa.selenium.server.SeleniumDriverResourceHandler.handle(SeleniumDriverResourceHandler.java:125) > at org.mortbay.http.HttpContext.handle(HttpContext.java:1530) > at org.mortbay.http.HttpContext.handle(HttpContext.java:1482) > at org.mortbay.http.HttpServer.service(HttpServer.java:909) > at org.mortbay.http.HttpConnection.service(HttpConnection.java:820) > at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:986) > at org.mortbay.http.HttpConnection.handle(HttpConnection.java:837) > at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:245) > at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) > at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534) > -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
|
|
[jira] Commented: (CONTINUUM-2405) Selenium fails with java.lang.RuntimeException: Timed out waiting for profile to be created! inside Continuum
by JIRA jira@codehaus.org
::
Rate this Message:
Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message [ http://jira.codehaus.org/browse/CONTINUUM-2405?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=197691#action_197691 ] André Salvati commented on CONTINUUM-2405: ------------------------------------------ By "as a service" i meant "daemon" or starting it from boot on Linux. Daemons cannot use GUI (Selenium tests in this case). When I start Continuum from console it works fine. > Selenium fails with java.lang.RuntimeException: Timed out waiting for profile to be created! inside Continuum > ------------------------------------------------------------------------------------------------------------- > > Key: CONTINUUM-2405 > URL: http://jira.codehaus.org/browse/CONTINUUM-2405 > Project: Continuum > Issue Type: Bug > Affects Versions: 1.3.4 > Environment: Maven 2.2.1 > Continuum 1.3.4 > Linux Fedora 11 > Reporter: André Salvati > > I've been trying to run Continuum + Selenium Java tests + X virtual server (xvfb) without success. > Continuum process is running with root privileges. > When I run maven from console (mvn clean install), selenium works smoothly: > [INFO] Scanning for projects... > [INFO] ------------------------------------------------------------------------ > [INFO] Building MenuEAR > [INFO] task-segment: [clean, install] > [INFO] ------------------------------------------------------------------------ > [INFO] [clean:clean {execution: default-clean}] > [INFO] Deleting directory /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target > [INFO] [ear:generate-application-xml {execution: default-generate-application-xml}] > [INFO] Generating application.xml > [INFO] Generating jboss-app.xml > [INFO] [resources:resources {execution: default-resources}] > [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! > [INFO] Copying 23 resources > [INFO] [ear:ear {execution: default-ear}] > [INFO] Copying artifact[ejb:Web:MenuJAR:1.0-SNAPSHOT] to[MenuJAR-1.0-SNAPSHOT.jar] > [INFO] Copying artifact[war:Web:MenuWAR:1.0-SNAPSHOT] to[MenuWAR-1.0-SNAPSHOT.war] > [INFO] Copying artifact[jar:org.richfaces.ui:richfaces-ui:3.3.1.GA] to[lib/richfaces-ui-3.3.1.GA.jar] > [INFO] Copying artifact[jar:org.richfaces.framework:richfaces-impl:3.3.1.GA] to[lib/richfaces-impl-3.3.1.GA.jar] > [INFO] Copying artifact[jar:commons-digester:commons-digester:1.8.1] to[lib/commons-digester-1.8.1.jar] > [INFO] Copying artifact[jar:commons-beanutils:commons-beanutils:1.7.0] to[lib/commons-beanutils-1.7.0.jar] > [INFO] Copying artifact[jar:org.richfaces.framework:richfaces-api:3.3.1.GA] to[lib/richfaces-api-3.3.1.GA.jar] > [INFO] Copying artifact[jar:commons-collections:commons-collections:3.2] to[lib/commons-collections-3.2.jar] > [INFO] Copying artifact[jar:commons-logging:commons-logging:1.0.4] to[lib/commons-logging-1.0.4.jar] > [INFO] Copying artifact[jar:org.jbpm.jbpm3:jbpm-jpdl:3.2.6.SP1] to[lib/jbpm-jpdl-3.2.6.SP1.jar] > [INFO] Copying artifact[jar:org.jbpm.jbpm3:jbpm-identity:3.2.6.SP1] to[lib/jbpm-identity-3.2.6.SP1.jar] > [INFO] Copying artifact[jar:jasperreports:jasperreports:3.6.0] to[lib/jasperreports-3.6.0.jar] > [INFO] Copying artifact[jar:org.codehaus.groovy:groovy-all:1.5.5] to[lib/groovy-all-1.5.5.jar] > [INFO] Copying artifact[jar:junit:junit:4.7] to[lib/junit-4.7.jar] > [INFO] Copying artifact[jar:org.apache.ant:ant:1.7.0] to[lib/ant-1.7.0.jar] > [INFO] Copying artifact[jar:org.apache.ant:ant-launcher:1.7.0] to[lib/ant-launcher-1.7.0.jar] > [INFO] Copying artifact[jar:jline:jline:0.9.94] to[lib/jline-0.9.94.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam:2.2.0.GA] to[lib/jboss-seam-2.2.0.GA.jar] > [INFO] Copying artifact[jar:xstream:xstream:1.1.3] to[lib/xstream-1.1.3.jar] > [INFO] Copying artifact[jar:xpp3:xpp3_min:1.1.3.4.O] to[lib/xpp3_min-1.1.3.4.O.jar] > [INFO] Copying artifact[jar:org.jboss.el:jboss-el:1.0_02.CR4] to[lib/jboss-el-1.0_02.CR4.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-ui:2.2.0.GA] to[lib/jboss-seam-ui-2.2.0.GA.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-jul:2.2.0.GA] to[lib/jboss-seam-jul-2.2.0.GA.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-debug:2.2.0.GA] to[lib/jboss-seam-debug-2.2.0.GA.jar] > [INFO] Copying artifact[jar:com.sun.facelets:jsf-facelets:1.1.15.B1] to[lib/jsf-facelets-1.1.15.B1.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-ioc:2.2.0.GA] to[lib/jboss-seam-ioc-2.2.0.GA.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-pdf:2.2.0.GA] to[lib/jboss-seam-pdf-2.2.0.GA.jar] > [INFO] Copying artifact[jar:com.lowagie:itext:2.1.2] to[lib/itext-2.1.2.jar] > [INFO] Copying artifact[jar:com.lowagie:itext-rtf:2.1.2] to[lib/itext-rtf-2.1.2.jar] > [INFO] Copy ear sources to /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/menu > [INFO] Could not find manifest file: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/src/main/application/META-INF/MANIFEST.MF - Generating one > [INFO] Building jar: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/menu.ear > [INFO] [selenium:xvfb {execution: xvfb}] > [INFO] Starting Xvfb... > [INFO] Using display: :20 > [INFO] Using Xauthority file: /tmp/Xvfb7302122594304485725.Xauthority > Deleting: /tmp/Xvfb7302122594304485725.Xauthority > xauth: creating new authority file /tmp/Xvfb7302122594304485725.Xauthority > Created dir: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium > Launching Xvfb > Waiting for Xvfb... > [INFO] Redirecting output to: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium/xvfb.log > Xvfb started > [INFO] [selenium:start-server {execution: start-selenium}] > Launching Selenium Server > [INFO] Including display properties from: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium/display.properties > [INFO] User extensions: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium/user-extensions.js > Waiting for Selenium Server... > 12:44:18,054 INFO [org.openqa.selenium.server.SeleniumServer] Java: Sun Microsystems Inc. 14.2-b01 > 12:44:18,055 INFO [org.openqa.selenium.server.SeleniumServer] OS: Linux 2.6.30.8-64.fc11.i686.PAE i386 > 12:44:18,066 INFO [org.openqa.selenium.server.SeleniumServer] v1.0.1 [2697], with Core v@VERSION@ [@REVISION@] > 12:44:18,163 INFO [org.mortbay.http.HttpServer] Version Jetty/5.1.x > 12:44:18,165 INFO [org.mortbay.util.Container] Started HttpContext[/selenium-server/driver,/selenium-server/driver] > 12:44:18,166 INFO [org.mortbay.util.Container] Started HttpContext[/selenium-server,/selenium-server] > 12:44:18,166 INFO [org.mortbay.util.Container] Started HttpContext[/,/] > 12:44:18,173 INFO [org.mortbay.http.SocketListener] Started SocketListener on 0.0.0.0:8090 > 12:44:18,173 INFO [org.mortbay.util.Container] Started org.mortbay.jetty.Server@148aa23 > 12:44:18,832 INFO [org.mortbay.util.Credential] Checking Resource aliases > Selenium Server started > [INFO] [compiler:testCompile {execution: compila-testes}] > [INFO] Compiling 11 source files to /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/test-classes > [INFO] [surefire:test {execution: testes-funcionais}] > [INFO] Surefire report directory: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/surefire-reports > ------------------------------------------------------- > T E S T S > ------------------------------------------------------- > Running br.com.optimus.teste.usuario.TestNavegacao > 12:44:20,659 INFO [org.mortbay.util.Credential] Checking Resource aliases > 12:44:20,665 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request: getNewBrowserSession[*firefox, http://prod1, ] on session null > 12:44:20,668 INFO [org.openqa.selenium.server.BrowserSessionFactory] creating new remote session > 12:44:20,775 INFO [org.openqa.selenium.server.BrowserSessionFactory] Allocated session a0d622d6b2d74fc7b5386a29752d7b89 for http://prod1, launching... > 12:44:20,806 INFO [org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher] Preparing Firefox profile... > Xlib: extension "RANDR" missing on display ":20.0". > Xlib: extension "RANDR" missing on display ":20.0". > 12:44:24,064 INFO [org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher] Launching Firefox... > 12:44:26,098 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Got result: OK,a0d622d6b2d74fc7b5386a29752d7b89 on session a0d622d6b2d74fc7b5386a29752d7b89 > 12:44:26,104 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request: open[/erp/login.seam, ] on session a0d622d6b2d74fc7b5386a29752d7b89 > 12:44:26,241 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Got result: OK on session a0d622d6b2d74fc7b5386a29752d7b89 > 12:44:26,244 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request: waitForPageToLoad[3000, ] on session a0d622d6b2d74fc7b5386a29752d7b89 > 12:44:26,264 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Got result: OK on session a0d622d6b2d74fc7b5386a29752d7b89 > 12:44:26,266 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request: type[login:username, demo1] on session a0d622d6b2d74fc7b5386a29752d7b89 > aberto /erp/login.seam > 12:44:26,299 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Got result: OK on session a0d622d6b2d74fc7b5386a29752d7b89 > 12:44:26,301 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request: type[login:password, demo1] on session a0d622d6b2d74fc7b5386a29752d7b89 > preenchido login:username com demo1 > (....) > Otherwise, when I run the same phases inside Selenium, it fails: > [INFO] Scanning for projects... > [INFO] ------------------------------------------------------------------------ > [INFO] Building MenuEAR > [INFO] task-segment: [clean, install] > [INFO] ------------------------------------------------------------------------ > [INFO] [clean:clean {execution: default-clean}] > [INFO] Deleting directory /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target > [INFO] [ear:generate-application-xml {execution: default-generate-application-xml}] > [INFO] Generating application.xml > [INFO] Generating jboss-app.xml > [INFO] [resources:resources {execution: default-resources}] > [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! > [INFO] Copying 23 resources > [INFO] [ear:ear {execution: default-ear}] > [INFO] Copying artifact[ejb:Web:MenuJAR:1.0-SNAPSHOT] to[MenuJAR-1.0-SNAPSHOT.jar] > [INFO] Copying artifact[war:Web:MenuWAR:1.0-SNAPSHOT] to[MenuWAR-1.0-SNAPSHOT.war] > [INFO] Copying artifact[jar:org.richfaces.ui:richfaces-ui:3.3.1.GA] to[lib/richfaces-ui-3.3.1.GA.jar] > [INFO] Copying artifact[jar:org.richfaces.framework:richfaces-impl:3.3.1.GA] to[lib/richfaces-impl-3.3.1.GA.jar] > [INFO] Copying artifact[jar:commons-digester:commons-digester:1.8.1] to[lib/commons-digester-1.8.1.jar] > [INFO] Copying artifact[jar:commons-beanutils:commons-beanutils:1.7.0] to[lib/commons-beanutils-1.7.0.jar] > [INFO] Copying artifact[jar:org.richfaces.framework:richfaces-api:3.3.1.GA] to[lib/richfaces-api-3.3.1.GA.jar] > [INFO] Copying artifact[jar:commons-collections:commons-collections:3.2] to[lib/commons-collections-3.2.jar] > [INFO] Copying artifact[jar:commons-logging:commons-logging:1.0.4] to[lib/commons-logging-1.0.4.jar] > [INFO] Copying artifact[jar:org.jbpm.jbpm3:jbpm-jpdl:3.2.6.SP1] to[lib/jbpm-jpdl-3.2.6.SP1.jar] > [INFO] Copying artifact[jar:org.jbpm.jbpm3:jbpm-identity:3.2.6.SP1] to[lib/jbpm-identity-3.2.6.SP1.jar] > [INFO] Copying artifact[jar:jasperreports:jasperreports:3.6.0] to[lib/jasperreports-3.6.0.jar] > [INFO] Copying artifact[jar:org.codehaus.groovy:groovy-all:1.5.5] to[lib/groovy-all-1.5.5.jar] > [INFO] Copying artifact[jar:junit:junit:4.7] to[lib/junit-4.7.jar] > [INFO] Copying artifact[jar:org.apache.ant:ant:1.7.0] to[lib/ant-1.7.0.jar] > [INFO] Copying artifact[jar:org.apache.ant:ant-launcher:1.7.0] to[lib/ant-launcher-1.7.0.jar] > [INFO] Copying artifact[jar:jline:jline:0.9.94] to[lib/jline-0.9.94.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam:2.2.0.GA] to[lib/jboss-seam-2.2.0.GA.jar] > [INFO] Copying artifact[jar:xstream:xstream:1.1.3] to[lib/xstream-1.1.3.jar] > [INFO] Copying artifact[jar:xpp3:xpp3_min:1.1.3.4.O] to[lib/xpp3_min-1.1.3.4.O.jar] > [INFO] Copying artifact[jar:org.jboss.el:jboss-el:1.0_02.CR4] to[lib/jboss-el-1.0_02.CR4.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-ui:2.2.0.GA] to[lib/jboss-seam-ui-2.2.0.GA.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-jul:2.2.0.GA] to[lib/jboss-seam-jul-2.2.0.GA.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-debug:2.2.0.GA] to[lib/jboss-seam-debug-2.2.0.GA.jar] > [INFO] Copying artifact[jar:com.sun.facelets:jsf-facelets:1.1.15.B1] to[lib/jsf-facelets-1.1.15.B1.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-ioc:2.2.0.GA] to[lib/jboss-seam-ioc-2.2.0.GA.jar] > [INFO] Copying artifact[jar:org.jboss.seam:jboss-seam-pdf:2.2.0.GA] to[lib/jboss-seam-pdf-2.2.0.GA.jar] > [INFO] Copying artifact[jar:com.lowagie:itext:2.1.2] to[lib/itext-2.1.2.jar] > [INFO] Copying artifact[jar:com.lowagie:itext-rtf:2.1.2] to[lib/itext-rtf-2.1.2.jar] > [INFO] Copy ear sources to /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/menu > [INFO] Could not find manifest file: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/src/main/application/META-INF/MANIFEST.MF - Generating one > [INFO] Building jar: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/menu.ear > [INFO] [selenium:xvfb {execution: xvfb}] > [INFO] Starting Xvfb... > [INFO] Using display: :20 > [INFO] Using Xauthority file: /tmp/Xvfb31539120038900714.Xauthority > Deleting: /tmp/Xvfb31539120038900714.Xauthority > xauth: creating new authority file /tmp/Xvfb31539120038900714.Xauthority > Created dir: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium > Launching Xvfb > Waiting for Xvfb... > [INFO] Redirecting output to: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium/xvfb.log > Xvfb started > [INFO] [selenium:start-server {execution: start-selenium}] > Launching Selenium Server > Waiting for Selenium Server... > [INFO] Including display properties from: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium/display.properties > [INFO] User extensions: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/selenium/user-extensions.js > 12:57:19,390 INFO [org.openqa.selenium.server.SeleniumServer] Java: Sun Microsystems Inc. 14.2-b01 > 12:57:19,391 INFO [org.openqa.selenium.server.SeleniumServer] OS: Linux 2.6.30.8-64.fc11.i686.PAE i386 > 12:57:19,400 INFO [org.openqa.selenium.server.SeleniumServer] v1.0.1 [2697], with Core v@VERSION@ [@REVISION@] > 12:57:19,464 INFO [org.mortbay.http.HttpServer] Version Jetty/5.1.x > 12:57:19,465 INFO [org.mortbay.util.Container] Started HttpContext[/selenium-server/driver,/selenium-server/driver] > 12:57:19,465 INFO [org.mortbay.util.Container] Started HttpContext[/selenium-server,/selenium-server] > 12:57:19,465 INFO [org.mortbay.util.Container] Started HttpContext[/,/] > 12:57:19,470 INFO [org.mortbay.http.SocketListener] Started SocketListener on 0.0.0.0:8090 > 12:57:19,470 INFO [org.mortbay.util.Container] Started org.mortbay.jetty.Server@199f91c > 12:57:20,196 INFO [org.mortbay.util.Credential] Checking Resource aliases > Selenium Server started > [INFO] [compiler:testCompile {execution: compila-testes}] > [INFO] Compiling 11 source files to /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/test-classes > [INFO] [surefire:test {execution: testes-funcionais}] > [INFO] Surefire report directory: /opt/apache-continuum-1.3.4/data/working-directory/41/MenuROOT/MenuEAR/target/surefire-reports > ------------------------------------------------------- > T E S T S > ------------------------------------------------------- > Running br.com.optimus.teste.usuario.TestNavegacao > 12:57:21,862 INFO [org.mortbay.util.Credential] Checking Resource aliases > 12:57:21,868 INFO [org.openqa.selenium.server.SeleniumDriverResourceHandler] Command request: getNewBrowserSession[*firefox, http://prod1, ] on session null > 12:57:21,870 INFO [org.openqa.selenium.server.BrowserSessionFactory] creating new remote session > 12:57:21,959 INFO [org.openqa.selenium.server.BrowserSessionFactory] Allocated session 76fa5615ee734a3ab6dbc5bf91df8ed0 for http://prod1, launching... > 12:57:22,016 INFO [org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher] Preparing Firefox profile... > Xlib: extension "RANDR" missing on display ":20.0". > 12:57:42,073 ERROR [org.openqa.selenium.server.BrowserSessionFactory] Failed to start new browser session, shutdown browser and clear all session data > java.lang.RuntimeException: Timed out waiting for profile to be created! > at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.waitForFullProfileToBeCreated(FirefoxChromeLauncher.java:305) > at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.populateCustomProfileDirectory(FirefoxChromeLauncher.java:106) > at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.launch(FirefoxChromeLauncher.java:83) > at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.launchRemoteSession(FirefoxChromeLauncher.java:350) > at org.openqa.selenium.server.browserlaunchers.FirefoxLauncher.launchRemoteSession(FirefoxLauncher.java:98) > at org.openqa.selenium.server.BrowserSessionFactory.createNewRemoteSession(BrowserSessionFactory.java:357) > at org.openqa.selenium.server.BrowserSessionFactory.getNewBrowserSession(BrowserSessionFactory.java:122) > at org.openqa.selenium.server.BrowserSessionFactory.getNewBrowserSession(BrowserSessionFactory.java:84) > at org.openqa.selenium.server.SeleniumDriverResourceHandler.getNewBrowserSession(SeleniumDriverResourceHandler.java:712) > at org.openqa.selenium.server.SeleniumDriverResourceHandler.doCommand(SeleniumDriverResourceHandler.java:393) > at org.openqa.selenium.server.SeleniumDriverResourceHandler.handleCommandRequest(SeleniumDriverResourceHandler.java:364) > at org.openqa.selenium.server.SeleniumDriverResourceHandler.handle(SeleniumDriverResourceHandler.java:125) > at org.mortbay.http.HttpContext.handle(HttpContext.java:1530) > at org.mortbay.http.HttpContext.handle(HttpContext.java:1482) > at org.mortbay.http.HttpServer.service(HttpServer.java:909) > at org.mortbay.http.HttpConnection.service(HttpConnection.java:820) > at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:986) > at org.mortbay.http.HttpConnection.handle(HttpConnection.java:837) > at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:245) > at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) > at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534) > -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
| Free embeddable forum powered by Nabble | Forum Help |