5 Replies Latest reply on May 22, 2011 6:45 PM by Rafael Ribeiro

    Running Seam maven2 TestNG tests

    Coen Damen Novice

      Hi, I am using Seam 2.1.0.SP1 and maven 2.0.9.


      Whenever running a test suite I get this Stacktrace:


      
      -------------------------------------------------------------------------------
      Test set: TestSuite
      -------------------------------------------------------------------------------
      Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 49.839 sec <<< FAILURE!
      testThisNow(xxxx.test.facestest.MyFacesTest)  Time elapsed: 0.032 sec  <<< FAILURE!
      java.lang.NullPointerException
           at java.lang.String.startsWith(String.java:1252)
           at java.lang.String.startsWith(String.java:1281)
           at org.ajax4jsf.webapp.WebXml.getFacesResourceKey(WebXml.java:189)
           at org.ajax4jsf.webapp.WebXml.getFacesResourceKey(WebXml.java:222)
           at org.ajax4jsf.resource.InternetResourceService.serviceResource(InternetResourceService.java:139)
           at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:500)
           at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
           at org.jboss.seam.mock.AbstractSeamTest$Request.run(AbstractSeamTest.java:492)
           at uk.co.tntpost.umbrella.test.facestest.MyFacesTest.testThisNow(MyFacesTest.java:15)
      
      



      I have tried running the the same test in a seam-gen project. In Eclipse Europa and Ganymede. Using the TestNG plugin in Eclipse and running from the command line : mvn test.


      Therefore, I have tried all options.


      Who can help me with this problem?


      Thanks in advance,
      Coen