2017-07-24 32 views
-1

運行TestNG的測試我收到異常java.lang.NoSuchMethodError在Eclipse

FAILED CONFIGURATION: @BeforeSuite arquillianBeforeSuite 
java.lang.NoSuchMethodError: org.jboss.remoting3.Endpoint.builder()Lorg/jboss/remoting3/EndpointBuilder; 
at org.jboss.as.controller.client.impl.RemotingModelControllerClient.getOrCreateChannel(RemotingModelControllerClient.java:117) 
at org.jboss.as.controller.client.impl.RemotingModelControllerClient$1.getChannel(RemotingModelControllerClient.java:59) 
at org.jboss.as.protocol.mgmt.ManagementChannelHandler.executeRequest(ManagementChannelHandler.java:147) 
at org.jboss.as.protocol.mgmt.ManagementChannelHandler.executeRequest(ManagementChannelHandler.java:122) 

在運行使用TestNG和wildfly11 Eclipse中氧的Arquillian測試。 我Maven配置如下:

<dependency> 
     <groupId>org.jboss.arquillian.testng</groupId> 
     <artifactId>arquillian-testng-container</artifactId> 
     <version>1.1.13.Final</version> 
     <scope>test</scope> 
    </dependency> 
    <dependency> 
     <groupId>org.testng</groupId> 
     <artifactId>testng</artifactId> 
     <version>6.11</version> 
    </dependency> 
    <dependency> 
     <groupId>org.wildfly.arquillian</groupId> 
     <artifactId>wildfly-arquillian-container-managed</artifactId> 
     <version>2.0.1.Final</version> 
     <scope>test</scope> 
    </dependency> 

回答

0

將溶液:

從類路徑去除所述Wildfly 11運行時 。

  1. 右鍵單擊該項目
  2. 構建路徑
  3. 配置構建路徑
  4. 庫(TAB)
  5. 刪除Wildfly 11運行時(或Wildfly 10運行)

爲什麼這是必要的?評論歡迎...

相關問題