Hi,

 

Since I started working with Maven few days ago, I have come a long way
- however not all the way yet ;) To be honest - without the help of the
mailing lists I would have probably given up, although Maven is a great
tool.

 

The problem: when executing Maven test goal, the process fails
generating an ClassNotFoundException.

I assume a wrong path was specified "somewhere" in my configuration
files. Any hints at all would be greatly appreciated!

 

A screen dump and a part of the project.xml are included below.

 

Regards Dinko

 

Screen dump:

maven test

|  \/  |__ _Apache__ ___

| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~

|_|  |_\__,_|\_/\___|_||_|  v. 1.0

 

build:start:

 

java:prepare-filesystem:

 

java:compile:

    [echo] Compiling to C:\teleca\eclipse\JSecurePoll/target/classes

    [javac] Compiling 10 source files to
C:\teleca\eclipse\JSecurePoll\target\cl

asses

BUILD SUCCESSFUL

Total time: 8 seconds

Finished at: Tue Sep 14 09:35:48 CEST 2004

 

C:\teleca\eclipse\JSecurePoll>maven test

 __  __

|  \/  |__ _Apache__ ___

| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~

|_|  |_\__,_|\_/\___|_||_|  v. 1.0

 

build:start:

 

java:prepare-filesystem:

 

java:compile:

    [echo] Compiling to C:\teleca\eclipse\JSecurePoll/target/classes

    [javac] Compiling 10 source files to
C:\teleca\eclipse\JSecurePoll\target\cl

asses

 

java:jar-resources:

 

test:prepare-filesystem:

 

test:test-resources:

 

test:compile:

    [javac] Compiling 10 source files to
C:\teleca\eclipse\JSecurePoll\target\cl

asses

 

test:test:

    [junit] Running RadiusExceptionTest

    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec

    [junit] Testsuite: RadiusExceptionTest

    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec

    [junit]

    [junit] Null Test:  Caused an ERROR

    [junit] RadiusExceptionTest

    [junit] java.lang.ClassNotFoundException: RadiusExceptionTest

    [junit]     at
java.net.URLClassLoader$1.run(URLClassLoader.java:199)

    [junit]     at java.security.AccessController.doPrivileged(Native
Method)

    [junit]     at
java.net.URLClassLoader.findClass(URLClassLoader.java:187)

    [junit]     at java.lang.ClassLoader.loadClass(ClassLoader.java:289)

    [junit]     at java.lang.ClassLoader.loadClass(ClassLoader.java:235)

    [junit]     at java.lang.ClassLoader.loadClass(ClassLoader.java:235)

    [junit]     at
org.apache.commons.jelly.tags.ant.AntTag.doTag(AntTag.java:23

2)

    [junit]     at
org.apache.commons.jelly.impl.TagScript.run(TagScript.java:27

9)

    [junit]     at
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.jav

a:135)

    [junit]     at
org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.jav

a:233)

    [junit]     at
org.apache.commons.jelly.tags.core.IfTag.doTag(IfTag.java:88)

 

    [junit]     at
org.apache.commons.jelly.impl.TagScript.run(TagScript.java:27

9)

    [junit]     at
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.jav

a:135)

    [junit]     at
org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(Mav

enGoalTag.java:79)

    [junit]     at
org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalActio

n.performAction(MavenGoalTag.java:110)

    [junit]     at com.werken.werkz.Goal.fire(Goal.java:639)

    [junit]     at com.werken.werkz.Goal.attain(Goal.java:575)

    [junit]     at com.werken.werkz.Goal.attainPrecursors(Goal.java:488)

    [junit]     at com.werken.werkz.Goal.attain(Goal.java:573)

    [junit]     at
com.werken.werkz.WerkzProject.attainGoal(WerkzProject.java:19

3)

    [junit]     at
org.apache.maven.plugin.PluginManager.attainGoals(PluginManag

er.java:634)

    [junit]     at
org.apache.maven.MavenSession.attainGoals(MavenSession.java:2

66)

    [junit]     at org.apache.maven.cli.App.doMain(App.java:486)

    [junit]     at org.apache.maven.cli.App.main(App.java:1215)

    [junit]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)

    [junit]     at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces

sorImpl.java:39)

    [junit]     at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet

hodAccessorImpl.java:25)

    [junit]     at com.werken.forehead.Forehead.run(Forehead.java:551)

    [junit]     at com.werken.forehead.Forehead.main(Forehead.java:581)

 

 

-----------------------------

In my project.xml:

<package>jsecurepoll</package>

 

...... (this part of the file is left out)

 

<sourceDirectory>jsecurepoll</sourceDirectory>

    <unitTestSourceDirectory>jsecurepoll</unitTestSourceDirectory>

 

    <unitTest>

      <includes>

        <include>**/*Test.java</include>

      </includes>

    </unitTest>

 

    <integrationUnitTestSourceDirectory/>

    <integrationUnitTest/>

    <aspectSourceDirectory/>

 

 

Reply via email to