jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vincent Massol" <vmas...@pivolis.com>
Subject RE: java.lang.NoSuchMethodError: junit.framework.TestCase.name()
Date Tue, 11 Mar 2003 05:50:59 GMT

> -----Original Message-----
> From: JDiggans@genelogic.com [mailto:JDiggans@genelogic.com]
> Sent: 10 March 2003 23:52
> To: Cactus Users List
> Subject: Re: java.lang.NoSuchMethodError:
junit.framework.TestCase.name()
> 
> 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

You can post as many as you like, especially when you answer your own
questions! ;-)

Thanks for posting back
-Vincent

> 
> -------------------------------------------------
> 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:11
6)
>         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(NativeConstructorA
cc
> essorImpl.java:39)
>         at
>
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCons
tr
> uctorAccessorImpl.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.jav
a:
> 39)
>         at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Im
> pl.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(Servlet
Te
> stRunner.java;org/apache/cactus/util/log/LogAspect.aj(1k):153)
>         at
>
org.apache.cactus.server.runner.ServletTestRunner.around92_run(ServletTe
st
> Runner.java;org/apache/cactus/util/log/LogAspect.aj(1k):1236)
>         at
>
org.apache.cactus.server.runner.ServletTestRunner.run(ServletTestRunner.
ja
> va;org/apache/cactus/util/log/LogAspect.aj(1k):137)
>         at
>
org.apache.cactus.server.runner.ServletTestRunner.dispatch91_doGet(Servl
et
> TestRunner.java;org/apache/cactus/util/log/LogAspect.aj(1k):121)
>         at
>
org.apache.cactus.server.runner.ServletTestRunner.around91_doGet(Servlet
Te
> stRunner.java;org/apache/cactus/util/log/LogAspect.aj(1k):1156)
>         at
>
org.apache.cactus.server.runner.ServletTestRunner.doGet(ServletTestRunne
r.
> 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
View raw message