jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gunnar Ole Skogen <Gunnar.Sko...@ergo.no>
Subject NoSuchMethodError
Date Tue, 04 Jun 2002 07:44:51 GMT
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.startTe
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:cactus-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:cactus-user-help@jakarta.apache.org>


Mime
View raw message