1

java.lang.NoSuchMethodError: org.apache.http.conn.scheme.Scheme. (Ljava/lang/String;ILorg/apache/http/conn/scheme/SchemeSocketFactory;)V の org.openqa.selenium.remote.internal.HttpClientFactory.getClientConnectionManager(HttpClientFactory.java:64) の org.openqa.selenium.remote .internal.HttpClientFactory.(HttpClientFactory.java:50) の org.openqa.selenium.remote.HttpCommandExecutor.(HttpCommandExecutor.java:111) の org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:78) ) org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:187) で org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:93) で org.openqa.selenium.firefox.FirefoxDriver.( FirefoxDriver.java:

  this is my ivy.xml file .
   <dependencies>
    <dependency org="antlr" name="antlr" rev="2.7.6"/>
    <dependency org="aopalliance" name="aopalliance" rev="1.0"/>
     <dependency org="bouncycastle" name="bcmail-jdk14" rev="139"/>
     <dependency org="commons-collections" name="commons-collections" rev="3.1"/>
     <dependency org="commons-dbcp" name="commons-dbcp" rev="1.4"/>
     <dependency org="commons-httpclient" name="commons-httpclient" rev="3.1"/>
               <dependency org="commons-logging" name="commons-logging" rev="1.1.1"/>
               <dependency org="commons-pool" name="commons-pool" rev="1.6"/>
               <dependency org="dom4j" name="dom4j" rev="1.6.1"/>
               <dependency org="org.hibernate" name="ejb3-persistence" rev="1.0.2.GA"/>
               <dependency org="org.apache.pdfbox" name="fontbox" rev="1.6.0"/>
               <dependency org="jtidy" name="jtidy" rev="4aug2000r7-dev"/>
               <dependency org="org.seleniumhq.selenium" name="selenium-java" rev="2.20.0"/>
                <dependency org="javax.inject" name="javax.inject" rev="1"/>
               <dependency org="javax.transaction" name="jta" rev="1.1"/>
               <dependency org="org.hibernate" name="hibernate-validator" rev="4.0.2.GA"/>
               <dependency org="org.hibernate" name="hibernate-cglib-repack" rev="2.1_3"/>
               <dependency org="org.hibernate" name="hibernate-annotations" rev="3.5.6-Final"/>
               <dependency org="org.slf4j" name="slf4j-api" rev="1.6.0"/>
               <dependency org="org.slf4j" name="slf4j-jcl" rev="1.6.0"/>
               <dependency org="org.slf4j" name="slf4j-log4j12" rev="1.6.0"/>
               <dependency org="org.slf4j" name="slf4j-simple" rev="1.6.0"/>  
               <dependency org="mysql" name="mysql-connector-java" rev="5.1.18"/>
               <dependency org="pdfbox" name="pdfbox" rev="0.7.3"/>
               <dependency org="jaxen" name="jaxen" rev="1.1.1"/>
               <dependency org="org.seleniumhq.webdriver" name="webdriver-firefox" rev="0.9.7376"/>
               <dependency org="org.seleniumhq.webdriver" name="webdriver-common" rev="0.9.7376"/>
               <dependency org="javassist" name="javassist" rev="3.4.GA"/>
               <dependency org="net.sf.hibernate4gwt" name="hibernate4gwt" rev="1.0.4"/>
               <dependency org="org.seleniumhq.selenium" name="selenium-server" rev="2.20.0"/>
                </dependencies>

  getting above exception.. dont know which jar is missing... 
4

1 に答える 1

0

こんにちは、これらは私がセレンを使用したときにダウンロードされたすべてのjarファイルです

  • セレン-Java-2.20.0.jar
  • セレン-アンドロイド-ドライバー-2.20.0.jar
  • セレン-リモート-ドライバー-2.20.0.jar
  • cglib-nodep-2.1_3.jar
  • json-20080701.jar
  • グアバ-11.0.1.jar jsr305-1.3.9.jar
  • セレン-クローム-ドライバー-2.20.0.jar
  • selenium-htmlunit-driver-2.20.0.jar
  • セレン-api-2.20.0.jar
  • htmlunit-2.9.jar xalan-2.7.1.jar
  • serializer-2.7.1.jar
  • commons-collections-3.2.1.jar
  • commons-lang-2.6.jar
  • httpmime-4.1.2.jar
  • commons-codec-1.4.jar
  • htmlunit-core-js-2.9.jar
  • xercesImpl-2.9.1.jar
  • xml-apis-1.3.04.jar
  • nekohtml-1.9.15.jar
  • cssparser-0.9.5.jar
  • sac-1.3.jar
  • commons-logging-1.1.1.jar
  • httpclient-4.1.2.jar
  • httpcore-4.1.2.jar
  • セレン-firefox-driver-2.20.0.jar
  • commons-io-2.0.1.jar
  • commons-exec-1.1.jar
  • selenium-ie-driver-2.20.0.jar
  • jna-3.4.0.jar
  • プラットフォーム-3.4.0.jar
  • セレン-iphone-ドライバー-2.20.0.jar
  • セレン-サポート-2.20.0.jar

それらをすべて入手してから、実際に必要なものが見つかるまで1つずつ削除することをお勧めします.

于 2012-04-20T08:30:11.387 に答える