Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/jpa/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jsf Arquillian测试:找不到工厂javax.faces.context.FacesContextFactory的备份_Jsf_Selenium_Jsf 2_Jboss Arquillian - Fatal编程技术网

Jsf Arquillian测试:找不到工厂javax.faces.context.FacesContextFactory的备份

Jsf Arquillian测试:找不到工厂javax.faces.context.FacesContextFactory的备份,jsf,selenium,jsf-2,jboss-arquillian,Jsf,Selenium,Jsf 2,Jboss Arquillian,我试图将Arquillian+Selenium测试添加到我的jsf应用程序中。问题是,当我尝试运行测试(在tomcat 7上,使用命令mvn test)时,浏览器打开并显示错误:HTTP状态500-找不到factory javax.faces.context.FacesContextFactory的备份 我做了一些搜索,发现将com.sun.faces.config.ConfigureListener添加到我的web.xml中会有所帮助。这很有帮助-测试运行时没有错误,但我收到了大量的警告: 警

我试图将Arquillian+Selenium测试添加到我的jsf应用程序中。问题是,当我尝试运行测试(在tomcat 7上,使用命令
mvn test
)时,浏览器打开并显示错误:
HTTP状态500-找不到factory javax.faces.context.FacesContextFactory的备份

我做了一些搜索,发现将
com.sun.faces.config.ConfigureListener
添加到我的web.xml中会有所帮助。这很有帮助-测试运行时没有错误,但我收到了大量的警告:

警告:JSF1074:名为“”的托管bean已注册。将现有托管bean类类型替换为

其中两条路径相同。如果没有ConfigureListener,应用程序运行时不会出现错误和警告(但测试失败)

我正在使用:

  • 阿奎利安1.1.2决赛
  • Arquillian容器Tomcat Embedded 7 1.0.0.CR5
  • Graphene webdriver 2.0.0.Final
  • 莫哈拉2.1.22
可能的副本