Hi Gunnar, Funnily enough, I've had the same result this morning when I tried going back to Ant 1.4.1 to build some other project. It doesn't have to do with Cactus at all.
I think it simply means that there is an incompatibility issue between your version of JUnit 3.7 and the XXXJUnitResultFormatter in Ant 1.4.1 I would suggest upgrading to a newer version of Ant (like 1.5 beta 2). That should solve the problem. I am using Ant 1.5 and Ant 1.6 and it works fine. -Vincent > -----Original Message----- > From: Gunnar Ole Skogen [mailto:[EMAIL PROTECTED]] > Sent: 04 June 2002 08:45 > To: [EMAIL PROTECTED] > Subject: NoSuchMethodError > > Hi, > I am testing EJBs under WebLogic 6.1SP2 using Cactus 1.3., Junit 3.7, Ant > 1.4.1 > Having upgraded from cactus 1.2 to a nightly build of cactus 1.3dev and > now > to cactus 1.3, the exception below occurs: > Changing the formatter from xml to plain gives similar result, > XMLJUnitResultFormatter.java:186 = currentTest.setAttribute(ATTR_NAME, > ((TestCase) t).name()); > PlainJUnitResultFormatter.java:188 = wri.print("Testcase: " + ((TestCase) > t).name()); > The thing in common here is ((TestCase) t).name()) , (which is deprecated > in > favor of getName) - Test/TestCase are junit.framework. classes > I realize this most probably is a classloader problem, but having put all > jars from the cactus lib dir into the classpath of both ant, junit > testcase > and war ( only the ones needed) I am clueless and wonder if anyone has > experienced the same problem and has got a solution > > The exception: > [junit] java.lang.NoSuchMethodError > [junit] at > org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter.sta rt > Te > st(XMLJUnitResultFormatter.java:186) > [junit] at > junit.framework.TestResult.startTest(TestResult.java:158) > [junit] at junit.framework.TestResult.run(TestResult.java:103) > [junit] at junit.framework.TestCase.run(TestCase.java:122) > [junit] at junit.framework.TestSuite.runTest(TestSuite.java:173) > [junit] at junit.framework.TestSuite.run(TestSuite.java:168) > [junit] at > org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner. > run(JUnitTestRunner.java:231) > [junit] at > org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner. > main(JUnitTestRunner.java:409) > [junit] Exception in thread "main" > [junit] TEST > com.laycan.usermanagement.persistence.UserManagementVBSFMapping > Test FAILED > > > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
