- 
        1. Re: BookingTest.java n' TestNGadmin Nov 25, 2005 6:07 AM (in response to frankrtg)Put jsdk.jar into your classpath... 
- 
        2. Re: BookingTest.java n' TestNGfrankrtg Nov 25, 2005 1:29 PM (in response to frankrtg)Hi thanks for replying my topic. 
 But I did put my classpath and the error is still there, any other suggestion?
- 
        3. Re: BookingTest.java n' TestNGmarius.oancea Nov 28, 2005 2:49 PM (in response to frankrtg)How exactly you tried to execute the test from eclipse ? 
- 
        4. Re: BookingTest.java n' TestNGmarius.oancea Nov 29, 2005 3:42 AM (in response to frankrtg)I will try to explaing how I do my tests from eclipse. 
 Preconditions:
 - i have TestNG plugin installed
 Configuration:
 - I have the testcases (extensions of SeamTest)
 - testng.xml is in the same folder as the testcases
 Now if I press right mouse on testng and I choose "Run As TestNGSuite" i get an error:
 [RunInfo] Adding method selector: org.testng.internal.XmlMethodSelector@ce5b1c priority: 10
 FAILED: ro.intenso.rmc.test.LoginTest.testLogIn()
 java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
 at javax.faces.component.UIComponentBase.(UIComponentBase.java:45)
 Solution:
 - Rightmouse on testng.xml, RunAs->Run
 - Select TestNG and press New
 - Select "Suite" radio and browse to the testng.xml
 - Go to classpath tab and under "User Entries" add the jars you need.
 - Press Run
 - All works this way
 I hope this will also solve your problem.
- 
        5. Re: BookingTest.java n' TestNGfrankrtg Nov 29, 2005 10:13 AM (in response to frankrtg)Firstable, I want to thank you marius.oancea and admin. 
 I already solved my problem. The solution was so easy!
 If you see this line from the console information:Exception in thread "main" java.lang.NoClassDefFoundError: javax/servlet/ServletContext 
 it is showing "javax/servlet/ServletContext"
 It means servlet.jar is missing in Eclipse's configuration. So I added it as external jars and it fixed the problem. The three tests are runing!
 Thanks anyway!
- 
        6. Re: BookingTest.java n' TestNGchristian.bauer Nov 29, 2005 3:31 PM (in response to frankrtg)servlet.jar _is the same_ as jsdk.jar 
- 
        7. Re: BookingTest.java n' TestNGfrankrtg Nov 29, 2005 5:41 PM (in response to frankrtg)So I didn´t set the correct configuration in Eclipse. 
 How can I get this jsdk.jar? is it par of jsdk1.5?
 I have to tell you I'm totally newbie.
- 
        8. Re: BookingTest.java n' TestNGmarius.oancea Nov 30, 2005 3:47 AM (in response to frankrtg)You could use jboss-seam\lib\javax.servlet.jar 
 
     
     
    