6 Replies Latest reply on Jan 23, 2008 3:45 AM by Siarhei Dudzin

    Integration testing Seam components with Maven

    Trent Rosenbaum Newbie

      I have been able to use maven 2 to work with a Seam project. Deploying everything has been fine and I have been able to expand my project as I read the documentation further.

      One area I am experiencing problems with is running Integration tests based on testng and the SeamTest class. I implemented the examples under section 31.2. of the documentation, but I keep getting the following stacktrace, (included below). I started to play around with the examples back with CR2 and then decided to wait for the GA release, but I still experience the same problems. I was wondering if someone could help me understand the nature of my problem?


      javax.servlet.ServletException: ServletContext not allow to getResourceAsStream for /WEB-INF/web.xml
      at org.ajax4jsf.webapp.WebXml.init(WebXml.java:113)
      at org.ajax4jsf.resource.InternetResourceService.init(InternetResourceService.java:133)
      at org.ajax4jsf.webapp.BaseFilter.init(BaseFilter.java:148)
      at org.jboss.seam.web.Ajax4jsfFilter.init(Ajax4jsfFilter.java:86)
      at org.jboss.seam.servlet.SeamFilter.init(SeamFilter.java:97)
      at org.jboss.seam.mock.BaseSeamTest.createSeamFilter(BaseSeamTest.java:961)
      at org.jboss.seam.mock.BaseSeamTest.init(BaseSeamTest.java:942)
      at org.jboss.seam.mock.SeamTest.init(SeamTest.java:42)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:580)
      at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:397)
      at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:145)
      at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:82)
      at org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:166)
      at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:103)
      at org.testng.TestRunner.runWorkers(TestRunner.java:689)
      at org.testng.TestRunner.privateRun(TestRunner.java:566)
      at org.testng.TestRunner.run(TestRunner.java:466)
      at org.testng.SuiteRunner.runTest(SuiteRunner.java:301)
      at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:296)
      at org.testng.SuiteRunner.privateRun(SuiteRunner.java:276)
      at org.testng.SuiteRunner.run(SuiteRunner.java:191)
      at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:808)
      at org.testng.TestNG.runSuitesLocally(TestNG.java:776)
      at org.testng.TestNG.run(TestNG.java:701)
      at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:73)
      at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:124)