jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Markus Joschko" <joc...@phreaker.net>
Subject AW: Where to find org.apache.cactus.unit.TestAll ?
Date Thu, 15 Aug 2002 16:22:53 GMT
I put junit-3.7.jar delivered with cactus in my $ANT_HOME/lib. Elsewhere the
junit task wouldn't run....

-----Urspr√ľngliche Nachricht-----
Von: Vincent Massol [mailto:vmassol@octo.com]
Gesendet: Donnerstag, 15. August 2002 16:44
An: 'Cactus Users List'
Betreff: RE: Where to find org.apache.cactus.unit.TestAll ?


Markus,

You need junit.jar in your ANT_HOME/lib directory.

-Vincent

> -----Original Message-----
> From: markus.joschko@web.de [mailto:markus.joschko@web.de]
> Sent: 15 August 2002 15:09
> To: cactus-user@jakarta.apache.org
> Subject: Where to find org.apache.cactus.unit.TestAll ?
>
> Hi,
> I hope that's one of the easier questions for you. I'm new to cactus
and
> tried to test a sample servlet with the ant junit task (ant1.4). I
didn't
> use a provided sampleconfiguration because my web container is jetty
build
> in into jboss. During my test following error occurs:
>
> test:
>     [junit] Running org.apache.cactus.unit.TestAll
>     [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
>     [junit] Testsuite: org.apache.cactus.unit.TestAll
>     [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
>     [junit]
>     [junit]     Caused an ERROR
>     [junit] org.apache.cactus.unit.TestAll
>     [junit] java.lang.ClassNotFoundException:
> org.apache.cactus.unit.TestAll
>     [junit]     at
java.net.URLClassLoader$1.run(URLClassLoader.java:198)
>     [junit]     at java.security.AccessController.doPrivileged(Native
> Method)
>     [junit]     at
> java.net.URLClassLoader.findClass(URLClassLoader.java:186)
>     [junit]     at
java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>     [junit]     at
> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
>     [junit]     at
java.lang.ClassLoader.loadClass(ClassLoader.java:262)
>     [junit]     at
> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:322)
>     [junit]     at java.lang.Class.forName0(Native Method)
>     [junit]     at java.lang.Class.forName(Class.java:130)
>     [junit]     at
>
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.<init>(JUni
tT
> es
> tRunner.java:171)
>     [junit]     at
>
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.<init>(JUni
tT
> es
> tRunner.java:156)
>     [junit]     at
>
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitT
es
> tR
> unner.java:407)
>     [junit]
>
> BUILD FAILED
>
> OK, no problem. I think it's a typical classpath problem and so I
tried to
> find the jar in which the class is included (because I thought that I
have
> included every delivered jar file) ..... but I can't find anyone.
Maybe
> I'm
> blind or to dump. Can you please tell me the jar in which the class is
> included?
>
> Thanks,
>  Markus
>
> P.S.: That's my junit task:test:
>
>  <target name="test">
>         <junit printsummary="yes" haltonfailure="yes"
haltonerror="yes"
>             fork="yes">
>
>             <classpath>
>                 <!-- Cactus.propertie and log_client.properties need
to be
> in
>                      the classpath -->
>                 <pathelement
> location="/home/markus/downloads/jakarta-cactus-13-
> 1.4b1/test/cactus.propert
> ies"/>
>                 <pathelement
> location="/home/markus/downloads/jakarta-cactus-13-1.4b1/test/WEB-
> INF/classe
> s"/>
>                 <pathelement
> location="/home/markus/downloads/jakarta-cactus-13-1.4b1/lib"/>
>
>           <!-- <fileset
>
dir="/home/markus/downloads/jakarta-cactus-13-1.4b1/test/WEB-INF/classes
">
> 		     		<include name="**/*"/>
> 		 		</fileset>
>
> 	 		    <fileset
dir="/home/markus/downloads/jakarta-cactus-
> 13-1.4b1/lib">
> 		     		<include name="**/*.jar"/>
> 		 		</fileset>-->
>
>                 <path refid="project.class.path"/>
>             </classpath>
>
>             <formatter type="plain" usefile="false"/>
>
>             <!-- Note: The unit tests must be run first. See
>                  org.apache.cactus.unit.TestAll for details -->
>             <test name="org.apache.cactus.unit.TestAll"/>
>             <test name="org.apache.cactus.sample.TestAll"/>
>
>         </junit>
>
>     </target>
>
>
>
>
> --
> To unsubscribe, e-mail:   <mailto:cactus-user-
> unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:cactus-user-
> help@jakarta.apache.org>



--
To unsubscribe, e-mail:
<mailto:cactus-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:cactus-user-help@jakarta.apache.org>



--
To unsubscribe, e-mail:   <mailto:cactus-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:cactus-user-help@jakarta.apache.org>


Mime
View raw message