You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by David Harrigan <dh...@gmail.com> on 2006/12/20 10:18:36 UTC

1.6.5 -> 1.7.0 Unit test failures

Hi,

So, trying out Ant 1.7.0. When I run my unit tests I get these errors that
do not appear when I run using Ant 1.6.5 (note: nothing has changed, just
the version of Ant that I'm using...)

    [junit] Exception in thread "main" java.lang.NoSuchMethodError:
org.apache.tools.ant.util.FileUtils.close(Ljava/io/Writer;)V
    [junit]     at
org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter.endTestSuite(XMLJUnitResultFormatter.java:174)
    [junit]     at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.fireEndTestSuite(JUnitTestRunner.java:620)

More detail can be found here:

http://attachr.com/5697

I've got JUnit 4.1 in my classpath. 

I suspect a classpath issue...would i be right?
-- 
View this message in context: http://www.nabble.com/1.6.5--%3E-1.7.0-Unit-test-failures-tf2858724.html#a7986899
Sent from the Ant - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: 1.6.5 -> 1.7.0 Unit test failures

Posted by David Harrigan <dh...@gmail.com>.
Hi,

Thanks again! Well, following your advice, I found a rogue ant in jrun.jar.
By removing
this jar it worked fine.

Thanks for your help indeed :-)

-=david=-


