Hello,
Last night I added RichFaces to my application and immediately got integration test failures when I ran the Maven build (exception below). The unit test is dead simply and extends SeamTest with one method that prints Hello World
. I am using Seam version 2.1.0.CR1 and Maven version 3.2.1.GA. Digging around on the web I see other people have run into this problem but there aren't any solutions posted (other than not having RichFaces on the test classpath which isn't possible with Maven).
Any pointers would be appreciated! Is anyone else using Maven, TestNG, and RichFaces with it successfully working?
-Thanks,
-Ryan
javax.servlet.ServletException: ServletContext not allow to getResourceAsStream for /WEB-INF/web.xml
at org.ajax4jsf.webapp.WebXml.init(WebXml.java:131)
at org.ajax4jsf.resource.InternetResourceService.init(InternetResourceService.java:130)
at org.ajax4jsf.webapp.BaseFilter.init(BaseFilter.java:181)
at org.jboss.seam.web.Ajax4jsfFilter.init(Ajax4jsfFilter.java:82)
at org.jboss.seam.servlet.SeamFilter.init(SeamFilter.java:97)
at org.jboss.seam.mock.AbstractSeamTest.createSeamFilter(AbstractSeamTest.java:976)
at org.jboss.seam.mock.AbstractSeamTest.setupClass(AbstractSeamTest.java:953)
at org.jboss.seam.mock.SeamTest.setupClass(SeamTest.java:44)
at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:62)
at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:141)
at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)