8 Replies Latest reply on Nov 30, 2005 3:47 AM by Marius Oancea

    BookingTest.java n' TestNG

    Francisco Rodríguez Newbie

      Hi!
      I'm in a hurry. I'm totally new with Seam and Jboss.

      I'm trying to run the TestNG BookingTest.java from eclipse but can´t.
      It shows at the console the following error:

      [RunInfo] Adding method selector: org.testng.internal.XmlMethodSelector@1ddebc3 priority: 10
      
      ===============================================
      org.jboss.seam.example.booking.test.BookingTest
      Total tests run: 0, Failures: 0, Skips: 0
      ===============================================
      
      Exception in thread "main" java.lang.NoClassDefFoundError: javax/servlet/ServletContext
       at java.lang.Class.getDeclaredConstructors0(Native Method)
       at java.lang.Class.privateGetDeclaredConstructors(Class.java:2328)
       at java.lang.Class.getConstructors(Class.java:1446)
       at org.testng.internal.TestNGClassFinder.isTestNGClass(TestNGClassFinder.java:149)
       at org.testng.internal.TestNGClassFinder.<init>(TestNGClassFinder.java:49)
       at org.testng.TestRunner.initMethods(TestRunner.java:256)
       at org.testng.TestRunner.init(TestRunner.java:192)
       at org.testng.TestRunner.init(TestRunner.java:164)
       at org.testng.TestRunner.<init>(TestRunner.java:120)
       at org.testng.eclipse.runner.RemoteTestNG$2.newTestRunner(RemoteTestNG.java:81)
       at org.testng.SuiteRunner$ProxyTestRunnerFactory.newTestRunner(SuiteRunner.java:356)
       at org.testng.SuiteRunner.privateRun(SuiteRunner.java:160)
       at org.testng.SuiteRunner.run(SuiteRunner.java:126)
       at org.testng.eclipse.runner.RemoteTestNG.run(RemoteTestNG.java:99)
       at org.testng.eclipse.runner.RemoteTestNG.main(RemoteTestNG.java:138)
      


      I don´t know what is happening. I think the my problem is related with the
      extends SeamTest
      .

      Someone give me a trace please.

      Thank you