Peter Reilly-2 wrote:
> 
> Ok,
> Then I do not know what is wrong.
> The missing method
> "org.apache.tools.ant.util.FileUtils.close(Ljava/io/Writer;)"
> is in ant 1.6.5 and ant 1.7.0.
> It may be that one of the jars has a bundled (older) ant implementation
> and
> the FileUtils from that has got picked up.
> 
> I would go tru the jar files checking this.
> 
> for example
> TEST_PATH='the big long path in my previous email'
> for x in `echo $TEST_PATH | sed -e 's/:/ /g'`
> do
>    if [ ! -d $x ]
>    then
>       echo "JAR " $x
>       jar tf $x | grep org.apache.tools.ant.util.FileUtils
>    fi
> done
> 
> Peter
> 
> On 12/20/06, David Harrigan <dh...@gmail.com> wrote:
>>
>> Hi,
>>
>> Thanks for your reply, but unfortunately, that's not the case.
>>
>> lrwxrwxrwx  1 david david   17 2006-12-20 08:34 ant -> apache-ant-1.7.0/
>> drwxr-xr-x  6 david david 4.0K 2006-12-13 12:15 apache-ant-1.7.0
>>
>> this is in the javastuff directory. I normally symlink in stuff so I can
>> swap out
>> versions easily...
>>
>> -=david=-
>>
>>
>>
>> Peter Reilly-2 wrote:
>> >
>> > On 12/20/06, David Harrigan <dh...@gmail.com> wrote:
>> >>
>> >> Hi,
>> >>
>> >> So, trying out Ant 1.7.0. When I run my unit tests I get these errors
>> >> that
>> >> do not appear when I run using Ant 1.6.5 (note: nothing has changed,
>> just
>> >> the version of Ant that I'm using...)
>> >>
>> >>     [junit] Exception in thread "main" java.lang.NoSuchMethodError:
>> >> org.apache.tools.ant.util.FileUtils.close(Ljava/io/Writer;)V
>> >>     [junit]     at
>> >>
>> org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter.endTestSuite(XMLJUnitResultFormatter.java:174)
>> >>     [junit]     at
>> >>
>> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.fireEndTestSuite(JUnitTestRunner.java:620)
>> >>
>> >> More detail can be found here:
>> >>
>> >> http://attachr.com/5697
>> >>
>> >> I've got JUnit 4.1 in my classpath.
>> >>
>> >> I suspect a classpath issue...would i be right?
>> >
>> > Yes,
>> > You are mixing ant1.6 and ant1.7.0 jars:
>> > [junit]
>> >
>> '/home/david/javastuff/eclipse-3.3m4/workspace/libs/activation/1.1/activation.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/antlr/2.7.5/antlr.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/apache/ant/contrib/1.0b2/ant-contrib.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/apache/derby/10.2.1.6/derby.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/apache/derby/10.2.1.6/derbyclient.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/apache/derby/10.2.1.6/derbynet.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/apache/derby/10.2.1.6/derbytools.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/asm-attrs/1.0/asm-attrs.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/asm/1.0/asm.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/cglib/2.1/cglib.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/commons-collections/2.1.1/commons-collections.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/commons-dbcp/1.2.1/commons-dbcp-1.2.1.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/commons-lang/2.1/commons-lang.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/commons-logging/1.0.4/commons-logging.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/commons-pool/1.3/commons-pool-1.3.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/connector/1.0/connector.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/dom4j/1.6/dom4j.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/ehcache/1.1/ehcache.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/enterprisedt/1.0/enterprisedt.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/hibernate/3.0/hibernate.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jai/1.1.2_01/jai_codec.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jai/1.1.2_01/jai_core.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jdom/1.0/jaxen-core.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jdom/1.0/jaxen-jdom.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jdom/1.0/jdom.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jdom/1.0/saxpath.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jdom/1.0/xerces.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jdom/1.0/xml-apis.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jfreechart/1.0.1/jcommon.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jfreechart/1.0.1/jfreechart.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jimi/1.0/jimi.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jrun/4.0-update6/jrun.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jta/1.0/jta.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jug-asl/2.0.0/jug-asl.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/junit/4.1/junit.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jwsdp/2.0/jaxws-api.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jwsdp/2.0/jaxws-rt.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jwsdp/2.0/jaxws-tools.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jwsdp/2.0/jsr181-api.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jwsdp/2.0/jsr250-api.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jwsdp/2.0/saaj-api.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jwsdp/2.0/saaj-impl.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/log4j/1.2.13/log4j.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/mail/1.5/mail.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/msbase/1.0/msbase.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/mssqlserver/1.0/mssqlserver.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/msutil/1.0/msutil.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/oreilly/1.0/oreilly.jar:/home/david/javastuff/eclipse-3.3m4/workspace/search/build:/home/david/javastuff/eclipse-3.3m4/workspace/search/conf/log4j4tests:/home/david/javastuff/eclipse-3.3m4/workspace/search/conf/hibernate:/home/david/javastuff/eclipse-3.3m4/workspace/search/conf/sql:/home/david/javastuff/apache-ant-1.7.0/lib/ant-launcher.jar:/home/david/javastuff/ant/lib/ant.jar:/home/david/javastuff/ant/lib/ant-junit.jar'
>> > So you have both /home/david/javastuff/ant *and*
>> > /home/david/javastuff/apache-ant-1.7.0/lib in your environment.
>> >
>> > Peter
>> >
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/1.6.5--%3E-1.7.0-Unit-test-failures-tf2858724.html#a7986899
>> >> Sent from the Ant - Users mailing list archive at Nabble.com.
>> >>
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>> >> For additional commands, e-mail: user-help@ant.apache.org
>> >>
>> >>
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>> > For additional commands, e-mail: user-help@ant.apache.org
>> >
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/1.6.5--%3E-1.7.0-Unit-test-failures-tf2858724.html#a7987714
>> Sent from the Ant - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>> For additional commands, e-mail: user-help@ant.apache.org
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/1.6.5--%3E-1.7.0-Unit-test-failures-tf2858724.html#a7988427
Sent from the Ant - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: 1.6.5 -> 1.7.0 Unit test failures

Posted by Peter Reilly <pe...@gmail.com>.
Ok,
Then I do not know what is wrong.
The missing method "org.apache.tools.ant.util.FileUtils.close(Ljava/io/Writer;)"
is in ant 1.6.5 and ant 1.7.0.
It may be that one of the jars has a bundled (older) ant implementation and
the FileUtils from that has got picked up.

I would go tru the jar files checking this.

for example
TEST_PATH='the big long path in my previous email'
for x in `echo $TEST_PATH | sed -e 's/:/ /g'`
do
   if [ ! -d $x ]
   then
      echo "JAR " $x
      jar tf $x | grep org.apache.tools.ant.util.FileUtils
   fi
done

Peter

On 12/20/06, David Harrigan <dh...@gmail.com> wrote:
>
> Hi,
>
> Thanks for your reply, but unfortunately, that's not the case.
>
> lrwxrwxrwx  1 david david   17 2006-12-20 08:34 ant -> apache-ant-1.7.0/
> drwxr-xr-x  6 david david 4.0K 2006-12-13 12:15 apache-ant-1.7.0
>
> this is in the javastuff directory. I normally symlink in stuff so I can
> swap out
> versions easily...
>
> -=david=-
>
>
>
> Peter Reilly-2 wrote:
> >
> > On 12/20/06, David Harrigan <dh...@gmail.com> wrote:
> >>
> >> Hi,
> >>
> >> So, trying out Ant 1.7.0. When I run my unit tests I get these errors
> >> that
> >> do not appear when I run using Ant 1.6.5 (note: nothing has changed, just
> >> the version of Ant that I'm using...)
> >>
> >>     [junit] Exception in thread "main" java.lang.NoSuchMethodError:
> >> org.apache.tools.ant.util.FileUtils.close(Ljava/io/Writer;)V
> >>     [junit]     at
> >> org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter.endTestSuite(XMLJUnitResultFormatter.java:174)
> >>     [junit]     at
> >> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.fireEndTestSuite(JUnitTestRunner.java:620)
> >>
> >> More detail can be found here:
> >>
> >> http://attachr.com/5697
> >>
> >> I've got JUnit 4.1 in my classpath.
> >>
> >> I suspect a classpath issue...would i be right?
> >
> > Yes,
> > You are mixing ant1.6 and ant1.7.0 jars:
> > [junit]
> > '/home/david/javastuff/eclipse-3.3m4/workspace/libs/activation/1.1/activation.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/antlr/2.7.5/antlr.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/apache/ant/contrib/1.0b2/ant-contrib.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/apache/derby/10.2.1.6/derby.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/apache/derby/10.2.1.6/derbyclient.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/apache/derby/10.2.1.6/derbynet.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/apache/derby/10.2.1.6/derbytools.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/asm-attrs/1.0/asm-attrs.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/asm/1.0/asm.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/cglib/2.1/cglib.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/commons-collections/2.1.1/commons-collections.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/commons-dbcp/1.2.1/commons-dbcp-1.2.1.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/commons-lang/2.1/commons-lang.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/commons-logging/1.0.4/commons-logging.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/commons-pool/1.3/commons-pool-1.3.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/connector/1.0/connector.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/dom4j/1.6/dom4j.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/ehcache/1.1/ehcache.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/enterprisedt/1.0/enterprisedt.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/hibernate/3.0/hibernate.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jai/1.1.2_01/jai_codec.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jai/1.1.2_01/jai_core.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jdom/1.0/jaxen-core.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jdom/1.0/jaxen-jdom.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jdom/1.0/jdom.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jdom/1.0/saxpath.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jdom/1.0/xerces.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jdom/1.0/xml-apis.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jfreechart/1.0.1/jcommon.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jfreechart/1.0.1/jfreechart.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jimi/1.0/jimi.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jrun/4.0-update6/jrun.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jta/1.0/jta.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jug-asl/2.0.0/jug-asl.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/junit/4.1/junit.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jwsdp/2.0/jaxws-api.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jwsdp/2.0/jaxws-rt.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jwsdp/2.0/jaxws-tools.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jwsdp/2.0/jsr181-api.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jwsdp/2.0/jsr250-api.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jwsdp/2.0/saaj-api.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jwsdp/2.0/saaj-impl.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/log4j/1.2.13/log4j.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/mail/1.5/mail.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/msbase/1.0/msbase.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/mssqlserver/1.0/mssqlserver.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/msutil/1.0/msutil.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/oreilly/1.0/oreilly.jar:/home/david/javastuff/eclipse-3.3m4/workspace/search/build:/home/david/javastuff/eclipse-3.3m4/workspace/search/conf/log4j4tests:/home/david/javastuff/eclipse-3.3m4/workspace/search/conf/hibernate:/home/david/javastuff/eclipse-3.3m4/workspace/search/conf/sql:/home/david/javastuff/apache-ant-1.7.0/lib/ant-launcher.jar:/home/david/javastuff/ant/lib/ant.jar:/home/david/javastuff/ant/lib/ant-junit.jar'
> > So you have both /home/david/javastuff/ant *and*
> > /home/david/javastuff/apache-ant-1.7.0/lib in your environment.
> >
> > Peter
> >
> >> --
> >> View this message in context:
> >> http://www.nabble.com/1.6.5--%3E-1.7.0-Unit-test-failures-tf2858724.html#a7986899
> >> Sent from the Ant - Users mailing list archive at Nabble.com.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> >> For additional commands, e-mail: user-help@ant.apache.org
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > For additional commands, e-mail: user-help@ant.apache.org
> >
> >
> >
>
> --
> View this message in context: http://www.nabble.com/1.6.5--%3E-1.7.0-Unit-test-failures-tf2858724.html#a7987714
> Sent from the Ant - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: 1.6.5 -> 1.7.0 Unit test failures

Posted by David Harrigan <dh...@gmail.com>.
Hi,

Thanks for your reply, but unfortunately, that's not the case.

lrwxrwxrwx  1 david david   17 2006-12-20 08:34 ant -> apache-ant-1.7.0/
drwxr-xr-x  6 david david 4.0K 2006-12-13 12:15 apache-ant-1.7.0

this is in the javastuff directory. I normally symlink in stuff so I can
swap out
versions easily...

-=david=-



Peter Reilly-2 wrote:
> 
> On 12/20/06, David Harrigan <dh...@gmail.com> wrote:
>>
>> Hi,
>>
>> So, trying out Ant 1.7.0. When I run my unit tests I get these errors
>> that
>> do not appear when I run using Ant 1.6.5 (note: nothing has changed, just
>> the version of Ant that I'm using...)
>>
>>     [junit] Exception in thread "main" java.lang.NoSuchMethodError:
>> org.apache.tools.ant.util.FileUtils.close(Ljava/io/Writer;)V
>>     [junit]     at
>> org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter.endTestSuite(XMLJUnitResultFormatter.java:174)
>>     [junit]     at
>> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.fireEndTestSuite(JUnitTestRunner.java:620)
>>
>> More detail can be found here:
>>
>> http://attachr.com/5697
>>
>> I've got JUnit 4.1 in my classpath.
>>
>> I suspect a classpath issue...would i be right?
> 
> Yes,
> You are mixing ant1.6 and ant1.7.0 jars:
> [junit]
> '/home/david/javastuff/eclipse-3.3m4/workspace/libs/activation/1.1/activation.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/antlr/2.7.5/antlr.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/apache/ant/contrib/1.0b2/ant-contrib.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/apache/derby/10.2.1.6/derby.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/apache/derby/10.2.1.6/derbyclient.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/apache/derby/10.2.1.6/derbynet.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/apache/derby/10.2.1.6/derbytools.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/asm-attrs/1.0/asm-attrs.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/asm/1.0/asm.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/cglib/2.1/cglib.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/commons-collections/2.1.1/commons-collections.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/commons-dbcp/1.2.1/commons-dbcp-1.2.1.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/commons-lang/2.1/commons-lang.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/commons-logging/1.0.4/commons-logging.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/commons-pool/1.3/commons-pool-1.3.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/connector/1.0/connector.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/dom4j/1.6/dom4j.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/ehcache/1.1/ehcache.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/enterprisedt/1.0/enterprisedt.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/hibernate/3.0/hibernate.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jai/1.1.2_01/jai_codec.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jai/1.1.2_01/jai_core.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jdom/1.0/jaxen-core.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jdom/1.0/jaxen-jdom.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jdom/1.0/jdom.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jdom/1.0/saxpath.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jdom/1.0/xerces.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jdom/1.0/xml-apis.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jfreechart/1.0.1/jcommon.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jfreechart/1.0.1/jfreechart.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jimi/1.0/jimi.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jrun/4.0-update6/jrun.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jta/1.0/jta.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jug-asl/2.0.0/jug-asl.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/junit/4.1/junit.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jwsdp/2.0/jaxws-api.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jwsdp/2.0/jaxws-rt.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jwsdp/2.0/jaxws-tools.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jwsdp/2.0/jsr181-api.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jwsdp/2.0/jsr250-api.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jwsdp/2.0/saaj-api.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jwsdp/2.0/saaj-impl.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/log4j/1.2.13/log4j.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/mail/1.5/mail.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/msbase/1.0/msbase.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/mssqlserver/1.0/mssqlserver.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/msutil/1.0/msutil.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/oreilly/1.0/oreilly.jar:/home/david/javastuff/eclipse-3.3m4/workspace/search/build:/home/david/javastuff/eclipse-3.3m4/workspace/search/conf/log4j4tests:/home/david/javastuff/eclipse-3.3m4/workspace/search/conf/hibernate:/home/david/javastuff/eclipse-3.3m4/workspace/search/conf/sql:/home/david/javastuff/apache-ant-1.7.0/lib/ant-launcher.jar:/home/david/javastuff/ant/lib/ant.jar:/home/david/javastuff/ant/lib/ant-junit.jar'
> So you have both /home/david/javastuff/ant *and*
> /home/david/javastuff/apache-ant-1.7.0/lib in your environment.
> 
> Peter
> 
>> --
>> View this message in context:
>> http://www.nabble.com/1.6.5--%3E-1.7.0-Unit-test-failures-tf2858724.html#a7986899
>> Sent from the Ant - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>> For additional commands, e-mail: user-help@ant.apache.org
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/1.6.5--%3E-1.7.0-Unit-test-failures-tf2858724.html#a7987714
Sent from the Ant - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: 1.6.5 -> 1.7.0 Unit test failures

Posted by Peter Reilly <pe...@gmail.com>.
On 12/20/06, David Harrigan <dh...@gmail.com> wrote:
>
> Hi,
>
> So, trying out Ant 1.7.0. When I run my unit tests I get these errors that
> do not appear when I run using Ant 1.6.5 (note: nothing has changed, just
> the version of Ant that I'm using...)
>
>     [junit] Exception in thread "main" java.lang.NoSuchMethodError:
> org.apache.tools.ant.util.FileUtils.close(Ljava/io/Writer;)V
>     [junit]     at
> org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter.endTestSuite(XMLJUnitResultFormatter.java:174)
>     [junit]     at
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.fireEndTestSuite(JUnitTestRunner.java:620)
>
> More detail can be found here:
>
> http://attachr.com/5697
>
> I've got JUnit 4.1 in my classpath.
>
> I suspect a classpath issue...would i be right?

Yes,
You are mixing ant1.6 and ant1.7.0 jars:
[junit] '/home/david/javastuff/eclipse-3.3m4/workspace/libs/activation/1.1/activation.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/antlr/2.7.5/antlr.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/apache/ant/contrib/1.0b2/ant-contrib.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/apache/derby/10.2.1.6/derby.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/apache/derby/10.2.1.6/derbyclient.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/apache/derby/10.2.1.6/derbynet.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/apache/derby/10.2.1.6/derbytools.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/asm-attrs/1.0/asm-attrs.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/asm/1.0/asm.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/cglib/2.1/cglib.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/commons-collections/2.1.1/commons-collections.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/commons-dbcp/1.2.1/commons-dbcp-1.2.1.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/commons-lang/2.1/commons-lang.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/commons-logging/1.0.4/commons-logging.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/commons-pool/1.3/commons-pool-1.3.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/connector/1.0/connector.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/dom4j/1.6/dom4j.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/ehcache/1.1/ehcache.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/enterprisedt/1.0/enterprisedt.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/hibernate/3.0/hibernate.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jai/1.1.2_01/jai_codec.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jai/1.1.2_01/jai_core.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jdom/1.0/jaxen-core.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jdom/1.0/jaxen-jdom.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jdom/1.0/jdom.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jdom/1.0/saxpath.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jdom/1.0/xerces.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jdom/1.0/xml-apis.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jfreechart/1.0.1/jcommon.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jfreechart/1.0.1/jfreechart.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jimi/1.0/jimi.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jrun/4.0-update6/jrun.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jta/1.0/jta.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jug-asl/2.0.0/jug-asl.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/junit/4.1/junit.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jwsdp/2.0/jaxws-api.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jwsdp/2.0/jaxws-rt.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jwsdp/2.0/jaxws-tools.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jwsdp/2.0/jsr181-api.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jwsdp/2.0/jsr250-api.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jwsdp/2.0/saaj-api.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/jwsdp/2.0/saaj-impl.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/log4j/1.2.13/log4j.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/mail/1.5/mail.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/msbase/1.0/msbase.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/mssqlserver/1.0/mssqlserver.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/msutil/1.0/msutil.jar:/home/david/javastuff/eclipse-3.3m4/workspace/libs/oreilly/1.0/oreilly.jar:/home/david/javastuff/eclipse-3.3m4/workspace/search/build:/home/david/javastuff/eclipse-3.3m4/workspace/search/conf/log4j4tests:/home/david/javastuff/eclipse-3.3m4/workspace/search/conf/hibernate:/home/david/javastuff/eclipse-3.3m4/workspace/search/conf/sql:/home/david/javastuff/apache-ant-1.7.0/lib/ant-launcher.jar:/home/david/javastuff/ant/lib/ant.jar:/home/david/javastuff/ant/lib/ant-junit.jar'
So you have both /home/david/javastuff/ant *and*
/home/david/javastuff/apache-ant-1.7.0/lib in your environment.

Peter

> --
> View this message in context: http://www.nabble.com/1.6.5--%3E-1.7.0-Unit-test-failures-tf2858724.html#a7986899
> Sent from the Ant - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org