.WeldService:com.google.common.collect.ComputationException:java.lang.ArrayInd exOutOfBoundsException:3";}在jboss中使用selenium时
我开发了一个项目。现在,为了进行测试,我正在使用selenium。添加selenium-server-standlone.jar或添加selenium java.jar(以及selenium提供的其他库)时,会出现以下异常: .WeldService:com.google.common.collect.ComputeException:java.lang.ArrayIndexOutOfBoundsException:3“}} 有关守则如下:.WeldService:com.google.common.collect.ComputationException:java.lang.ArrayInd exOutOfBoundsException:3";}在jboss中使用selenium时,java,selenium,jboss,selenium-webdriver,Java,Selenium,Jboss,Selenium Webdriver,我开发了一个项目。现在,为了进行测试,我正在使用selenium。添加selenium-server-standlone.jar或添加selenium java.jar(以及selenium提供的其他库)时,会出现以下异常: .WeldService:com.google.common.collect.ComputeException:java.lang.ArrayIndexOutOfBoundsException:3“}} 有关守则如下: @Before public void set
@Before
public void setUp() throws Exception {
driver = new FirefoxDriver();
baseUrl = "http://localhost:8081";
driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
}
Selenium版本是2.42.2,JBoss版本是7.1.0。问题是,Selenium客户端包包含guava 15.0,在与JBoss一起使用时会出现此异常。如果我使用guava 17.0,则没有例外