4 Replies Latest reply on Sep 9, 2014 4:20 AM by Benny Weber

    Drone + selenium 2.42.x

    Rafael Pestano Novice

      Hi guys,

       

      i'm trying to setup drone to work with lastest selenium version but had not success till now.

       

       

      First thing i did was to upgrade selenium bom to 2.42.0:

       

      then i receive this error:

       

      java.lang.RuntimeException: Unable to instantiate Drone via org.openqa.selenium.firefox.FirefoxDriver(Capabilities): java.lang.NoClassDefFoundError: org/apache/http/conn/SchemePortResolver

          at org.jboss.arquillian.drone.impl.DroneInstanceCreator.createDroneInstance(DroneInstanceCreator.java:87)

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

          at java.lang.reflect.Method.invoke(Method.java:606)

          at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

          at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)

          at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)

          at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:145)

      ...

      Caused by: java.lang.RuntimeException: Unable to instantiate Drone via org.openqa.selenium.firefox.FirefoxDriver(Capabilities): java.lang.NoClassDefFoundError: org/apache/http/conn/SchemePortResolver

          at org.jboss.arquillian.drone.webdriver.factory.SecurityActions.newInstance(SecurityActions.java:160)

          at org.jboss.arquillian.drone.webdriver.factory.FirefoxDriverFactory.createInstance(FirefoxDriverFactory.java:127)

          at org.jboss.arquillian.drone.webdriver.factory.FirefoxDriverFactory.createInstance(FirefoxDriverFactory.java:41)

          at org.jboss.arquillian.drone.webdriver.factory.WebDriverFactory.createInstance(WebDriverFactory.java:130)

          at org.jboss.arquillian.drone.webdriver.factory.WebDriverFactory.createInstance(WebDriverFactory.java:41)

          at org.jboss.arquillian.drone.impl.DroneCallableCreator$1.call(DroneCallableCreator.java:89)

          at java.util.concurrent.FutureTask.run(FutureTask.java:262)

          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

          at org.jboss.arquillian.drone.impl.DroneExecutorService$ContextualRunnable.run(DroneExecutorService.java:113)

          at java.lang.Thread.run(Thread.java:744)

      Caused by: java.lang.NoClassDefFoundError: org/apache/http/conn/SchemePortResolver

          at org.openqa.selenium.remote.HttpCommandExecutor.<init>(HttpCommandExecutor.java:99)

          at org.openqa.selenium.remote.HttpCommandExecutor.<init>(HttpCommandExecutor.java:82)

          at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:93)

          at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:246)

       

      full output with arquillian debug can be found here:http://pastebin.com/SzPjnJ9E

       

      my dependency tree:

       

      [INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ chs ---

      [INFO] com.procergs.chs:chs:war:1.4.5

      [INFO] +- org.hibernate:hibernate-core:jar:4.1.3.Final:provided

      [INFO] |  +- antlr:antlr:jar:2.7.7:provided

      [INFO] |  +- org.jboss.logging:jboss-logging:jar:3.1.0.GA:provided

      [INFO] |  +- org.jboss.spec.javax.transaction:jboss-transaction-api_1.1_spec:jar:1.0.0.Final:provided

      [INFO] |  +- dom4j:dom4j:jar:1.6.1:provided

      [INFO] |  +- org.hibernate.javax.persistence:hibernate-jpa-2.0-api:jar:1.0.1.Final:provided

      [INFO] |  +- org.javassist:javassist:jar:3.15.0-GA:provided

      [INFO] |  \- org.hibernate.common:hibernate-commons-annotations:jar:4.0.1.Final:provided

      [INFO] +- org.hibernate:hibernate-entitymanager:jar:4.1.3.Final:provided

      [INFO] +- org.hibernate:hibernate-validator:jar:4.3.1.Final:provided

      [INFO] |  \- javax.validation:validation-api:jar:1.0.0.GA:provided

      [INFO] +- junit:junit:jar:4.8.2:test

      [INFO] +- org.powermock:powermock-module-junit4:jar:1.5:test

      [INFO] |  \- org.powermock:powermock-module-junit4-common:jar:1.5:test

      [INFO] |     +- org.powermock:powermock-core:jar:1.5:test

      [INFO] |     \- org.powermock:powermock-reflect:jar:1.5:test

      [INFO] |        \- org.objenesis:objenesis:jar:1.2:test

      [INFO] +- org.powermock:powermock-api-mockito:jar:1.5:test

      [INFO] |  +- org.mockito:mockito-all:jar:1.9.5:test

      [INFO] |  \- org.powermock:powermock-api-support:jar:1.5:test

      [INFO] +- org.apache.poi:poi:jar:3.7:compile

      [INFO] +- cglib:cglib-nodep:jar:2.1_3:compile

      [INFO] +- com.procergs.acr:prarqjava4:jar:0.9.11:compile

      [INFO] |  +- com.acrs:PRAssinador-WS-Client:jar:2.0.1:compile

      [INFO] |  \- com.procergs.sca:sca-ws:jar:1.0.3:compile

      [INFO] +- com.procergs.irs:prarqjava4-composite:jar:0.1.1:compile

      [INFO] +- com.procergs.det:detcredenciadows:jar:1.0.1:compile

      [INFO] +- org.jboss.resteasy:resteasy-jackson-provider:jar:2.3.5.Final:test

      [INFO] |  +- org.codehaus.jackson:jackson-mapper-asl:jar:1.9.9:test

      [INFO] |  +- org.codehaus.jackson:jackson-jaxrs:jar:1.9.9:test

      [INFO] |  \- org.codehaus.jackson:jackson-xc:jar:1.9.9:test

      [INFO] +- org.jboss.resteasy:resteasy-jaxrs:jar:2.3.3.Final:provided

      [INFO] |  +- org.jboss.resteasy:jaxrs-api:jar:2.3.3.Final:provided

      [INFO] |  +- org.scannotation:scannotation:jar:1.0.3:provided

      [INFO] |  |  \- javassist:javassist:jar:3.12.1.GA:provided

      [INFO] |  +- javax.annotation:jsr250-api:jar:1.0:provided

      [INFO] |  +- javax.activation:activation:jar:1.1:compile

      [INFO] |  +- commons-httpclient:commons-httpclient:jar:3.1:provided

      [INFO] |  |  \- commons-codec:commons-codec:jar:1.2:provided

      [INFO] |  +- org.apache.httpcomponents:httpclient:jar:4.1.2:provided

      [INFO] |  \- net.jcip:jcip-annotations:jar:1.0:provided

      [INFO] +- org.jboss.resteasy:resteasy-multipart-provider:jar:2.3.3.Final:provided

      [INFO] |  +- javax.mail:mail:jar:1.4.4:provided

      [INFO] |  +- org.apache.james:apache-mime4j:jar:0.6:provided

      [INFO] |  \- javax.servlet:servlet-api:jar:2.5:provided

      [INFO] +- org.codehaus.jackson:jackson-core-asl:jar:1.5.5:provided

      [INFO] +- org.jboss.resteasy:resteasy-jaxb-provider:jar:2.3.3.Final:compile

      [INFO] |  \- com.sun.xml.bind:jaxb-impl:jar:2.2.4:compile

      [INFO] |     \- javax.xml.bind:jaxb-api:jar:2.2.3:compile

      [INFO] |        \- javax.xml.stream:stax-api:jar:1.0-2:compile

      [INFO] +- org.primefaces:primefaces:jar:4.0.9:compile

      [INFO] +- org.primefaces.extensions:primefaces-extensions:jar:1.2.1:compile

      [INFO] |  +- com.google.code.gson:gson:jar:2.2.4:compile

      [INFO] |  \- org.apache.commons:commons-lang3:jar:3.1:compile

      [INFO] +- org.omnifaces:omnifaces:jar:1.6:compile

      [INFO] +- org.apache.myfaces.extensions.cdi.bundles:myfaces-extcdi-bundle-jsf20:jar:1.0.5:compile

      [INFO] +- org.slf4j:slf4j-api:jar:1.6.1:provided

      [INFO] +- net.bull.javamelody:javamelody-core:jar:1.45.0:compile

      [INFO] |  \- org.jrobin:jrobin:jar:1.5.9:compile

      [INFO] +- com.thoughtworks.xstream:xstream:jar:1.4.2:compile

      [INFO] |  +- xmlpull:xmlpull:jar:1.1.3.1:compile

      [INFO] |  \- xpp3:xpp3_min:jar:1.1.4c:compile

      [INFO] +- com.procergs.acr:PRArqjava-core:jar:1.16.0:compile

      [INFO] +- com.procergs.red:detcredenciadoarq3:jar:2013.07.26_15-55:compile

      [INFO] +- com.procergs.red:ed_det:jar:2013.08.13_16-48:compile

      [INFO] +- net.sf.jasperreports:jasperreports:jar:5.1.2:compile

      [INFO] |  +- commons-beanutils:commons-beanutils:jar:1.8.0:compile

      [INFO] |  +- commons-digester:commons-digester:jar:2.1:compile

      [INFO] |  +- commons-logging:commons-logging:jar:1.1.1:compile

      [INFO] |  +- jfree:jcommon:jar:1.0.15:compile

      [INFO] |  +- jfree:jfreechart:jar:1.0.12:compile

      [INFO] |  +- eclipse:jdtcore:jar:3.1.0:compile

      [INFO] |  +- org.codehaus.castor:castor:jar:1.2:compile

      [INFO] |  +- com.fasterxml.jackson.core:jackson-core:jar:2.0.5:compile

      [INFO] |  +- com.fasterxml.jackson.core:jackson-databind:jar:2.0.5:compile

      [INFO] |  \- com.fasterxml.jackson.core:jackson-annotations:jar:2.0.5:compile

      [INFO] +- com.lowagie:itext:jar:2.1.7:compile

      [INFO] |  +- bouncycastle:bcmail-jdk14:jar:138:compile

      [INFO] |  +- bouncycastle:bcprov-jdk14:jar:138:compile

      [INFO] |  \- org.bouncycastle:bctsp-jdk14:jar:1.38:compile

      [INFO] |     +- org.bouncycastle:bcprov-jdk14:jar:1.38:compile

      [INFO] |     \- org.bouncycastle:bcmail-jdk14:jar:1.38:compile

      [INFO] +- commons-fileupload:commons-fileupload:jar:1.2:compile

      [INFO] +- commons-io:commons-io:jar:2.4:compile

      [INFO] +- org.jboss.arquillian.junit:arquillian-junit-container:jar:1.1.4.Final:test

      [INFO] |  +- org.jboss.arquillian.junit:arquillian-junit-core:jar:1.1.4.Final:test

      [INFO] |  +- org.jboss.arquillian.test:arquillian-test-api:jar:1.1.4.Final:test

      [INFO] |  |  \- org.jboss.arquillian.core:arquillian-core-api:jar:1.1.4.Final:test

      [INFO] |  +- org.jboss.arquillian.test:arquillian-test-spi:jar:1.1.4.Final:test

      [INFO] |  +- org.jboss.arquillian.container:arquillian-container-test-api:jar:1.1.4.Final:test

      [INFO] |  |  \- org.jboss.shrinkwrap:shrinkwrap-api:jar:1.2.2:test

      [INFO] |  +- org.jboss.arquillian.container:arquillian-container-test-spi:jar:1.1.4.Final:test

      [INFO] |  +- org.jboss.arquillian.core:arquillian-core-impl-base:jar:1.1.4.Final:test

      [INFO] |  +- org.jboss.arquillian.test:arquillian-test-impl-base:jar:1.1.4.Final:test

      [INFO] |  +- org.jboss.arquillian.container:arquillian-container-impl-base:jar:1.1.4.Final:test

      [INFO] |  |  \- org.jboss.arquillian.config:arquillian-config-impl-base:jar:1.1.4.Final:test

      [INFO] |  +- org.jboss.arquillian.container:arquillian-container-test-impl-base:jar:1.1.4.Final:test

      [INFO] |  \- org.jboss.shrinkwrap:shrinkwrap-impl-base:jar:1.2.2:test

      [INFO] |     \- org.jboss.shrinkwrap:shrinkwrap-spi:jar:1.2.2:test

      [INFO] +- org.jboss.arquillian.extension:arquillian-persistence-api:jar:1.0.0.Alpha7:test

      [INFO] +- org.jboss.arquillian.extension:arquillian-persistence-dbunit:jar:1.0.0.Alpha7:test

      [INFO] |  +- org.jboss.arquillian.extension:arquillian-persistence-spi:jar:1.0.0.Alpha7:test

      [INFO] |  +- org.jboss.arquillian.extension:arquillian-persistence-core:jar:1.0.0.Alpha7:test

      [INFO] |  |  \- org.jboss.arquillian.extension:arquillian-transaction-jta:jar:1.0.1.Final:test

      [INFO] |  |     \- org.jboss.arquillian.extension:arquillian-transaction-impl-base:jar:1.0.1.Final:test

      [INFO] |  +- org.jboss.arquillian.extension:arquillian-transaction-spi:jar:1.0.1.Final:test

      [INFO] |  |  \- org.jboss.arquillian.extension:arquillian-transaction-api:jar:1.0.1.Final:test

      [INFO] |  +- org.dbunit:dbunit:jar:2.5.0:test

      [INFO] |  +- org.yaml:snakeyaml:jar:1.10:test

      [INFO] |  +- org.jboss.arquillian.core:arquillian-core-spi:jar:1.1.4.Final:test

      [INFO] |  +- org.jboss.arquillian.container:arquillian-container-spi:jar:1.1.4.Final:test

      [INFO] |  +- org.jboss.arquillian.config:arquillian-config-api:jar:1.1.4.Final:test

      [INFO] |  \- org.jboss.shrinkwrap.descriptors:shrinkwrap-descriptors-api-base:jar:2.0.0-alpha-5:test

      [INFO] +- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-depchain:pom:2.1.0:test

      [INFO] |  +- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-api:jar:2.1.0:test

      [INFO] |  +- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-spi:jar:2.1.0:test

      [INFO] |  +- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-api-maven:jar:2.1.0:test

      [INFO] |  +- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-spi-maven:jar:2.1.0:test

      [INFO] |  +- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-api-maven-archive:jar:2.1.0:test

      [INFO] |  +- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-impl-maven:jar:2.1.0:test

      [INFO] |  |  +- org.eclipse.aether:aether-api:jar:0.9.0.M2:test

      [INFO] |  |  +- org.eclipse.aether:aether-impl:jar:0.9.0.M2:test

      [INFO] |  |  +- org.eclipse.aether:aether-spi:jar:0.9.0.M2:test

      [INFO] |  |  +- org.eclipse.aether:aether-util:jar:0.9.0.M2:test

      [INFO] |  |  +- org.eclipse.aether:aether-connector-wagon:jar:0.9.0.M2:test

      [INFO] |  |  +- org.apache.maven:maven-aether-provider:jar:3.1.1:test

      [INFO] |  |  +- org.apache.maven:maven-model:jar:3.1.1:test

      [INFO] |  |  +- org.apache.maven:maven-model-builder:jar:3.1.1:test

      [INFO] |  |  |  \- org.codehaus.plexus:plexus-component-annotations:jar:1.5.5:test

      [INFO] |  |  +- org.apache.maven:maven-repository-metadata:jar:3.1.1:test

      [INFO] |  |  +- org.apache.maven:maven-settings:jar:3.1.1:test

      [INFO] |  |  +- org.apache.maven:maven-settings-builder:jar:3.1.1:test

      [INFO] |  |  +- org.codehaus.plexus:plexus-interpolation:jar:1.19:test

      [INFO] |  |  +- org.codehaus.plexus:plexus-utils:jar:3.0.15:test

      [INFO] |  |  +- org.sonatype.plexus:plexus-sec-dispatcher:jar:1.3:test

      [INFO] |  |  |  \- org.sonatype.plexus:plexus-cipher:jar:1.4:test

      [INFO] |  |  +- org.apache.maven.wagon:wagon-provider-api:jar:2.6:test

      [INFO] |  |  +- org.apache.maven.wagon:wagon-file:jar:2.6:test

      [INFO] |  |  \- org.apache.maven.wagon:wagon-http-lightweight:jar:2.6:test

      [INFO] |  |     \- org.apache.maven.wagon:wagon-http-shared:jar:2.6:test

      [INFO] |  |        \- org.jsoup:jsoup:jar:1.7.2:test

      [INFO] |  \- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-impl-maven-archive:jar:2.1.0:test

      [INFO] |     +- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-spi-maven-archive:jar:2.1.0:test

      [INFO] |     +- org.eclipse.sisu:org.eclipse.sisu.plexus:jar:0.0.0.M5:test

      [INFO] |     |  +- com.google.guava:guava:jar:10.0.1:test

      [INFO] |     |  |  \- com.google.code.findbugs:jsr305:jar:1.3.9:test

      [INFO] |     |  +- org.sonatype.sisu:sisu-guice:jar:no_aop:3.1.0:test

      [INFO] |     |  |  \- aopalliance:aopalliance:jar:1.0:test

      [INFO] |     |  \- org.eclipse.sisu:org.eclipse.sisu.inject:jar:0.0.0.M5:test

      [INFO] |     \- org.codehaus.plexus:plexus-compiler-javac:jar:2.3:test

      [INFO] |        \- org.codehaus.plexus:plexus-compiler-api:jar:2.3:test

      [INFO] +- org.jboss.arquillian.graphene:graphene-webdriver:pom:2.0.3.Final:test

      [INFO] |  +- org.jboss.arquillian.graphene:graphene-webdriver-api:jar:2.0.3.Final:test

      [INFO] |  +- org.jboss.arquillian.graphene:graphene-webdriver-spi:jar:2.0.3.Final:test

      [INFO] |  +- org.jboss.arquillian.graphene:graphene-webdriver-impl:jar:2.0.3.Final:test

      [INFO] |  |  +- org.jboss.arquillian.extension:arquillian-drone-impl:jar:1.3.0.Final:test

      [INFO] |  |  \- org.jboss.arquillian.extension:arquillian-drone-configuration:jar:1.3.0.Final:test

      [INFO] |  +- org.jboss.arquillian.extension:arquillian-drone-webdriver-depchain:pom:1.3.0.Final:test

      [INFO] |  |  +- org.jboss.arquillian.extension:arquillian-drone-api:jar:1.3.0.Final:test

      [INFO] |  |  +- org.jboss.arquillian.extension:arquillian-drone-spi:jar:1.3.0.Final:test

      [INFO] |  |  +- org.jboss.arquillian.extension:arquillian-drone-webdriver:jar:1.3.0.Final:test

      [INFO] |  |  +- org.seleniumhq.selenium:selenium-api:jar:2.42.0:test

      [INFO] |  |  |  \- org.json:json:jar:20080701:test

      [INFO] |  |  +- org.seleniumhq.selenium:selenium-support:jar:2.42.0:test

      [INFO] |  |  +- org.seleniumhq.selenium:selenium-chrome-driver:jar:2.42.0:test

      [INFO] |  |  +- org.seleniumhq.selenium:selenium-firefox-driver:jar:2.42.0:test

      [INFO] |  |  |  \- org.apache.commons:commons-exec:jar:1.1:test

      [INFO] |  |  +- org.seleniumhq.selenium:selenium-htmlunit-driver:jar:2.42.0:test

      [INFO] |  |  |  \- net.sourceforge.htmlunit:htmlunit:jar:2.14:test

      [INFO] |  |  |     +- xalan:xalan:jar:2.7.1:test

      [INFO] |  |  |     |  \- xalan:serializer:jar:2.7.1:test

      [INFO] |  |  |     +- org.apache.httpcomponents:httpmime:jar:4.3.2:test

      [INFO] |  |  |     +- net.sourceforge.htmlunit:htmlunit-core-js:jar:2.14:test

      [INFO] |  |  |     +- xerces:xercesImpl:jar:2.11.0:test

      [INFO] |  |  |     +- net.sourceforge.nekohtml:nekohtml:jar:1.9.20:test

      [INFO] |  |  |     +- net.sourceforge.cssparser:cssparser:jar:0.9.13:test

      [INFO] |  |  |     |  \- org.w3c.css:sac:jar:1.3:test

      [INFO] |  |  |     \- org.eclipse.jetty:jetty-websocket:jar:8.1.14.v20131031:test

      [INFO] |  |  |        +- org.eclipse.jetty:jetty-util:jar:8.1.14.v20131031:test

      [INFO] |  |  |        +- org.eclipse.jetty:jetty-io:jar:8.1.14.v20131031:test

      [INFO] |  |  |        \- org.eclipse.jetty:jetty-http:jar:8.1.14.v20131031:test

      [INFO] |  |  +- org.seleniumhq.selenium:selenium-ie-driver:jar:2.42.0:test

      [INFO] |  |  |  +- net.java.dev.jna:jna:jar:3.4.0:test

      [INFO] |  |  |  \- net.java.dev.jna:platform:jar:3.4.0:test

      [INFO] |  |  +- org.seleniumhq.selenium:selenium-remote-driver:jar:2.42.0:test

      [INFO] |  |  \- com.opera:operadriver:jar:1.5:test

      [INFO] |  |     +- com.opera:operalaunchers:jar:1.1:test

      [INFO] |  |     +- com.google.protobuf:protobuf-java:jar:2.4.1:test

      [INFO] |  |     +- commons-jxpath:commons-jxpath:jar:1.3:test

      [INFO] |  |     \- org.ini4j:ini4j:jar:0.5.2:test

      [INFO] |  \- org.seleniumhq.selenium:selenium-java:jar:2.42.0:test

      [INFO] |     +- org.seleniumhq.selenium:selenium-safari-driver:jar:2.42.0:test

      [INFO] |     \- org.webbitserver:webbit:jar:0.4.14:test

      [INFO] |        \- io.netty:netty:jar:3.5.2.Final:test

      [INFO] +- org.jboss.arquillian.extension:arquillian-phantom-driver:jar:1.1.2.Final:test

      [INFO] |  \- com.github.detro.ghostdriver:phantomjsdriver:jar:1.1.0:test

      [INFO] |     \- org.seleniumhq.selenium:selenium-server:jar:2.42.0:test

      [INFO] |        +- org.bouncycastle:bcprov-jdk15on:jar:1.48:test

      [INFO] |        +- org.bouncycastle:bcpkix-jdk15on:jar:1.48:test

      [INFO] |        +- mx4j:mx4j-tools:jar:3.0.1:test

      [INFO] |        +- org.mortbay.jetty:servlet-api-2.5:jar:6.1.9:test

      [INFO] |        \- org.seleniumhq.selenium:jetty-repacked:jar:7.6.1:test

      [INFO] +- org.jboss.arquillian.jbehave:arquillian-jbehave-core:jar:1.0.2:test

      [INFO] |  +- org.jbehave:jbehave-core:zip:resources:3.7:test

      [INFO] |  |  +- junit:junit-dep:jar:4.8.2:test

      [INFO] |  |  +- org.hamcrest:hamcrest-core:jar:1.1:test

      [INFO] |  |  +- org.hamcrest:hamcrest-library:jar:1.1:test

      [INFO] |  |  +- org.hamcrest:hamcrest-integration:jar:1.1:test

      [INFO] |  |  +- commons-lang:commons-lang:jar:2.5:test

      [INFO] |  |  +- org.freemarker:freemarker:jar:2.3.16:test

      [INFO] |  |  \- com.thoughtworks.paranamer:paranamer:jar:2.4:test

      [INFO] |  +- org.jbehave:jbehave-core:jar:3.7:test

      [INFO] |  \- org.jbehave.site:jbehave-site-resources:zip:3.1.1:test

      [INFO] +- org.jboss.spec.javax.annotation:jboss-annotations-api_1.1_spec:jar:1.0.1.Final:provided

      [INFO] +- org.jboss.spec.javax.ejb:jboss-ejb-api_3.1_spec:jar:1.0.2.Final:provided

      [INFO] +- org.jboss.arquillian.protocol:arquillian-protocol-servlet:jar:1.1.4.Final:test

      [INFO] |  \- org.jboss.shrinkwrap.descriptors:shrinkwrap-descriptors-spi:jar:2.0.0-alpha-5:test

      [INFO] |     \- org.easytesting:fest-assert:jar:1.4:test

      [INFO] |        \- org.easytesting:fest-util:jar:1.1.6:test

      [INFO] +- org.apache.httpcomponents:httpcore:jar:4.2.5:test

      [INFO] +- commons-collections:commons-collections:jar:3.2.1:compile

      [INFO] +- xml-apis:xml-apis:jar:1.4.01:test

      [INFO] +- org.slf4j:slf4j-log4j12:jar:1.7.5:test

      [INFO] |  \- log4j:log4j:jar:1.2.17:compile

      [INFO] +- javax.enterprise:cdi-api:jar:1.0:test

      [INFO] |  +- org.jboss.interceptor:jboss-interceptor-api:jar:1.1:test

      [INFO] |  \- javax.inject:javax.inject:jar:1:test

      [INFO] +- com.procergs.ied:ied-lib-util:jar:1.0.6:compile

      [INFO] +- com.procergs.acr:PRAutentica:jar:2.9.0:provided

      [INFO] +- com.procergs.acr:PRUtil_j2ee:jar:1.10.2:provided

      [INFO] +- com.procergs.acr:PRGCISrvJava:jar:1.0.0.2:compile

      [INFO] +- com.procergs.acr:PRGCIJava:jar:2.0.0.3:compile

      [INFO] +- org.jboss.ejb3:jboss-ejb3-ext-api:jar:2.1.0:provided

      [INFO] \- javax:javaee-api:jar:6.0:provided

       

      the other option i've tried to get latest selenium version(2.42.2) was to replace selenium bom in depenency management section with:

       

      <dependencyManagement>
              <dependencies>
                  <dependency>
                      <groupId>org.jboss.arquillian.extension</groupId>
                      <artifactId>arquillian-transaction-bom</artifactId>
                      <version>1.0.1.Final</version>
                      <type>pom</type>
                      <scope>import</scope>
                  </dependency>
                  <dependency>
                      <groupId>org.jboss.arquillian</groupId>
                      <artifactId>arquillian-bom</artifactId>
                      <version>${version.arquillian}</version>
                      <type>pom</type>
                      <scope>import</scope>
                  </dependency>
                  <!-- <dependency> -->
                  <!-- <groupId>org.jboss.arquillian.selenium</groupId> -->
                  <!-- <artifactId>selenium-bom</artifactId> -->
                  <!-- <version>${version.selenium}</version> -->
                  <!-- <type>pom</type> -->
                  <!-- <scope>import</scope> -->
                  <!-- </dependency> -->
                  <!-- selenium bom -->
                  <!-- Selenium Server -->
                  <dependency>
                      <groupId>org.seleniumhq.selenium</groupId>
                      <artifactId>selenium-server</artifactId>
                      <version>${version.selenium}</version>
                  </dependency>
      
                  <!-- Selenium dependecies -->
                  <dependency>
                      <groupId>org.seleniumhq.selenium</groupId>
                      <artifactId>selenium-api</artifactId>
                      <version>${version.selenium}</version>
                  </dependency>
                  <dependency>
                      <groupId>org.seleniumhq.selenium</groupId>
                      <artifactId>selenium-java</artifactId>
                      <version>${version.selenium}</version>
                  </dependency>
                  <dependency>
                      <groupId>org.seleniumhq.selenium</groupId>
                      <artifactId>selenium-support</artifactId>
                      <version>${version.selenium}</version>
                  </dependency>
      
                  <!-- Drivers -->
                  <dependency>
                      <groupId>org.seleniumhq.selenium</groupId>
                      <artifactId>selenium-chrome-driver</artifactId>
                      <version>${version.selenium}</version>
                  </dependency>
                  <dependency>
                      <groupId>org.seleniumhq.selenium</groupId>
                      <artifactId>selenium-firefox-driver</artifactId>
                      <version>${version.selenium}</version>
                  </dependency>
                  <dependency>
                      <groupId>org.seleniumhq.selenium</groupId>
                      <artifactId>selenium-htmlunit-driver</artifactId>
                      <version>${version.selenium}</version>
                  </dependency>
                  <dependency>
                      <groupId>org.seleniumhq.selenium</groupId>
                      <artifactId>selenium-ie-driver</artifactId>
                      <version>${version.selenium}</version>
                  </dependency>
                  <dependency>
                      <groupId>org.seleniumhq.selenium</groupId>
                      <artifactId>selenium-remote-driver</artifactId>
                      <version>${version.selenium}</version>
                  </dependency>
                  <dependency>
                      <groupId>org.jboss.arquillian.extension</groupId>
                      <artifactId>arquillian-drone-bom</artifactId>
                      <version>${version.drone}</version>
                      <type>pom</type>
                      <scope>import</scope>
                  </dependency>
              </dependencies>
          </dependencyManagement>
      

       

      where version.selenium = 2.42.2

       

      but i've got the folowing exception:

       

      java.lang.RuntimeException: Unable to instantiate Drone via org.openqa.selenium.firefox.FirefoxDriver(Capabilities): java.lang.NoClassDefFoundError: org/apache/http/config/RegistryBuilder

          at org.jboss.arquillian.drone.webdriver.factory.SecurityActions.newInstance(SecurityActions.java:160)

          at org.jboss.arquillian.drone.webdriver.factory.FirefoxDriverFactory.createInstance(FirefoxDriverFactory.java:127)

          at org.jboss.arquillian.drone.webdriver.factory.FirefoxDriverFactory.createInstance(FirefoxDriverFactory.java:41)

          at org.jboss.arquillian.drone.webdriver.factory.WebDriverFactory.createInstance(WebDriverFactory.java:130)

          at org.jboss.arquillian.drone.webdriver.factory.WebDriverFactory.createInstance(WebDriverFactory.java:41)

          at org.jboss.arquillian.drone.impl.DroneConfigurator$1.createInstance(DroneConfigurator.java:143)

          at org.jboss.arquillian.drone.impl.CachingCallableImpl.call(CachingCallableImpl.java:45)

          at org.jboss.arquillian.core.impl.threading.ThreadedExecutorService$ContextualCallable.call(ThreadedExecutorService.java:73)

          at java.util.concurrent.FutureTask.run(FutureTask.java:262)

          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

          at java.lang.Thread.run(Thread.java:744)

      Caused by: java.lang.NoClassDefFoundError: org/apache/http/config/RegistryBuilder

          at org.openqa.selenium.remote.internal.HttpClientFactory.getClientConnectionManager(HttpClientFactory.java:62)

          at org.openqa.selenium.remote.internal.HttpClientFactory.<init>(HttpClientFactory.java:54)

          at org.openqa.selenium.remote.HttpCommandExecutor.<init>(HttpCommandExecutor.java:99)

          at org.openqa.selenium.remote.HttpCommandExecutor.<init>(HttpCommandExecutor.java:82)

          at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:93)

          at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:246)

          at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:114)

          at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:191)

          at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:186)

          at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:103)

          at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

          at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)

          at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

          at java.lang.reflect.Constructor.newInstance(Constructor.java:526)

          at org.jboss.arquillian.drone.webdriver.factory.SecurityActions.newInstance(SecurityActions.java:142)

          ... 11 more

      Caused by: java.lang.ClassNotFoundException: org.apache.http.config.RegistryBuilder

          at java.net.URLClassLoader$1.run(URLClassLoader.java:366)

          at java.net.URLClassLoader$1.run(URLClassLoader.java:355)

          at java.security.AccessController.doPrivileged(Native Method)

          at java.net.URLClassLoader.findClass(URLClassLoader.java:354)

          at java.lang.ClassLoader.loadClass(ClassLoader.java:425)

          at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)

          at java.lang.ClassLoader.loadClass(ClassLoader.java:358)

          ... 26 more

       

      any hints? if you need a simple example just tell me.

       

      thanks in advance

        • 1. Re: Drone + selenium 2.42.x
          Karel Piwko Master

          Hi Rafael,

           

          Drone 1.3.1.Final is compatible with Selenium 2.42.0.

           

          It should fix your problem.

           

          Karel

          • 2. Re: Re: Drone + selenium 2.42.x
            Rafael Pestano Novice

            Thanks for answer Karell,

             

            I still have error with 1.3.1, but now its a different one

            java.lang.RuntimeException: Unable to instantiate Drone via org.openqa.selenium.firefox.FirefoxDriver(Capabilities): java.lang.NoClassDefFoundError: org/apache/http/conn/SchemePortResolver
                at org.jboss.arquillian.drone.impl.DroneInstanceCreator.createDroneInstance(DroneInstanceCreator.java:87)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                at java.lang.reflect.Method.invoke(Method.java:606)
                at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
                at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)
                at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)
                at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:145)
                at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:116)
                at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67)
                at org.jboss.arquillian.drone.impl.DroneTestEnricher.getDroneInstance(DroneTestEnricher.java:114)
                at org.jboss.arquillian.drone.impl.DroneTestEnricher.enrich(DroneTestEnricher.java:75)
                at org.jboss.arquillian.test.impl.TestInstanceEnricher.enrich(TestInstanceEnricher.java:52)
                at org.jboss.arquillian.container.test.impl.ClientTestInstanceEnricher.enrich(ClientTestInstanceEnricher.java:51)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                at java.lang.reflect.Method.invoke(Method.java:606)
                at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
                at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)
                at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)
                at org.jboss.arquillian.container.test.impl.client.ContainerEventController.createContext(ContainerEventController.java:142)
                at org.jboss.arquillian.container.test.impl.client.ContainerEventController.createBeforeContext(ContainerEventController.java:124)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                at java.lang.reflect.Method.invoke(Method.java:606)
                at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
                at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
                at org.jboss.arquillian.test.impl.TestContextHandler.createClassContext(TestContextHandler.java:84)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                at java.lang.reflect.Method.invoke(Method.java:606)
                at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
                at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
                at org.jboss.arquillian.test.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:65)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                at java.lang.reflect.Method.invoke(Method.java:606)
                at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
                at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
                at org.jboss.arquillian.test.impl.TestContextHandler.createTestContext(TestContextHandler.java:102)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                at java.lang.reflect.Method.invoke(Method.java:606)
                at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
                at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
                at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:145)
                at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:116)
                at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.before(EventTestRunnerAdaptor.java:95)
                at org.jboss.arquillian.junit.Arquillian$4.evaluate(Arquillian.java:225)
                at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:317)
                at org.jboss.arquillian.junit.Arquillian.access$200(Arquillian.java:46)
                at org.jboss.arquillian.junit.Arquillian$5.evaluate(Arquillian.java:243)
                at com.procergs.test.functional.ScreenshotTestRule$1.evaluate(ScreenshotTestRule.java:35)
                at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79)
                at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71)
                at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)
                at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
                at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
                at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
                at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
                at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
                at org.jboss.arquillian.junit.Arquillian$2.evaluate(Arquillian.java:188)
                at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:317)
                at org.jboss.arquillian.junit.Arquillian.access$200(Arquillian.java:46)
                at org.jboss.arquillian.junit.Arquillian$3.evaluate(Arquillian.java:202)
                at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
                at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:150)
                at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264)
                at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
                at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124)
                at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
                at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
                at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
            Caused by: java.lang.RuntimeException: Unable to instantiate Drone via org.openqa.selenium.firefox.FirefoxDriver(Capabilities): java.lang.NoClassDefFoundError: org/apache/http/conn/SchemePortResolver
                at org.jboss.arquillian.drone.webdriver.factory.SecurityActions.newInstance(SecurityActions.java:160)
                at org.jboss.arquillian.drone.webdriver.factory.FirefoxDriverFactory.createInstance(FirefoxDriverFactory.java:127)
                at org.jboss.arquillian.drone.webdriver.factory.FirefoxDriverFactory.createInstance(FirefoxDriverFactory.java:41)
                at org.jboss.arquillian.drone.webdriver.factory.WebDriverFactory.createInstance(WebDriverFactory.java:130)
                at org.jboss.arquillian.drone.webdriver.factory.WebDriverFactory.createInstance(WebDriverFactory.java:41)
                at org.jboss.arquillian.drone.impl.DroneCallableCreator$1.call(DroneCallableCreator.java:89)
                at java.util.concurrent.FutureTask.run(FutureTask.java:262)
                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
                at org.jboss.arquillian.drone.impl.DroneExecutorService$ContextualRunnable.run(DroneExecutorService.java:113)
                at java.lang.Thread.run(Thread.java:744)
            :
            
            

             

             

            As soon i switch to selenium 2.41.0 i got no errors, here is my dependency tree:

             

            [INFO] +- org.hibernate:hibernate-core:jar:4.1.3.Final:provided
            [INFO] |  +- antlr:antlr:jar:2.7.7:provided
            [INFO] |  +- org.jboss.logging:jboss-logging:jar:3.1.0.GA:provided
            [INFO] |  +- org.jboss.spec.javax.transaction:jboss-transaction-api_1.1_spec:jar:1.0.0.Final:provided
            [INFO] |  +- dom4j:dom4j:jar:1.6.1:provided
            [INFO] |  +- org.hibernate.javax.persistence:hibernate-jpa-2.0-api:jar:1.0.1.Final:provided
            [INFO] |  +- org.javassist:javassist:jar:3.15.0-GA:provided
            [INFO] |  \- org.hibernate.common:hibernate-commons-annotations:jar:4.0.1.Final:provided
            [INFO] +- org.hibernate:hibernate-entitymanager:jar:4.1.3.Final:provided
            [INFO] +- org.hibernate:hibernate-validator:jar:4.3.1.Final:provided
            [INFO] |  \- javax.validation:validation-api:jar:1.0.0.GA:provided
            [INFO] +- junit:junit:jar:4.8.2:test
            [INFO] +- org.powermock:powermock-module-junit4:jar:1.5:test
            [INFO] |  \- org.powermock:powermock-module-junit4-common:jar:1.5:test
            [INFO] |     +- org.powermock:powermock-core:jar:1.5:test
            [INFO] |     \- org.powermock:powermock-reflect:jar:1.5:test
            [INFO] |        \- org.objenesis:objenesis:jar:1.2:test
            [INFO] +- org.powermock:powermock-api-mockito:jar:1.5:test
            [INFO] |  +- org.mockito:mockito-all:jar:1.9.5:test
            [INFO] |  \- org.powermock:powermock-api-support:jar:1.5:test
            [INFO] +- org.apache.poi:poi:jar:3.7:compile
            [INFO] +- cglib:cglib-nodep:jar:2.1_3:compile
            [INFO] +- com.procergs.acr:prarqjava4:jar:0.9.11:compile
            [INFO] |  +- com.acrs:PRAssinador-WS-Client:jar:2.0.1:compile
            [INFO] |  |  \- log4j:log4j:jar:1.2.17:compile
            [INFO] |  \- com.procergs.sca:sca-ws:jar:1.0.3:compile
            [INFO] +- com.procergs.irs:prarqjava4-composite:jar:0.1.1:compile
            [INFO] +- com.procergs.det:detcredenciadows:jar:1.0.1:compile
            [INFO] +- org.jboss.resteasy:resteasy-jackson-provider:jar:2.3.5.Final:test
            [INFO] |  +- org.codehaus.jackson:jackson-mapper-asl:jar:1.9.9:test
            [INFO] |  +- org.codehaus.jackson:jackson-jaxrs:jar:1.9.9:test
            [INFO] |  \- org.codehaus.jackson:jackson-xc:jar:1.9.9:test
            [INFO] +- org.jboss.resteasy:resteasy-jaxrs:jar:2.3.3.Final:provided
            [INFO] |  +- org.jboss.resteasy:jaxrs-api:jar:2.3.3.Final:provided
            [INFO] |  +- org.scannotation:scannotation:jar:1.0.3:provided
            [INFO] |  |  \- javassist:javassist:jar:3.12.1.GA:provided
            [INFO] |  +- javax.annotation:jsr250-api:jar:1.0:provided
            [INFO] |  +- commons-httpclient:commons-httpclient:jar:3.1:provided
            [INFO] |  |  \- commons-codec:commons-codec:jar:1.2:provided
            [INFO] |  +- org.apache.httpcomponents:httpclient:jar:4.1.2:provided
            [INFO] |  \- net.jcip:jcip-annotations:jar:1.0:provided
            [INFO] +- org.jboss.resteasy:resteasy-multipart-provider:jar:2.3.3.Final:provided
            [INFO] |  +- javax.mail:mail:jar:1.4.4:provided
            [INFO] |  +- org.apache.james:apache-mime4j:jar:0.6:provided
            [INFO] |  \- javax.servlet:servlet-api:jar:2.5:provided
            [INFO] +- org.codehaus.jackson:jackson-core-asl:jar:1.5.5:provided
            [INFO] +- org.jboss.resteasy:resteasy-jaxb-provider:jar:2.3.3.Final:compile
            [INFO] |  \- com.sun.xml.bind:jaxb-impl:jar:2.2.4:compile
            [INFO] |     \- javax.xml.bind:jaxb-api:jar:2.2.3:compile
            [INFO] |        +- javax.xml.stream:stax-api:jar:1.0-2:compile
            [INFO] |        \- javax.activation:activation:jar:1.1:compile
            [INFO] +- org.primefaces:primefaces:jar:4.0.9:compile
            [INFO] +- org.primefaces.extensions:primefaces-extensions:jar:1.2.1:compile
            [INFO] |  +- com.google.code.gson:gson:jar:2.2.4:compile
            [INFO] |  \- org.apache.commons:commons-lang3:jar:3.1:compile
            [INFO] +- org.omnifaces:omnifaces:jar:1.6:compile
            [INFO] +- org.apache.myfaces.extensions.cdi.bundles:myfaces-extcdi-bundle-jsf20:jar:1.0.5:compile
            [INFO] +- org.slf4j:slf4j-api:jar:1.6.1:provided
            [INFO] +- net.bull.javamelody:javamelody-core:jar:1.45.0:compile
            [INFO] |  \- org.jrobin:jrobin:jar:1.5.9:compile
            [INFO] +- com.thoughtworks.xstream:xstream:jar:1.4.2:compile
            [INFO] |  +- xmlpull:xmlpull:jar:1.1.3.1:compile
            [INFO] |  \- xpp3:xpp3_min:jar:1.1.4c:compile
            [INFO] +- com.procergs.acr:PRArqjava-core:jar:1.16.0:compile
            [INFO] +- com.procergs.red:detcredenciadoarq3:jar:2013.07.26_15-55:compile
            [INFO] +- com.procergs.red:ed_det:jar:2013.08.13_16-48:compile
            [INFO] +- net.sf.jasperreports:jasperreports:jar:5.1.2:compile
            [INFO] |  +- commons-beanutils:commons-beanutils:jar:1.8.0:compile
            [INFO] |  +- commons-digester:commons-digester:jar:2.1:compile
            [INFO] |  +- commons-logging:commons-logging:jar:1.1.1:compile
            [INFO] |  +- jfree:jcommon:jar:1.0.15:compile
            [INFO] |  +- jfree:jfreechart:jar:1.0.12:compile
            [INFO] |  +- eclipse:jdtcore:jar:3.1.0:compile
            [INFO] |  +- org.codehaus.castor:castor:jar:1.2:compile
            [INFO] |  +- com.fasterxml.jackson.core:jackson-core:jar:2.0.5:compile
            [INFO] |  +- com.fasterxml.jackson.core:jackson-databind:jar:2.0.5:compile
            [INFO] |  \- com.fasterxml.jackson.core:jackson-annotations:jar:2.0.5:compile
            [INFO] +- com.lowagie:itext:jar:2.1.7:compile
            [INFO] |  +- bouncycastle:bcmail-jdk14:jar:138:compile
            [INFO] |  +- bouncycastle:bcprov-jdk14:jar:138:compile
            [INFO] |  \- org.bouncycastle:bctsp-jdk14:jar:1.38:compile
            [INFO] |     +- org.bouncycastle:bcprov-jdk14:jar:1.38:compile
            [INFO] |     \- org.bouncycastle:bcmail-jdk14:jar:1.38:compile
            [INFO] +- commons-fileupload:commons-fileupload:jar:1.2:compile
            [INFO] +- commons-io:commons-io:jar:2.4:compile
            [INFO] +- org.jboss.arquillian.junit:arquillian-junit-container:jar:1.1.4.Final:test
            [INFO] |  +- org.jboss.arquillian.junit:arquillian-junit-core:jar:1.1.4.Final:test
            [INFO] |  +- org.jboss.arquillian.test:arquillian-test-api:jar:1.1.4.Final:test
            [INFO] |  |  \- org.jboss.arquillian.core:arquillian-core-api:jar:1.1.4.Final:test
            [INFO] |  +- org.jboss.arquillian.test:arquillian-test-spi:jar:1.1.4.Final:test
            [INFO] |  +- org.jboss.arquillian.container:arquillian-container-test-api:jar:1.1.4.Final:test
            [INFO] |  |  \- org.jboss.shrinkwrap:shrinkwrap-api:jar:1.2.2:test
            [INFO] |  +- org.jboss.arquillian.container:arquillian-container-test-spi:jar:1.1.4.Final:test
            [INFO] |  +- org.jboss.arquillian.core:arquillian-core-impl-base:jar:1.1.4.Final:test
            [INFO] |  +- org.jboss.arquillian.test:arquillian-test-impl-base:jar:1.1.4.Final:test
            [INFO] |  +- org.jboss.arquillian.container:arquillian-container-impl-base:jar:1.1.4.Final:test
            [INFO] |  |  \- org.jboss.arquillian.config:arquillian-config-impl-base:jar:1.1.4.Final:test
            [INFO] |  +- org.jboss.arquillian.container:arquillian-container-test-impl-base:jar:1.1.4.Final:test
            [INFO] |  \- org.jboss.shrinkwrap:shrinkwrap-impl-base:jar:1.2.2:test
            [INFO] |     \- org.jboss.shrinkwrap:shrinkwrap-spi:jar:1.2.2:test
            [INFO] +- org.jboss.arquillian.extension:arquillian-persistence-api:jar:1.0.0.Alpha7:test
            [INFO] +- org.jboss.arquillian.extension:arquillian-persistence-dbunit:jar:1.0.0.Alpha7:test
            [INFO] |  +- org.jboss.arquillian.extension:arquillian-persistence-spi:jar:1.0.0.Alpha7:test
            [INFO] |  +- org.jboss.arquillian.extension:arquillian-persistence-core:jar:1.0.0.Alpha7:test
            [INFO] |  |  \- org.jboss.arquillian.extension:arquillian-transaction-jta:jar:1.0.1.Final:test
            [INFO] |  |     \- org.jboss.arquillian.extension:arquillian-transaction-impl-base:jar:1.0.1.Final:test
            [INFO] |  +- org.jboss.arquillian.extension:arquillian-transaction-spi:jar:1.0.1.Final:test
            [INFO] |  |  \- org.jboss.arquillian.extension:arquillian-transaction-api:jar:1.0.1.Final:test
            [INFO] |  +- org.dbunit:dbunit:jar:2.5.0:test
            [INFO] |  +- org.yaml:snakeyaml:jar:1.10:test
            [INFO] |  +- org.jboss.arquillian.core:arquillian-core-spi:jar:1.1.4.Final:test
            [INFO] |  +- org.jboss.arquillian.container:arquillian-container-spi:jar:1.1.4.Final:test
            [INFO] |  +- org.jboss.arquillian.config:arquillian-config-api:jar:1.1.4.Final:test
            [INFO] |  \- org.jboss.shrinkwrap.descriptors:shrinkwrap-descriptors-api-base:jar:2.0.0-alpha-5:test
            [INFO] +- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-depchain:pom:2.1.0:test
            [INFO] |  +- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-api:jar:2.1.0:test
            [INFO] |  +- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-spi:jar:2.1.0:test
            [INFO] |  +- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-api-maven:jar:2.1.0:test
            [INFO] |  +- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-spi-maven:jar:2.1.0:test
            [INFO] |  +- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-api-maven-archive:jar:2.1.0:test
            [INFO] |  +- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-impl-maven:jar:2.1.0:test
            [INFO] |  |  +- org.eclipse.aether:aether-api:jar:0.9.0.M2:test
            [INFO] |  |  +- org.eclipse.aether:aether-impl:jar:0.9.0.M2:test
            [INFO] |  |  +- org.eclipse.aether:aether-spi:jar:0.9.0.M2:test
            [INFO] |  |  +- org.eclipse.aether:aether-util:jar:0.9.0.M2:test
            [INFO] |  |  +- org.eclipse.aether:aether-connector-wagon:jar:0.9.0.M2:test
            [INFO] |  |  +- org.apache.maven:maven-aether-provider:jar:3.1.1:test
            [INFO] |  |  +- org.apache.maven:maven-model:jar:3.1.1:test
            [INFO] |  |  +- org.apache.maven:maven-model-builder:jar:3.1.1:test
            [INFO] |  |  |  \- org.codehaus.plexus:plexus-component-annotations:jar:1.5.5:test
            [INFO] |  |  +- org.apache.maven:maven-repository-metadata:jar:3.1.1:test
            [INFO] |  |  +- org.apache.maven:maven-settings:jar:3.1.1:test
            [INFO] |  |  +- org.apache.maven:maven-settings-builder:jar:3.1.1:test
            [INFO] |  |  +- org.codehaus.plexus:plexus-interpolation:jar:1.19:test
            [INFO] |  |  +- org.codehaus.plexus:plexus-utils:jar:3.0.15:test
            [INFO] |  |  +- org.sonatype.plexus:plexus-sec-dispatcher:jar:1.3:test
            [INFO] |  |  |  \- org.sonatype.plexus:plexus-cipher:jar:1.4:test
            [INFO] |  |  +- org.apache.maven.wagon:wagon-provider-api:jar:2.6:test
            [INFO] |  |  +- org.apache.maven.wagon:wagon-file:jar:2.6:test
            [INFO] |  |  \- org.apache.maven.wagon:wagon-http-lightweight:jar:2.6:test
            [INFO] |  |     \- org.apache.maven.wagon:wagon-http-shared:jar:2.6:test
            [INFO] |  |        \- org.jsoup:jsoup:jar:1.7.2:test
            [INFO] |  \- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-impl-maven-archive:jar:2.1.0:test
            [INFO] |     +- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-spi-maven-archive:jar:2.1.0:test
            [INFO] |     +- org.eclipse.sisu:org.eclipse.sisu.plexus:jar:0.0.0.M5:test
            [INFO] |     |  +- com.google.guava:guava:jar:10.0.1:test
            [INFO] |     |  |  \- com.google.code.findbugs:jsr305:jar:1.3.9:test
            [INFO] |     |  +- org.sonatype.sisu:sisu-guice:jar:no_aop:3.1.0:test
            [INFO] |     |  |  \- aopalliance:aopalliance:jar:1.0:test
            [INFO] |     |  \- org.eclipse.sisu:org.eclipse.sisu.inject:jar:0.0.0.M5:test
            [INFO] |     \- org.codehaus.plexus:plexus-compiler-javac:jar:2.3:test
            [INFO] |        \- org.codehaus.plexus:plexus-compiler-api:jar:2.3:test
            [INFO] +- org.jboss.arquillian.graphene:graphene-webdriver:pom:2.0.3.Final:test
            [INFO] |  +- org.jboss.arquillian.graphene:graphene-webdriver-api:jar:2.0.3.Final:test
            [INFO] |  +- org.jboss.arquillian.graphene:graphene-webdriver-spi:jar:2.0.3.Final:test
            [INFO] |  +- org.jboss.arquillian.graphene:graphene-webdriver-impl:jar:2.0.3.Final:test
            [INFO] |  |  +- org.jboss.arquillian.extension:arquillian-drone-impl:jar:1.3.1.Final:test (version managed from 1.3.0.Final)
            [INFO] |  |  \- org.jboss.arquillian.extension:arquillian-drone-configuration:jar:1.3.1.Final:test
            [INFO] |  +- org.jboss.arquillian.extension:arquillian-drone-webdriver-depchain:pom:1.3.1.Final:test (version managed from 1.3.0.Final)
            [INFO] |  |  +- org.jboss.arquillian.extension:arquillian-drone-api:jar:1.3.1.Final:test
            [INFO] |  |  +- org.jboss.arquillian.extension:arquillian-drone-spi:jar:1.3.1.Final:test
            [INFO] |  |  +- org.jboss.arquillian.extension:arquillian-drone-webdriver:jar:1.3.1.Final:test
            [INFO] |  |  +- org.seleniumhq.selenium:selenium-api:jar:2.40.0:test (version managed from 2.42.0)
            [INFO] |  |  |  \- org.json:json:jar:20080701:test
            [INFO] |  |  +- org.seleniumhq.selenium:selenium-support:jar:2.40.0:test
            [INFO] |  |  +- org.seleniumhq.selenium:selenium-chrome-driver:jar:2.40.0:test
            [INFO] |  |  +- org.seleniumhq.selenium:selenium-firefox-driver:jar:2.40.0:test
            [INFO] |  |  |  \- org.apache.commons:commons-exec:jar:1.1:test
            [INFO] |  |  +- org.seleniumhq.selenium:selenium-htmlunit-driver:jar:2.40.0:test
            [INFO] |  |  |  \- net.sourceforge.htmlunit:htmlunit:jar:2.13:test
            [INFO] |  |  |     +- xalan:xalan:jar:2.7.1:test
            [INFO] |  |  |     |  \- xalan:serializer:jar:2.7.1:test
            [INFO] |  |  |     +- org.apache.httpcomponents:httpmime:jar:4.3.1:test
            [INFO] |  |  |     +- net.sourceforge.htmlunit:htmlunit-core-js:jar:2.13:test
            [INFO] |  |  |     +- xerces:xercesImpl:jar:2.11.0:test
            [INFO] |  |  |     +- net.sourceforge.nekohtml:nekohtml:jar:1.9.19:test
            [INFO] |  |  |     +- net.sourceforge.cssparser:cssparser:jar:0.9.11:test
            [INFO] |  |  |     |  \- org.w3c.css:sac:jar:1.3:test
            [INFO] |  |  |     \- org.eclipse.jetty:jetty-websocket:jar:8.1.12.v20130726:test
            [INFO] |  |  |        +- org.eclipse.jetty:jetty-util:jar:8.1.12.v20130726:test
            [INFO] |  |  |        +- org.eclipse.jetty:jetty-io:jar:8.1.12.v20130726:test
            [INFO] |  |  |        \- org.eclipse.jetty:jetty-http:jar:8.1.12.v20130726:test
            [INFO] |  |  +- org.seleniumhq.selenium:selenium-ie-driver:jar:2.40.0:test
            [INFO] |  |  |  +- net.java.dev.jna:jna:jar:3.4.0:test
            [INFO] |  |  |  \- net.java.dev.jna:platform:jar:3.4.0:test
            [INFO] |  |  +- org.seleniumhq.selenium:selenium-remote-driver:jar:2.40.0:test
            [INFO] |  |  \- com.opera:operadriver:jar:1.5:test
            [INFO] |  |     +- com.opera:operalaunchers:jar:1.1:test
            [INFO] |  |     +- com.google.protobuf:protobuf-java:jar:2.4.1:test
            [INFO] |  |     +- commons-jxpath:commons-jxpath:jar:1.3:test
            [INFO] |  |     \- org.ini4j:ini4j:jar:0.5.2:test
            [INFO] |  \- org.seleniumhq.selenium:selenium-java:jar:2.40.0:test
            [INFO] |     +- org.seleniumhq.selenium:selenium-safari-driver:jar:2.40.0:test
            [INFO] |     \- org.webbitserver:webbit:jar:0.4.14:test
            [INFO] |        \- io.netty:netty:jar:3.5.2.Final:test
            [INFO] +- org.jboss.arquillian.extension:arquillian-phantom-driver:jar:1.1.2.Final:test
            [INFO] |  \- com.github.detro.ghostdriver:phantomjsdriver:jar:1.1.0:test
            [INFO] |     \- org.seleniumhq.selenium:selenium-server:jar:2.40.0:test (version managed from 2.39.0)
            [INFO] |        +- org.bouncycastle:bcprov-jdk15on:jar:1.48:test
            [INFO] |        +- org.bouncycastle:bcpkix-jdk15on:jar:1.48:test
            [INFO] |        +- mx4j:mx4j-tools:jar:3.0.1:test
            [INFO] |        +- org.mortbay.jetty:servlet-api-2.5:jar:6.1.9:test
            [INFO] |        \- org.seleniumhq.selenium:jetty-repacked:jar:7.6.1:test
            [INFO] +- org.jboss.arquillian.jbehave:arquillian-jbehave-core:jar:1.0.2:test
            [INFO] |  +- org.jbehave:jbehave-core:zip:resources:3.7:test
            [INFO] |  |  +- junit:junit-dep:jar:4.8.2:test
            [INFO] |  |  +- org.hamcrest:hamcrest-core:jar:1.1:test
            [INFO] |  |  +- org.hamcrest:hamcrest-library:jar:1.1:test
            [INFO] |  |  +- org.hamcrest:hamcrest-integration:jar:1.1:test
            [INFO] |  |  +- commons-lang:commons-lang:jar:2.5:test
            [INFO] |  |  +- org.freemarker:freemarker:jar:2.3.16:test
            [INFO] |  |  \- com.thoughtworks.paranamer:paranamer:jar:2.4:test
            [INFO] |  +- org.jbehave:jbehave-core:jar:3.7:test
            [INFO] |  \- org.jbehave.site:jbehave-site-resources:zip:3.1.1:test
            [INFO] +- org.jboss.spec.javax.annotation:jboss-annotations-api_1.1_spec:jar:1.0.1.Final:provided
            [INFO] +- org.jboss.spec.javax.ejb:jboss-ejb-api_3.1_spec:jar:1.0.2.Final:provided
            [INFO] +- org.jboss.arquillian.protocol:arquillian-protocol-servlet:jar:1.1.4.Final:test
            [INFO] |  \- org.jboss.shrinkwrap.descriptors:shrinkwrap-descriptors-spi:jar:2.0.0-alpha-5:test
            [INFO] |     \- org.easytesting:fest-assert:jar:1.4:test
            [INFO] |        \- org.easytesting:fest-util:jar:1.1.6:test
            [INFO] +- org.apache.httpcomponents:httpcore:jar:4.2.5:test
            [INFO] +- commons-collections:commons-collections:jar:3.2.1:compile
            [INFO] +- xml-apis:xml-apis:jar:1.4.01:test (scope not updated to compile)
            [INFO] +- org.slf4j:slf4j-log4j12:jar:1.7.5:test
            [INFO] +- javax.enterprise:cdi-api:jar:1.0:test
            [INFO] |  +- org.jboss.interceptor:jboss-interceptor-api:jar:1.1:test
            [INFO] |  \- javax.inject:javax.inject:jar:1:test
            [INFO] +- com.procergs.ied:ied-lib-util:jar:1.0.6:compile
            [INFO] +- com.procergs.acr:PRAutentica:jar:2.9.0:provided
            [INFO] +- com.procergs.acr:PRUtil_j2ee:jar:1.10.2:provided
            [INFO] +- com.procergs.acr:PRGCISrvJava:jar:1.0.0.2:compile
            [INFO] +- com.procergs.acr:PRGCIJava:jar:2.0.0.3:compile
            [INFO] +- org.jboss.ejb3:jboss-ejb3-ext-api:jar:2.1.0:provided
            [INFO] \- javax:javaee-api:jar:6.0:provided
            

             

            what do you think?

            • 3. Re: Drone + selenium 2.42.x
              Rohit Gupta Newbie

              Hi Rafael,

               

              I have the same problem. We are using a Shibolleth authetication server (runs on Apache) which redirects to our app running on a wildfly server.

               

              Thanks

              Rohit

              • 4. Re: Drone + selenium 2.42.x
                Benny Weber Newbie

                I had the same error

                 

                java.lang.RuntimeException: Unable to instantiate Drone via org.openqa.selenium.firefox.FirefoxDriver(Capabilities): java.lang.NoClassDefFoundError: org/apache/http/config/RegistryBuilder


                For me it worked when I remove


                <dependency>
                                <groupId>org.jboss.shrinkwrap.resolver</groupId>
                                <artifactId>shrinkwrap-resolver-bom</artifactId>
                                <version>2.1.0-alpha-1</version>
                                <scope>import</scope>
                                <type>pom</type>
                </dependency>
                

                 

                Don't know why I had it, with the other dependencies I have no missing classes and the error is gone.

                 

                All in all for drone I have now:

                 

                <dependencyManagement>
                        <dependencies>
                     
                            <dependency>
                                <groupId>org.jboss.arquillian</groupId>
                                <artifactId>arquillian-bom</artifactId>
                                <version>1.1.5.Final</version>
                                <scope>import</scope>
                                <type>pom</type>
                            </dependency>
                             
                            <dependency>
                                <groupId>org.jboss.arquillian.extension</groupId>
                                <artifactId>arquillian-drone-bom</artifactId>
                                <version>1.3.1.Final</version>
                                <type>pom</type>
                                <scope>import</scope>
                            </dependency>
                            <dependency>
                                <groupId>org.jboss.arquillian.selenium</groupId>
                                <artifactId>selenium-bom</artifactId>
                                <version>2.42.0</version>
                                <type>pom</type>
                                <scope>import</scope>
                            </dependency>
                        </dependencies>
                    </dependencyManagement>
                
                  <dependency>
                            <groupId>junit</groupId>
                            <artifactId>junit</artifactId>
                            <version>4.8.1</version>
                            <scope>test</scope>
                        </dependency>
                        <dependency>
                            <groupId>org.jboss.arquillian.junit</groupId>
                            <artifactId>arquillian-junit-container</artifactId>
                            <scope>test</scope>
                        </dependency>
                        <dependency>
                            <groupId>org.jboss.arquillian.graphene</groupId>
                            <artifactId>graphene-webdriver</artifactId>
                            <version>2.0.3.Final</version>
                            <type>pom</type>
                            <scope>test</scope>
                        </dependency>