You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Matt Campbell <ma...@gmail.com> on 2006/05/30 16:08:52 UTC
Maven 1.0.2 Junit problem
When running maven test goal, i receive the following errors.
Has anyone had this problem or know how to solve this problem.
The tests work fine when ran from ant 1.6.5.
> build:start:
> console:
> console:help:
> java:prepare-filesystem:
> java:compile:
> [echo] Compiling to build/classes
> java:jar-resources:
> test:prepare-filesystem:
> test:test-resources:
> test:compile:
> [javac] Compiling 3 source files to
> C:\source\workspace\Infrastructure\build\test-classes
> test:test:
> [junit] Running AllTest
> [junit] java.lang.NoClassDefFoundError:
> org/apache/tools/ant/util/TeeOutputStream
> [junit] Exception in thread "main"
> [junit] [ERROR] TEST AllTest FAILED
> [junit] Running ApplicationLevelDelegateTest
> [junit] java.lang.NoClassDefFoundError:
> org/apache/tools/ant/util/TeeOutputStream
> [junit] Exception in thread "main"
> [junit] [ERROR] TEST ApplicationLevelDelegateTest FAILED
> [junit] Running ApplicationUserInfoDelegateTest
> [junit] java.lang.NoClassDefFoundError:
> org/apache/tools/ant/util/TeeOutputStream
> [junit] Exception in thread "main"
> [junit] [ERROR] TEST ApplicationUserInfoDelegateTest FAILED
> *org.apache.commons.jelly.JellyTagException*: C:\data\dev\java\api\*maven*
> -1.0.2\cache\maven-test-plugin-1.6.2\plugin.jelly:181:54: <fail> There
> were test failures.
>
the test-reports .txt output says
> Testsuite: ApplicationLevelDelegateTest
>
> Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
>
> Null Test: Caused an ERROR
>
> ApplicationLevelDelegateTest
>
> java.lang.ClassNotFoundException: ApplicationLevelDelegateTest
>
> at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
>
> at java.security.AccessController.doPrivileged(Native Method)
>
> at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
>
> at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
>
> at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
>
> at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
>
> at org.apache.commons.jelly.tags.ant.AntTag.doTag(AntTag.java:185)
>
> at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
>
> at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
>
> at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
>
> at org.apache.commons.jelly.tags.core.IfTag.doTag(IfTag.java:88)
>
> at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
>
> at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
>
> at org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(
> MavenGoalTag.java:79)
>
> at
> org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction
> (MavenGoalTag.java:110)
>
> at com.werken.werkz.Goal.fire(Goal.java:639)
>
> at com.werken.werkz.Goal.attain(Goal.java:575)
>
> at com.werken.werkz.Goal.attainPrecursors(Goal.java:488)
>
> at com.werken.werkz.Goal.attain(Goal.java:573)
>
> at com.werken.werkz.WerkzProject.attainGoal(WerkzProject.java:193)
>
> at org.apache.maven.jelly.tags.werkz.MavenAttainGoalTag.doTag(
> MavenAttainGoalTag.java:127)
>
> at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
>
> at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
>
> at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
>
> at org.apache.commons.jelly.tags.core.ForEachTag.doTag(ForEachTag.java
> :145)
>
> at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
>
> at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
>
> at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
>
> at org.apache.commons.jelly.tags.core.CatchTag.doTag(CatchTag.java:90)
>
> at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
>
> at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
>
> at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
>
> at org.apache.commons.jelly.tags.core.OtherwiseTag.doTag(OtherwiseTag.java
> :87)
>
> at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
>
> at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
>
> at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
>
> at org.apache.commons.jelly.tags.core.ChooseTag.doTag(ChooseTag.java:84)
>
> at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
>
> at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
>
> at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
>
> at org.apache.commons.jelly.tags.core.WhileTag.doTag(WhileTag.java:108)
>
> at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
>
> at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
>
> at org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(
> MavenGoalTag.java:79)
>
> at
> org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction
> (MavenGoalTag.java:110)
>
> at com.werken.werkz.Goal.fire(Goal.java:639)
>
> at com.werken.werkz.Goal.attain(Goal.java:575)
>
> at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java
> :671)
>
> at org.apache.maven.MavenSession.attainGoals(MavenSession.java:263)
>
> at org.apache.maven.cli.App.doMain(App.java:488)
>
> at org.apache.maven.cli.App.main(App.java:1239)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:39)
>
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:25)
>
> at com.werken.forehead.Forehead.run(Forehead.java:551)
>
> at com.werken.forehead.Forehead.main(Forehead.java:581)
>
Re: Maven 1.0.2 Junit problem
Posted by Lukas Theussl <lt...@apache.org>.
Hmm, sorry, it seems like the class
org/apache/tools/ant/util/TeeOutputStream is only available in ant 1.6.
Maven 1.0.2 uses ant 1.5.3 so I guess that won't work for you. Any
chance you can try a 1.1-beta? [1]
Cheers,
-Lukas
[1] http://people.apache.org/~aheritier/maven/1.X/snapshots/
Matt Campbell wrote:
> which version of ant optional should i be using. The most recent
> version in
> ibibio is 1.5
>
> On 5/30/06, Lukas Theussl <lt...@apache.org> wrote:
>
>>
>> You need to add ant-optional to your dependencies.
>>
>> HTH,
>> -Lukas
>>
>> Matt Campbell wrote:
>> > When running maven test goal, i receive the following errors.
>> > Has anyone had this problem or know how to solve this problem.
>> > The tests work fine when ran from ant 1.6.5.
>> >
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Maven 1.0.2 Junit problem
Posted by Matt Campbell <ma...@gmail.com>.
which version of ant optional should i be using. The most recent version in
ibibio is 1.5
On 5/30/06, Lukas Theussl <lt...@apache.org> wrote:
>
> You need to add ant-optional to your dependencies.
>
> HTH,
> -Lukas
>
> Matt Campbell wrote:
> > When running maven test goal, i receive the following errors.
> > Has anyone had this problem or know how to solve this problem.
> > The tests work fine when ran from ant 1.6.5.
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
Re: Maven 1.0.2 Junit problem
Posted by Lukas Theussl <lt...@apache.org>.
You need to add ant-optional to your dependencies.
HTH,
-Lukas
Matt Campbell wrote:
> When running maven test goal, i receive the following errors.
> Has anyone had this problem or know how to solve this problem.
> The tests work fine when ran from ant 1.6.5.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org