jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From JDigg...@genelogic.com
Subject Re: java.lang.NoSuchMethodError: junit.framework.TestCase.name()
Date Mon, 10 Mar 2003 22:51:52 GMT
Grr ... had a v1.2 of cactus-ant.jar laying around in the classpath ... 
that's two I've posted w/o thinking. Shame on me. :) Test cases are now 
working.
-j

-------------------------------------------------
James Diggans 
Bioinformatics Programmer
Gene Logic, Inc.
Phone: 301.987.1756
FAX: 301.987.1701






JDiggans@genelogic.com
03/10/2003 05:36 PM
Please respond to "Cactus Users List"

 
        To:     Cactus Users List <cactus-user@jakarta.apache.org>
        cc: 
        Subject:        java.lang.NoSuchMethodError: junit.framework.TestCase.name()


Hello, trying to setup my first Cactus servlet test and in so doing 
encountered the following exception (when trying to run the test using the 

ServletTestRunner via a connection to a local Tomcat 4.0.6 instance under 
jdk 1.4.1):

--- Begin Error ---

<?xml version="1.0" encoding="UTF-8" ?><testsuites><testsuite 
name="TestSampleServlet" tests="1" failures="1" errors="0" 
time="0.01"><testcase name="warning" time="0.01"><failure 
message="Exception in constructor: testSaveToSessionOK 
(java.lang.NoSuchMethodError: 
junit.framework.TestCase.name()Ljava/lang/String;
        at 
org.apache.cactus.AbstractTestCase.&lt;init&gt;(AbstractTestCase.java:116)
        at 
org.apache.cactus.ServletTestCase.&lt;init&gt;(ServletTestCase.java:120)
        at TestSampleServlet.&lt;init&gt;(TestSampleServlet.java:12)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native 
Method)
        at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
        at junit.framework.TestSuite.createTest(TestSuite.java:135)
        at junit.framework.TestSuite.addTestMethod(TestSuite.java:114)
        at junit.framework.TestSuite.&lt;init&gt;(TestSuite.java:75)
        at TestSampleServlet.suite(TestSampleServlet.java:17)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at junit.runner.BaseTestRunner.getTest(BaseTestRunner.java:111)
        at 
org.apache.cactus.server.runner.ServletTestRunner.dispatch92_run(ServletTestRunner.java;org/apache/cactus/util/log/LogAspect.aj(1k):153)
        at 
org.apache.cactus.server.runner.ServletTestRunner.around92_run(ServletTestRunner.java;org/apache/cactus/util/log/LogAspect.aj(1k):1236)
        at 
org.apache.cactus.server.runner.ServletTestRunner.run(ServletTestRunner.java;org/apache/cactus/util/log/LogAspect.aj(1k):137)
        at 
org.apache.cactus.server.runner.ServletTestRunner.dispatch91_doGet(ServletTestRunner.java;org/apache/cactus/util/log/LogAspect.aj(1k):121)
        at 
org.apache.cactus.server.runner.ServletTestRunner.around91_doGet(ServletTestRunner.java;org/apache/cactus/util/log/LogAspect.aj(1k):1156)
        at 
org.apache.cactus.server.runner.ServletTestRunner.doGet(ServletTestRunner.java;org/apache/cactus/util/log/LogAspect.aj(1k):101)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
...

--- End Error ---

Having read this message:

http://archives.apache.org/eyebrowse/ReadMsg?listName=cactus-user@jakarta.apache.org&msgNo=2083

I searched my machine for any rogue instance of JUnit that was not 3.8.1 
and upgraded my ant installation to 1.5.2, all to no avail. The same 
message persists. Would anyone happen to have an idea on what further 
problems I might be encountering?

Regards,
-j

-------------------------------------------------
James Diggans 
Bioinformatics Programmer
Gene Logic, Inc.
Phone: 301.987.1756
FAX: 301.987.1701




Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message