Hi Matt, This is JUnit related and not Cactus. Here are some hints from reading the stack trace:
- the problem is that the junit Ant task is trying to get the name of the test by calling get name() method of the TestCase class, and that method does not exist. Thus this means that the version of the JUnit Ant task that you have does not match the version of the junit jar that you have in your classpath. Solution: try upgrading Ant to a newer version (Note: the junit ant task is in the optional jar). Hope it helps, -Vincent > -----Original Message----- > From: Matt Raible [mailto:[EMAIL PROTECTED]] > Sent: 14 December 2002 15:00 > To: 'Cactus Users List' > Subject: java.lang.NoSuchMethodError: junit.framework.TestCase.name() > > I had a test case that was working yesterday, and now I'm getting the > following error - any offhand tips? > > [echo] Testing web... > [junit] java.lang.NoSuchMethodError: > junit.framework.TestCase.name()Ljava/lang/String; > [junit] at > org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter.sta > rtTest(XMLJUnitResultFormatte > r.java:186) > [junit] at > junit.framework.TestResult.startTest(TestResult.java:151) > [junit] at junit.framework.TestResult.run(TestResult.java:103) > [junit] at junit.framework.TestCase.run(TestCase.java:118) > [junit] at junit.framework.TestSuite.runTest(TestSuite.java:208) > [junit] at junit.framework.TestSuite.run(TestSuite.java:203) > [junit] at > org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTe > stRunner.java:231) > [junit] at > org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitT > estRunner.java:409) > [junit] Exception in thread "main" > [junit] TEST org.apache.webapp.actions.LoginServletTest FAILED -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
