|
From: Achleitner T. <ac...@ec...> - 2003-07-28 06:33:11
|
do you have junit.jar in ants lib folder? thomas -----Urspr=FCngliche Nachricht----- Von: Colin Sampaleanu [mailto:col...@ex...] Gesendet: Montag, 28. Juli 2003 04:14 An: spr...@li... Betreff: [Springframework-developer] Weird issue trying to run unit tests I've build Spring now a number of time over the last couple of weeks,=20 but tonight was the first time I actually tried to run the unit tests. I am getting an incredibly puzzling error from ant saying it can't=20 create the junit task ---- BUILD FAILED file:E:/src/open/springframework/main/build.xml:238: Could not create=20 task or ty pe of type: junit. Ant could not find the task or a class this task relies upon. ----- I spent 15 minutes trying to figure this out, but have no clues as to=20 what is going on. I am using the same ant settings as I've used in=20 several dozen of my own projects and a number of open source projects,=20 ie I have a batch file which adds ant to the path and sets ANT_HOME. I though perhaps the ant.jar (which seems to be ant 1.5.3 recompiled=20 some time this year) in the lib/ant dir was interfering somehow, but=20 removing it makes no difference. Adding 'fork=3D"true") to the junit = call=20 makes no difference. Anybody seen something like this before? ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01 /01 _______________________________________________ Springframework-developer mailing list Spr...@li... https://lists.sourceforge.net/lists/listinfo/springframework-developer |
|
From: Rod J. <rod...@in...> - 2003-07-28 07:26:55
|
or possibly optional.jar. That's normally included but needs to be in ant/lib too. ----- Original Message ----- From: "Achleitner Thomas" <ac...@ec...> To: "Colin Sampaleanu" <col...@ex...>; <spr...@li...> Sent: Monday, July 28, 2003 7:31 AM Subject: AW: [Springframework-developer] Weird issue trying to run unit tests do you have junit.jar in ants lib folder? thomas -----Ursprüngliche Nachricht----- Von: Colin Sampaleanu [mailto:col...@ex...] Gesendet: Montag, 28. Juli 2003 04:14 An: spr...@li... Betreff: [Springframework-developer] Weird issue trying to run unit tests I've build Spring now a number of time over the last couple of weeks, but tonight was the first time I actually tried to run the unit tests. I am getting an incredibly puzzling error from ant saying it can't create the junit task ---- BUILD FAILED file:E:/src/open/springframework/main/build.xml:238: Could not create task or ty pe of type: junit. Ant could not find the task or a class this task relies upon. ----- I spent 15 minutes trying to figure this out, but have no clues as to what is going on. I am using the same ant settings as I've used in several dozen of my own projects and a number of open source projects, ie I have a batch file which adds ant to the path and sets ANT_HOME. I though perhaps the ant.jar (which seems to be ant 1.5.3 recompiled some time this year) in the lib/ant dir was interfering somehow, but removing it makes no difference. Adding 'fork="true") to the junit call makes no difference. Anybody seen something like this before? ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01 /01 _______________________________________________ Springframework-developer mailing list Spr...@li... https://lists.sourceforge.net/lists/listinfo/springframework-developer ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ Springframework-developer mailing list Spr...@li... https://lists.sourceforge.net/lists/listinfo/springframework-developer |
|
From: Colin S. <col...@ex...> - 2003-07-28 13:07:53
|
I can run the tests at work in what is essentially the same environment,
so I will just have to investigate the problem at home a bit more. As I
said, I've run junit through ant there many times in many different
projects, so it's very puzzling.
btw, I don't actually use the UI layer in Spring at all, but in case
anybody is interested and this is not a known issue, at work when I run
the unit tests I do get the following test failure:
Testsuite: com.interface21.web.servlet.tags.TagTestSuite
Tests run: 12, Failures: 1, Errors: 0, Time elapsed: 0.609 sec
Testcase: testHtmlEscapeTag took 0.531 sec
Testcase: testHtmlEscapeTagWithContextParamTrue took 0 sec
Testcase: testHtmlEscapeTagWithContextParamFalse took 0.016 sec
Testcase: testBindErrorsTagWithErrors took 0.015 sec
Testcase: testBindErrorsTagWithoutErrors took 0 sec
Testcase: testBindErrorsTagWithoutBean took 0 sec
Testcase: testBindTagWithoutErrors took 0.016 sec
Testcase: testBindTagWithGlobalErrors took 0 sec
Testcase: testBindTagWithFieldErrors took 0.016 sec
Testcase: testPropertyExposing took 0 sec
Testcase: testBindTagWithoutBean took 0 sec
Testcase: testMessageTagWithCode1 took 0 sec
FAILED
Correct message
junit.framework.AssertionFailedError: Correct message
at
com.interface21.web.servlet.tags.TagTestSuite.testMessageTagWithCode1(TagTestSuite.java:259)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
Testcase: testMessageTagWithCode1
Rod Johnson wrote:
>or possibly optional.jar. That's normally included but needs to be in
>ant/lib too.
>
>----- Original Message -----
>From: "Achleitner Thomas" <ac...@ec...>
>To: "Colin Sampaleanu" <col...@ex...>;
><spr...@li...>
>Sent: Monday, July 28, 2003 7:31 AM
>Subject: AW: [Springframework-developer] Weird issue trying to run unit
>tests
>
>
>do you have junit.jar in ants lib folder?
>
>thomas
>
>-----Ursprüngliche Nachricht-----
>Von: Colin Sampaleanu [mailto:col...@ex...]
>Gesendet: Montag, 28. Juli 2003 04:14
>An: spr...@li...
>Betreff: [Springframework-developer] Weird issue trying to run unit
>tests
>
>
>I've build Spring now a number of time over the last couple of weeks,
>but tonight was the first time I actually tried to run the unit tests.
>
>I am getting an incredibly puzzling error from ant saying it can't
>create the junit task
>----
>BUILD FAILED
>file:E:/src/open/springframework/main/build.xml:238: Could not create
>task or ty
>pe of type: junit.
>
>Ant could not find the task or a class this task relies upon.
>-----
>
>I spent 15 minutes trying to figure this out, but have no clues as to
>what is going on. I am using the same ant settings as I've used in
>several dozen of my own projects and a number of open source projects,
>ie I have a batch file which adds ant to the path and sets ANT_HOME.
>
>I though perhaps the ant.jar (which seems to be ant 1.5.3 recompiled
>some time this year) in the lib/ant dir was interfering somehow, but
>removing it makes no difference. Adding 'fork="true") to the junit call
>makes no difference.
>
>Anybody seen something like this before?
>
>
|
|
From: Colin S. <col...@ex...> - 2003-07-29 02:57:04
|
Ugh, my goofup. Sorry to waste everyone's time on this. It turns out that at home when I reinstalled some stuff last month, including ant, I neglected to drop junit.jar into ant's lib folder. Of course if optional.jar is there then junit.jar needs to be there so the same classloader sees it. And I never caught on there was a problem since most of my work projects have a build.bat convenience file, which itself adds junit.jar on the classpath before invoking ant... Rod Johnson wrote: >or possibly optional.jar. That's normally included but needs to be in >ant/lib too. > >----- Original Message ----- >From: "Achleitner Thomas" <ac...@ec...> >To: "Colin Sampaleanu" <col...@ex...>; ><spr...@li...> >Sent: Monday, July 28, 2003 7:31 AM >Subject: AW: [Springframework-developer] Weird issue trying to run unit >tests > > >do you have junit.jar in ants lib folder? > >thomas > >-----Ursprüngliche Nachricht----- >Von: Colin Sampaleanu [mailto:col...@ex...] >Gesendet: Montag, 28. Juli 2003 04:14 >An: spr...@li... >Betreff: [Springframework-developer] Weird issue trying to run unit >tests > > >I've build Spring now a number of time over the last couple of weeks, >but tonight was the first time I actually tried to run the unit tests. > >I am getting an incredibly puzzling error from ant saying it can't >create the junit task >---- >BUILD FAILED >file:E:/src/open/springframework/main/build.xml:238: Could not create >task or ty >pe of type: junit. > >Ant could not find the task or a class this task relies upon. >----- > >I spent 15 minutes trying to figure this out, but have no clues as to >what is going on. I am using the same ant settings as I've used in >several dozen of my own projects and a number of open source projects, >ie I have a batch file which adds ant to the path and sets ANT_HOME. > >I though perhaps the ant.jar (which seems to be ant 1.5.3 recompiled >some time this year) in the lib/ant dir was interfering somehow, but >removing it makes no difference. Adding 'fork="true") to the junit call >makes no difference. > >Anybody seen something like this before? > > |