You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-user@jakarta.apache.org by Markus Joschko <ma...@web.de> on 2002/08/15 16:09:23 UTC
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>(JUnitTes
tRunner.java:171)
[junit] at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.<init>(JUnitTes
tRunner.java:156)
[junit] at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestR
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: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
AW: AW: AW: Where to find org.apache.cactus.unit.TestAll ?
Posted by Markus Joschko <jo...@phreaker.net>.
Nothing has changed with 1.5...
-----Ursprungliche Nachricht-----
Von: Markus Joschko [mailto:jocsch@phreaker.net]
Gesendet: Freitag, 16. August 2002 13:26
An: Cactus Users List; Alexander Lepekhine
Betreff: AW: AW: AW: Where to find org.apache.cactus.unit.TestAll ?
TestSampleServlet is in the WEB-INF/classes directory. If I call the
TestSampleServlet with the help of the WEB GUI it finds the class and the
testcase within (testSaveToSessionOK).
I think it's a problem with the client. Think I will download the 1.5 ANT
and try it with this version.
-----Ursprungliche Nachricht-----
Von: Alexander Lepekhine [mailto:papun@mail.ru]
Gesendet: Freitag, 16. August 2002 12:56
An: Cactus Users List
Betreff: Re: AW: AW: Where to find org.apache.cactus.unit.TestAll ?
Well, that was right.
Now let it find TestSampleServlet class.
Classpath in <junit> is CLIENT classpath and
it seems to be right.
So, you should improve server classpath.
Server classpath includes WEB-INF/classes and all jars
in WEB-INF/lib by default.
If you put your TestSampleServlet in one of that rigth place,
include it in war file and deploy it to app-server,
everything should work.
If it works for me, why it will not work for you?
As cactus doc says, test cases must be on the server along
with the client (see Config Howto).
Alexander
-----Original Message-----
From: "Markus Joschko" <jo...@phreaker.net>
To: "Cactus Users List" <ca...@jakarta.apache.org>
Date: Fri, 16 Aug 2002 12:29:58 +0200
Subject: AW: AW: Where to find org.apache.cactus.unit.TestAll ?
>
> Hi Alexander,
> I forgot to mention that I tried this already. Nothing changes but the
error
> message:
>
> [junit] TestSampleServlet
> [junit] java.lang.ClassNotFoundException: TestSampleServlet
>
> Seems like my classpath is corrupted or? Is there a possibility to have a
> look at the classpath the task uses?
>
>
> -----Ursprungliche Nachricht-----
> Von: Alexander Lepekhine [mailto:papun@mail.ru]
> Gesendet: Freitag, 16. August 2002 12:16
> An: Cactus Users List
> Betreff: Re: AW: Where to find org.apache.cactus.unit.TestAll ?
>
>
> As you see it can't find TestSampleServlet.TestAll
> and not a TestSampleServlet. So you should write a class in <junit>
> <test> tag, not a method. Your text must be:
> > <test name="TestSampleServlet"/>
> > </junit>
> Class TestSampleServlet should contain a test cases (suite), all of them
> will
> be done.
> Alexander
>
> -----Original Message-----
> From: "Markus Joschko" <jo...@phreaker.net>
> To: "Cactus Users List" <ca...@jakarta.apache.org>
> Date: Fri, 16 Aug 2002 11:37:27 +0200
> Subject: AW: Where to find org.apache.cactus.unit.TestAll ?
>
> >
> > Hi,
> > still trying to get a test to work. Here is my corrected ant task and
the
> > output. Why can't it find the TestSampleServlet class? It's the one to
be
> > downloaded in "quickstart". And I'm 100% sure it's under the given
> > pathelement location name.
> >
> > <junit printsummary="yes" haltonfailure="yes" haltonerror="yes"
> > fork="yes">
> > <classpath>
> > <pathelement
> >
>
location="/home/markus/downloads/jakarta-cactus-13-1.4b1/test/cactus.propert
> > ies"/>
> >
> > --here--> <pathelement
> >
>
location="/home/markus/downloads/jakarta-cactus-13-1.4b1/test/WEB-INF/classe
> > s/TestSampleServlet.class"/>
> >
> > <fileset
> >
dir="/home/markus/downloads/jakarta-cactus-13-1.4b1/test/WEB-INF/classes">
> > <include name="**/*.class"/>
> > </fileset>
> >
> > <path refid="project.class.path"/>
> > </classpath>
> >
> > <formatter type="plain" usefile="false"/>
> >
> > <test name="TestSampleServlet.TestAll"/>
> > </junit>
> >
> > Output is:
> >
> > test:
> > [junit] Running TestSampleServlet.TestAll
> > [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
> > [junit] Testsuite: TestSampleServlet.TestAll
> > [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
> > [junit]
> > [junit] Caused an ERROR
> > [junit] TestSampleServlet.TestAll
> > [junit] java.lang.ClassNotFoundException: TestSampleServlet.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>(JUnitTes
> > tRunner.java:171)
> > [junit] at
> >
>
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.<init>(JUnitTes
> > tRunner.java:156)
> > [junit] at
> >
>
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestR
> > unner.java:407)
> >
> > Why?
> > Thx,
> > MArkus
> >
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
>
--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
AW: AW: AW: Where to find org.apache.cactus.unit.TestAll ?
Posted by Markus Joschko <jo...@phreaker.net>.
TestSampleServlet is in the WEB-INF/classes directory. If I call the
TestSampleServlet with the help of the WEB GUI it finds the class and the
testcase within (testSaveToSessionOK).
I think it's a problem with the client. Think I will download the 1.5 ANT
and try it with this version.
-----Ursprungliche Nachricht-----
Von: Alexander Lepekhine [mailto:papun@mail.ru]
Gesendet: Freitag, 16. August 2002 12:56
An: Cactus Users List
Betreff: Re: AW: AW: Where to find org.apache.cactus.unit.TestAll ?
Well, that was right.
Now let it find TestSampleServlet class.
Classpath in <junit> is CLIENT classpath and
it seems to be right.
So, you should improve server classpath.
Server classpath includes WEB-INF/classes and all jars
in WEB-INF/lib by default.
If you put your TestSampleServlet in one of that rigth place,
include it in war file and deploy it to app-server,
everything should work.
If it works for me, why it will not work for you?
As cactus doc says, test cases must be on the server along
with the client (see Config Howto).
Alexander
-----Original Message-----
From: "Markus Joschko" <jo...@phreaker.net>
To: "Cactus Users List" <ca...@jakarta.apache.org>
Date: Fri, 16 Aug 2002 12:29:58 +0200
Subject: AW: AW: Where to find org.apache.cactus.unit.TestAll ?
>
> Hi Alexander,
> I forgot to mention that I tried this already. Nothing changes but the
error
> message:
>
> [junit] TestSampleServlet
> [junit] java.lang.ClassNotFoundException: TestSampleServlet
>
> Seems like my classpath is corrupted or? Is there a possibility to have a
> look at the classpath the task uses?
>
>
> -----Ursprungliche Nachricht-----
> Von: Alexander Lepekhine [mailto:papun@mail.ru]
> Gesendet: Freitag, 16. August 2002 12:16
> An: Cactus Users List
> Betreff: Re: AW: Where to find org.apache.cactus.unit.TestAll ?
>
>
> As you see it can't find TestSampleServlet.TestAll
> and not a TestSampleServlet. So you should write a class in <junit>
> <test> tag, not a method. Your text must be:
> > <test name="TestSampleServlet"/>
> > </junit>
> Class TestSampleServlet should contain a test cases (suite), all of them
> will
> be done.
> Alexander
>
> -----Original Message-----
> From: "Markus Joschko" <jo...@phreaker.net>
> To: "Cactus Users List" <ca...@jakarta.apache.org>
> Date: Fri, 16 Aug 2002 11:37:27 +0200
> Subject: AW: Where to find org.apache.cactus.unit.TestAll ?
>
> >
> > Hi,
> > still trying to get a test to work. Here is my corrected ant task and
the
> > output. Why can't it find the TestSampleServlet class? It's the one to
be
> > downloaded in "quickstart". And I'm 100% sure it's under the given
> > pathelement location name.
> >
> > <junit printsummary="yes" haltonfailure="yes" haltonerror="yes"
> > fork="yes">
> > <classpath>
> > <pathelement
> >
>
location="/home/markus/downloads/jakarta-cactus-13-1.4b1/test/cactus.propert
> > ies"/>
> >
> > --here--> <pathelement
> >
>
location="/home/markus/downloads/jakarta-cactus-13-1.4b1/test/WEB-INF/classe
> > s/TestSampleServlet.class"/>
> >
> > <fileset
> >
dir="/home/markus/downloads/jakarta-cactus-13-1.4b1/test/WEB-INF/classes">
> > <include name="**/*.class"/>
> > </fileset>
> >
> > <path refid="project.class.path"/>
> > </classpath>
> >
> > <formatter type="plain" usefile="false"/>
> >
> > <test name="TestSampleServlet.TestAll"/>
> > </junit>
> >
> > Output is:
> >
> > test:
> > [junit] Running TestSampleServlet.TestAll
> > [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
> > [junit] Testsuite: TestSampleServlet.TestAll
> > [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
> > [junit]
> > [junit] Caused an ERROR
> > [junit] TestSampleServlet.TestAll
> > [junit] java.lang.ClassNotFoundException: TestSampleServlet.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>(JUnitTes
> > tRunner.java:171)
> > [junit] at
> >
>
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.<init>(JUnitTes
> > tRunner.java:156)
> > [junit] at
> >
>
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestR
> > unner.java:407)
> >
> > Why?
> > Thx,
> > MArkus
> >
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
>
--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
AW: AW: AW: Where to find org.apache.cactus.unit.TestAll ?
Posted by Markus Joschko <jo...@phreaker.net>.
Found the error! As I thougt: The classpath was not sufficient. To late I
really realized that I need to specify the path to the class not the class
itself inside the classpath.
So <pathelement location="/opt"/> is all that was needed. Sorry for keeping
you busy with this. But your answers has helped me understanding
cactus/junit and finding the error.
Hope I will have more luck in understanding the rest ;-)
CU,
MArkus
-----Ursprungliche Nachricht-----
Von: Alexander Lepekhine [mailto:papun@mail.ru]
Gesendet: Freitag, 16. August 2002 12:56
An: Cactus Users List
Betreff: Re: AW: AW: Where to find org.apache.cactus.unit.TestAll ?
Well, that was right.
Now let it find TestSampleServlet class.
Classpath in <junit> is CLIENT classpath and
it seems to be right.
So, you should improve server classpath.
Server classpath includes WEB-INF/classes and all jars
in WEB-INF/lib by default.
If you put your TestSampleServlet in one of that rigth place,
include it in war file and deploy it to app-server,
everything should work.
If it works for me, why it will not work for you?
As cactus doc says, test cases must be on the server along
with the client (see Config Howto).
Alexander
-----Original Message-----
From: "Markus Joschko" <jo...@phreaker.net>
To: "Cactus Users List" <ca...@jakarta.apache.org>
Date: Fri, 16 Aug 2002 12:29:58 +0200
Subject: AW: AW: Where to find org.apache.cactus.unit.TestAll ?
>
> Hi Alexander,
> I forgot to mention that I tried this already. Nothing changes but the
error
> message:
>
> [junit] TestSampleServlet
> [junit] java.lang.ClassNotFoundException: TestSampleServlet
>
> Seems like my classpath is corrupted or? Is there a possibility to have a
> look at the classpath the task uses?
>
>
> -----Ursprungliche Nachricht-----
> Von: Alexander Lepekhine [mailto:papun@mail.ru]
> Gesendet: Freitag, 16. August 2002 12:16
> An: Cactus Users List
> Betreff: Re: AW: Where to find org.apache.cactus.unit.TestAll ?
>
>
> As you see it can't find TestSampleServlet.TestAll
> and not a TestSampleServlet. So you should write a class in <junit>
> <test> tag, not a method. Your text must be:
> > <test name="TestSampleServlet"/>
> > </junit>
> Class TestSampleServlet should contain a test cases (suite), all of them
> will
> be done.
> Alexander
>
> -----Original Message-----
> From: "Markus Joschko" <jo...@phreaker.net>
> To: "Cactus Users List" <ca...@jakarta.apache.org>
> Date: Fri, 16 Aug 2002 11:37:27 +0200
> Subject: AW: Where to find org.apache.cactus.unit.TestAll ?
>
> >
> > Hi,
> > still trying to get a test to work. Here is my corrected ant task and
the
> > output. Why can't it find the TestSampleServlet class? It's the one to
be
> > downloaded in "quickstart". And I'm 100% sure it's under the given
> > pathelement location name.
> >
> > <junit printsummary="yes" haltonfailure="yes" haltonerror="yes"
> > fork="yes">
> > <classpath>
> > <pathelement
> >
>
location="/home/markus/downloads/jakarta-cactus-13-1.4b1/test/cactus.propert
> > ies"/>
> >
> > --here--> <pathelement
> >
>
location="/home/markus/downloads/jakarta-cactus-13-1.4b1/test/WEB-INF/classe
> > s/TestSampleServlet.class"/>
> >
> > <fileset
> >
dir="/home/markus/downloads/jakarta-cactus-13-1.4b1/test/WEB-INF/classes">
> > <include name="**/*.class"/>
> > </fileset>
> >
> > <path refid="project.class.path"/>
> > </classpath>
> >
> > <formatter type="plain" usefile="false"/>
> >
> > <test name="TestSampleServlet.TestAll"/>
> > </junit>
> >
> > Output is:
> >
> > test:
> > [junit] Running TestSampleServlet.TestAll
> > [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
> > [junit] Testsuite: TestSampleServlet.TestAll
> > [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
> > [junit]
> > [junit] Caused an ERROR
> > [junit] TestSampleServlet.TestAll
> > [junit] java.lang.ClassNotFoundException: TestSampleServlet.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>(JUnitTes
> > tRunner.java:171)
> > [junit] at
> >
>
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.<init>(JUnitTes
> > tRunner.java:156)
> > [junit] at
> >
>
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestR
> > unner.java:407)
> >
> > Why?
> > Thx,
> > MArkus
> >
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
>
--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: AW: AW: Where to find org.apache.cactus.unit.TestAll ?
Posted by Alexander Lepekhine <pa...@mail.ru>.
Well, that was right.
Now let it find TestSampleServlet class.
Classpath in <junit> is CLIENT classpath and
it seems to be right.
So, you should improve server classpath.
Server classpath includes WEB-INF/classes and all jars
in WEB-INF/lib by default.
If you put your TestSampleServlet in one of that rigth place,
include it in war file and deploy it to app-server,
everything should work.
If it works for me, why it will not work for you?
As cactus doc says, test cases must be on the server along
with the client (see Config Howto).
Alexander
-----Original Message-----
From: "Markus Joschko" <jo...@phreaker.net>
To: "Cactus Users List" <ca...@jakarta.apache.org>
Date: Fri, 16 Aug 2002 12:29:58 +0200
Subject: AW: AW: Where to find org.apache.cactus.unit.TestAll ?
>
> Hi Alexander,
> I forgot to mention that I tried this already. Nothing changes but the error
> message:
>
> [junit] TestSampleServlet
> [junit] java.lang.ClassNotFoundException: TestSampleServlet
>
> Seems like my classpath is corrupted or? Is there a possibility to have a
> look at the classpath the task uses?
>
>
> -----Ursprungliche Nachricht-----
> Von: Alexander Lepekhine [mailto:papun@mail.ru]
> Gesendet: Freitag, 16. August 2002 12:16
> An: Cactus Users List
> Betreff: Re: AW: Where to find org.apache.cactus.unit.TestAll ?
>
>
> As you see it can't find TestSampleServlet.TestAll
> and not a TestSampleServlet. So you should write a class in <junit>
> <test> tag, not a method. Your text must be:
> > <test name="TestSampleServlet"/>
> > </junit>
> Class TestSampleServlet should contain a test cases (suite), all of them
> will
> be done.
> Alexander
>
> -----Original Message-----
> From: "Markus Joschko" <jo...@phreaker.net>
> To: "Cactus Users List" <ca...@jakarta.apache.org>
> Date: Fri, 16 Aug 2002 11:37:27 +0200
> Subject: AW: Where to find org.apache.cactus.unit.TestAll ?
>
> >
> > Hi,
> > still trying to get a test to work. Here is my corrected ant task and the
> > output. Why can't it find the TestSampleServlet class? It's the one to be
> > downloaded in "quickstart". And I'm 100% sure it's under the given
> > pathelement location name.
> >
> > <junit printsummary="yes" haltonfailure="yes" haltonerror="yes"
> > fork="yes">
> > <classpath>
> > <pathelement
> >
> location="/home/markus/downloads/jakarta-cactus-13-1.4b1/test/cactus.propert
> > ies"/>
> >
> > --here--> <pathelement
> >
> location="/home/markus/downloads/jakarta-cactus-13-1.4b1/test/WEB-INF/classe
> > s/TestSampleServlet.class"/>
> >
> > <fileset
> > dir="/home/markus/downloads/jakarta-cactus-13-1.4b1/test/WEB-INF/classes">
> > <include name="**/*.class"/>
> > </fileset>
> >
> > <path refid="project.class.path"/>
> > </classpath>
> >
> > <formatter type="plain" usefile="false"/>
> >
> > <test name="TestSampleServlet.TestAll"/>
> > </junit>
> >
> > Output is:
> >
> > test:
> > [junit] Running TestSampleServlet.TestAll
> > [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
> > [junit] Testsuite: TestSampleServlet.TestAll
> > [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
> > [junit]
> > [junit] Caused an ERROR
> > [junit] TestSampleServlet.TestAll
> > [junit] java.lang.ClassNotFoundException: TestSampleServlet.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>(JUnitTes
> > tRunner.java:171)
> > [junit] at
> >
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.<init>(JUnitTes
> > tRunner.java:156)
> > [junit] at
> >
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestR
> > unner.java:407)
> >
> > Why?
> > Thx,
> > MArkus
> >
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
>
>
> --
> To unsubscribe, e-mail: <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
AW: AW: Where to find org.apache.cactus.unit.TestAll ?
Posted by Markus Joschko <jo...@phreaker.net>.
Hi Alexander,
I forgot to mention that I tried this already. Nothing changes but the error
message:
[junit] TestSampleServlet
[junit] java.lang.ClassNotFoundException: TestSampleServlet
Seems like my classpath is corrupted or? Is there a possibility to have a
look at the classpath the task uses?
-----Ursprungliche Nachricht-----
Von: Alexander Lepekhine [mailto:papun@mail.ru]
Gesendet: Freitag, 16. August 2002 12:16
An: Cactus Users List
Betreff: Re: AW: Where to find org.apache.cactus.unit.TestAll ?
As you see it can't find TestSampleServlet.TestAll
and not a TestSampleServlet. So you should write a class in <junit>
<test> tag, not a method. Your text must be:
> <test name="TestSampleServlet"/>
> </junit>
Class TestSampleServlet should contain a test cases (suite), all of them
will
be done.
Alexander
-----Original Message-----
From: "Markus Joschko" <jo...@phreaker.net>
To: "Cactus Users List" <ca...@jakarta.apache.org>
Date: Fri, 16 Aug 2002 11:37:27 +0200
Subject: AW: Where to find org.apache.cactus.unit.TestAll ?
>
> Hi,
> still trying to get a test to work. Here is my corrected ant task and the
> output. Why can't it find the TestSampleServlet class? It's the one to be
> downloaded in "quickstart". And I'm 100% sure it's under the given
> pathelement location name.
>
> <junit printsummary="yes" haltonfailure="yes" haltonerror="yes"
> fork="yes">
> <classpath>
> <pathelement
>
location="/home/markus/downloads/jakarta-cactus-13-1.4b1/test/cactus.propert
> ies"/>
>
> --here--> <pathelement
>
location="/home/markus/downloads/jakarta-cactus-13-1.4b1/test/WEB-INF/classe
> s/TestSampleServlet.class"/>
>
> <fileset
> dir="/home/markus/downloads/jakarta-cactus-13-1.4b1/test/WEB-INF/classes">
> <include name="**/*.class"/>
> </fileset>
>
> <path refid="project.class.path"/>
> </classpath>
>
> <formatter type="plain" usefile="false"/>
>
> <test name="TestSampleServlet.TestAll"/>
> </junit>
>
> Output is:
>
> test:
> [junit] Running TestSampleServlet.TestAll
> [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
> [junit] Testsuite: TestSampleServlet.TestAll
> [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
> [junit]
> [junit] Caused an ERROR
> [junit] TestSampleServlet.TestAll
> [junit] java.lang.ClassNotFoundException: TestSampleServlet.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>(JUnitTes
> tRunner.java:171)
> [junit] at
>
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.<init>(JUnitTes
> tRunner.java:156)
> [junit] at
>
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestR
> unner.java:407)
>
> Why?
> Thx,
> MArkus
>
--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: AW: Where to find org.apache.cactus.unit.TestAll ?
Posted by Alexander Lepekhine <pa...@mail.ru>.
As you see it can't find TestSampleServlet.TestAll
and not a TestSampleServlet. So you should write a class in <junit>
<test> tag, not a method. Your text must be:
> <test name="TestSampleServlet"/>
> </junit>
Class TestSampleServlet should contain a test cases (suite), all of them will
be done.
Alexander
-----Original Message-----
From: "Markus Joschko" <jo...@phreaker.net>
To: "Cactus Users List" <ca...@jakarta.apache.org>
Date: Fri, 16 Aug 2002 11:37:27 +0200
Subject: AW: Where to find org.apache.cactus.unit.TestAll ?
>
> Hi,
> still trying to get a test to work. Here is my corrected ant task and the
> output. Why can't it find the TestSampleServlet class? It's the one to be
> downloaded in "quickstart". And I'm 100% sure it's under the given
> pathelement location name.
>
> <junit printsummary="yes" haltonfailure="yes" haltonerror="yes"
> fork="yes">
> <classpath>
> <pathelement
> location="/home/markus/downloads/jakarta-cactus-13-1.4b1/test/cactus.propert
> ies"/>
>
> --here--> <pathelement
> location="/home/markus/downloads/jakarta-cactus-13-1.4b1/test/WEB-INF/classe
> s/TestSampleServlet.class"/>
>
> <fileset
> dir="/home/markus/downloads/jakarta-cactus-13-1.4b1/test/WEB-INF/classes">
> <include name="**/*.class"/>
> </fileset>
>
> <path refid="project.class.path"/>
> </classpath>
>
> <formatter type="plain" usefile="false"/>
>
> <test name="TestSampleServlet.TestAll"/>
> </junit>
>
> Output is:
>
> test:
> [junit] Running TestSampleServlet.TestAll
> [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
> [junit] Testsuite: TestSampleServlet.TestAll
> [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
> [junit]
> [junit] Caused an ERROR
> [junit] TestSampleServlet.TestAll
> [junit] java.lang.ClassNotFoundException: TestSampleServlet.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>(JUnitTes
> tRunner.java:171)
> [junit] at
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.<init>(JUnitTes
> tRunner.java:156)
> [junit] at
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestR
> unner.java:407)
>
> Why?
> Thx,
> MArkus
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
AW: Where to find org.apache.cactus.unit.TestAll ?
Posted by Markus Joschko <jo...@phreaker.net>.
Hi,
still trying to get a test to work. Here is my corrected ant task and the
output. Why can't it find the TestSampleServlet class? It's the one to be
downloaded in "quickstart". And I'm 100% sure it's under the given
pathelement location name.
<junit printsummary="yes" haltonfailure="yes" haltonerror="yes"
fork="yes">
<classpath>
<pathelement
location="/home/markus/downloads/jakarta-cactus-13-1.4b1/test/cactus.propert
ies"/>
--here--> <pathelement
location="/home/markus/downloads/jakarta-cactus-13-1.4b1/test/WEB-INF/classe
s/TestSampleServlet.class"/>
<fileset
dir="/home/markus/downloads/jakarta-cactus-13-1.4b1/test/WEB-INF/classes">
<include name="**/*.class"/>
</fileset>
<path refid="project.class.path"/>
</classpath>
<formatter type="plain" usefile="false"/>
<test name="TestSampleServlet.TestAll"/>
</junit>
Output is:
test:
[junit] Running TestSampleServlet.TestAll
[junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
[junit] Testsuite: TestSampleServlet.TestAll
[junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
[junit]
[junit] Caused an ERROR
[junit] TestSampleServlet.TestAll
[junit] java.lang.ClassNotFoundException: TestSampleServlet.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>(JUnitTes
tRunner.java:171)
[junit] at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.<init>(JUnitTes
tRunner.java:156)
[junit] at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestR
unner.java:407)
Why?
Thx,
MArkus
-----Ursprüngliche Nachricht-----
Von: Vincent Massol [mailto:vmassol@octo.com]
Gesendet: Donnerstag, 15. August 2002 19:20
An: 'Cactus Users List'
Betreff: RE: Where to find org.apache.cactus.unit.TestAll ?
Hi Markus,
I think reading http://jakarta.apache.org/cactus/howto_config.html will
help. It explains clearly (I hope) how your classpath must look like.
JUnit does know anything about the container. Cactus does. JUnit is just
there to provide the TestRunner, Cactus does the rest.
Thanks
-Vincent
> -----Original Message-----
> From: Markus Joschko [mailto:jocsch@phreaker.net]
> Sent: 15 August 2002 18:23
> To: Cactus Users List
> Subject: AW: Where to find org.apache.cactus.unit.TestAll ?
>
> Hi Vincent,
> ok, I'm sorry for bothering you with the test value. I didn't know
that I
> have to provide the TestAll method. Reading the junit task doc could
have
> helped me :-(
> The mess with the <pathelement> is just because of the fast
> developing/trying and I wanted to be on the save side ;-) (my ant is a
> little bit rosty) I will fix it.
>
> But two questions are still there: Why shouldn't I pack the jars into
the
> classpath? I thougt the jars are neccessary for the client. Isn't the
> junit
> task the client?
>
> Second: How will junit know how to call the xx.TestAll inside the
> container?
> Which name would be the "suite" parameter for the ServletRedirector?
> Haven't
> found anything in the how-tos about that.
>
> Sorry for having such a poor understanding about the process. Hope I
will
> understand the whole process soon.
>
> Cu,
> MArkus
>
> -----Ursprüngliche Nachricht-----
> Von: Vincent Massol [mailto:vmassol@octo.com]
> Gesendet: Donnerstag, 15. August 2002 18:48
> An: 'Cactus Users List'
> Betreff: RE: Where to find org.apache.cactus.unit.TestAll ?
>
>
> Hi Markus,
>
> Yes, you're right. I read too fast the exception ... Ok, several
points,
> see below.
>
> > -----Original Message-----
> > From: Markus Joschko [mailto:jocsch@phreaker.net]
> > Sent: 15 August 2002 17:46
> > To: Cactus Users List
> > Subject: AW: Where to find org.apache.cactus.unit.TestAll ?
> >
> > Which <classpath> elements do you mean? The one of the junit task?
> > Shouldn't
> > this be more than sufficient ? But why should I look for the
> junit.jar?
> > There is the org.apache.cactus.unit.TestAll class not included ...
> >
>
> ??
>
> TestAll is to be provided by you ... Actually you dont even need one,
> it's up to you really. In any case, it has nothing to do with the
Cactus
> framework. Cactus Sample provides one but that's for its sample; it is
> not a feature of the core.
>
> > <junit printsummary="yes" haltonfailure="yes" haltonerror="yes"
> > fork="yes">
> >
> > <classpath>
> > <!-- Cactus.propertie and log_client.properties need
> to be
> > in
> > the classpath -->
> > <pathelement
> > location="/xxx/jakarta-cactus-13-1.4b1/test/cactus.properties"/>
>
> ??
>
> This is wrong. Putting a file in the classpath means putting the
> directory where it is located in the classpath or the file name *if*
it
> is a jar or zip.
>
> > <pathelement
> > location="/xxx/jakarta-cactus-13-1.4b1/test/WEB-INF/classes"/>
> > <pathelement
> location="/xxx/jakarta-cactus-13-1.4b1/lib"/>
>
> ??
>
> What's inside lib/ ? Jars ? If so, you should know that you need to
> explicitely put the jar name in the classpath ...
>
> > <pathelement
> > location="/xxx/jakarta-cactus-13-1.4b1/test/cactus.properties"/>
>
> Why do you add it twice ?
>
> > <pathelement
> location="{$ANT_HOME}/lib/junit-3.7.jar"/>
>
> I believe this is a typo. {$ANT_HOME) <--> ${ANT_HOME} ...
>
> >
> > <fileset dir="/xxx/jakarta-cactus-13-1.4b1/lib">
> > <include name="**/*.jar"/>
> > </fileset>
>
> ahhh. That's better ... But why do you put lib/ in the classpath ? It
is
> very unusual.
>
> >
> > <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"/>
>
> Are you running the Cactus samples ? If so, everything is ready and
> packages in the Cactus distribution you have downloaded.
>
> >
> > </junit>
> >
> > ??
>
> -Vincent
>
> >
> > -----Ursprüngliche Nachricht-----
> > Von: Vincent Massol [mailto:vmassol@octo.com]
> > Gesendet: Donnerstag, 15. August 2002 18:19
> > An: 'Cactus Users List'
> > Betreff: RE: Where to find org.apache.cactus.unit.TestAll ?
> >
> >
> > Ok. Second possibility then:
> >
> > Do you have junit.jar in your client side classpath (i.e. in the
> > <classpath> elements in your build.xml) ? I would bet that you use
> > 'fork="true"' for the <junit> task, right ? :-) If so, a new JVM a
> > started and thus you need to put junit.jar in your classpath.
> >
> > Cheers,
> > -Vincent
> >
> > > -----Original Message-----
> > > From: Markus Joschko [mailto:jocsch@phreaker.net]
> > > Sent: 15 August 2002 17:23
> > > To: Cactus Users List
> > > Subject: AW: Where to find org.apache.cactus.unit.TestAll ?
> > >
> > > 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:
> > > <ma...@jakarta.apache.org>
> > > For additional commands, e-mail:
> > > <ma...@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:
> > <ma...@jakarta.apache.org>
> > For additional commands, e-mail:
> > <ma...@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:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@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:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: Where to find org.apache.cactus.unit.TestAll ?
Posted by Vincent Massol <vm...@octo.com>.
Hi Markus,
I think reading http://jakarta.apache.org/cactus/howto_config.html will
help. It explains clearly (I hope) how your classpath must look like.
JUnit does know anything about the container. Cactus does. JUnit is just
there to provide the TestRunner, Cactus does the rest.
Thanks
-Vincent
> -----Original Message-----
> From: Markus Joschko [mailto:jocsch@phreaker.net]
> Sent: 15 August 2002 18:23
> To: Cactus Users List
> Subject: AW: Where to find org.apache.cactus.unit.TestAll ?
>
> Hi Vincent,
> ok, I'm sorry for bothering you with the test value. I didn't know
that I
> have to provide the TestAll method. Reading the junit task doc could
have
> helped me :-(
> The mess with the <pathelement> is just because of the fast
> developing/trying and I wanted to be on the save side ;-) (my ant is a
> little bit rosty) I will fix it.
>
> But two questions are still there: Why shouldn't I pack the jars into
the
> classpath? I thougt the jars are neccessary for the client. Isn't the
> junit
> task the client?
>
> Second: How will junit know how to call the xx.TestAll inside the
> container?
> Which name would be the "suite" parameter for the ServletRedirector?
> Haven't
> found anything in the how-tos about that.
>
> Sorry for having such a poor understanding about the process. Hope I
will
> understand the whole process soon.
>
> Cu,
> MArkus
>
> -----Ursprüngliche Nachricht-----
> Von: Vincent Massol [mailto:vmassol@octo.com]
> Gesendet: Donnerstag, 15. August 2002 18:48
> An: 'Cactus Users List'
> Betreff: RE: Where to find org.apache.cactus.unit.TestAll ?
>
>
> Hi Markus,
>
> Yes, you're right. I read too fast the exception ... Ok, several
points,
> see below.
>
> > -----Original Message-----
> > From: Markus Joschko [mailto:jocsch@phreaker.net]
> > Sent: 15 August 2002 17:46
> > To: Cactus Users List
> > Subject: AW: Where to find org.apache.cactus.unit.TestAll ?
> >
> > Which <classpath> elements do you mean? The one of the junit task?
> > Shouldn't
> > this be more than sufficient ? But why should I look for the
> junit.jar?
> > There is the org.apache.cactus.unit.TestAll class not included ...
> >
>
> ??
>
> TestAll is to be provided by you ... Actually you dont even need one,
> it's up to you really. In any case, it has nothing to do with the
Cactus
> framework. Cactus Sample provides one but that's for its sample; it is
> not a feature of the core.
>
> > <junit printsummary="yes" haltonfailure="yes" haltonerror="yes"
> > fork="yes">
> >
> > <classpath>
> > <!-- Cactus.propertie and log_client.properties need
> to be
> > in
> > the classpath -->
> > <pathelement
> > location="/xxx/jakarta-cactus-13-1.4b1/test/cactus.properties"/>
>
> ??
>
> This is wrong. Putting a file in the classpath means putting the
> directory where it is located in the classpath or the file name *if*
it
> is a jar or zip.
>
> > <pathelement
> > location="/xxx/jakarta-cactus-13-1.4b1/test/WEB-INF/classes"/>
> > <pathelement
> location="/xxx/jakarta-cactus-13-1.4b1/lib"/>
>
> ??
>
> What's inside lib/ ? Jars ? If so, you should know that you need to
> explicitely put the jar name in the classpath ...
>
> > <pathelement
> > location="/xxx/jakarta-cactus-13-1.4b1/test/cactus.properties"/>
>
> Why do you add it twice ?
>
> > <pathelement
> location="{$ANT_HOME}/lib/junit-3.7.jar"/>
>
> I believe this is a typo. {$ANT_HOME) <--> ${ANT_HOME} ...
>
> >
> > <fileset dir="/xxx/jakarta-cactus-13-1.4b1/lib">
> > <include name="**/*.jar"/>
> > </fileset>
>
> ahhh. That's better ... But why do you put lib/ in the classpath ? It
is
> very unusual.
>
> >
> > <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"/>
>
> Are you running the Cactus samples ? If so, everything is ready and
> packages in the Cactus distribution you have downloaded.
>
> >
> > </junit>
> >
> > ??
>
> -Vincent
>
> >
> > -----Ursprüngliche Nachricht-----
> > Von: Vincent Massol [mailto:vmassol@octo.com]
> > Gesendet: Donnerstag, 15. August 2002 18:19
> > An: 'Cactus Users List'
> > Betreff: RE: Where to find org.apache.cactus.unit.TestAll ?
> >
> >
> > Ok. Second possibility then:
> >
> > Do you have junit.jar in your client side classpath (i.e. in the
> > <classpath> elements in your build.xml) ? I would bet that you use
> > 'fork="true"' for the <junit> task, right ? :-) If so, a new JVM a
> > started and thus you need to put junit.jar in your classpath.
> >
> > Cheers,
> > -Vincent
> >
> > > -----Original Message-----
> > > From: Markus Joschko [mailto:jocsch@phreaker.net]
> > > Sent: 15 August 2002 17:23
> > > To: Cactus Users List
> > > Subject: AW: Where to find org.apache.cactus.unit.TestAll ?
> > >
> > > 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:
> > > <ma...@jakarta.apache.org>
> > > For additional commands, e-mail:
> > > <ma...@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:
> > <ma...@jakarta.apache.org>
> > For additional commands, e-mail:
> > <ma...@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:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@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: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
AW: Where to find org.apache.cactus.unit.TestAll ?
Posted by Markus Joschko <jo...@phreaker.net>.
Hi Vincent,
ok, I'm sorry for bothering you with the test value. I didn't know that I
have to provide the TestAll method. Reading the junit task doc could have
helped me :-(
The mess with the <pathelement> is just because of the fast
developing/trying and I wanted to be on the save side ;-) (my ant is a
little bit rosty) I will fix it.
But two questions are still there: Why shouldn't I pack the jars into the
classpath? I thougt the jars are neccessary for the client. Isn't the junit
task the client?
Second: How will junit know how to call the xx.TestAll inside the container?
Which name would be the "suite" parameter for the ServletRedirector? Haven't
found anything in the how-tos about that.
Sorry for having such a poor understanding about the process. Hope I will
understand the whole process soon.
Cu,
MArkus
-----Ursprüngliche Nachricht-----
Von: Vincent Massol [mailto:vmassol@octo.com]
Gesendet: Donnerstag, 15. August 2002 18:48
An: 'Cactus Users List'
Betreff: RE: Where to find org.apache.cactus.unit.TestAll ?
Hi Markus,
Yes, you're right. I read too fast the exception ... Ok, several points,
see below.
> -----Original Message-----
> From: Markus Joschko [mailto:jocsch@phreaker.net]
> Sent: 15 August 2002 17:46
> To: Cactus Users List
> Subject: AW: Where to find org.apache.cactus.unit.TestAll ?
>
> Which <classpath> elements do you mean? The one of the junit task?
> Shouldn't
> this be more than sufficient ? But why should I look for the
junit.jar?
> There is the org.apache.cactus.unit.TestAll class not included ...
>
??
TestAll is to be provided by you ... Actually you dont even need one,
it's up to you really. In any case, it has nothing to do with the Cactus
framework. Cactus Sample provides one but that's for its sample; it is
not a feature of the core.
> <junit printsummary="yes" haltonfailure="yes" haltonerror="yes"
> fork="yes">
>
> <classpath>
> <!-- Cactus.propertie and log_client.properties need
to be
> in
> the classpath -->
> <pathelement
> location="/xxx/jakarta-cactus-13-1.4b1/test/cactus.properties"/>
??
This is wrong. Putting a file in the classpath means putting the
directory where it is located in the classpath or the file name *if* it
is a jar or zip.
> <pathelement
> location="/xxx/jakarta-cactus-13-1.4b1/test/WEB-INF/classes"/>
> <pathelement
location="/xxx/jakarta-cactus-13-1.4b1/lib"/>
??
What's inside lib/ ? Jars ? If so, you should know that you need to
explicitely put the jar name in the classpath ...
> <pathelement
> location="/xxx/jakarta-cactus-13-1.4b1/test/cactus.properties"/>
Why do you add it twice ?
> <pathelement
location="{$ANT_HOME}/lib/junit-3.7.jar"/>
I believe this is a typo. {$ANT_HOME) <--> ${ANT_HOME} ...
>
> <fileset dir="/xxx/jakarta-cactus-13-1.4b1/lib">
> <include name="**/*.jar"/>
> </fileset>
ahhh. That's better ... But why do you put lib/ in the classpath ? It is
very unusual.
>
> <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"/>
Are you running the Cactus samples ? If so, everything is ready and
packages in the Cactus distribution you have downloaded.
>
> </junit>
>
> ??
-Vincent
>
> -----Ursprüngliche Nachricht-----
> Von: Vincent Massol [mailto:vmassol@octo.com]
> Gesendet: Donnerstag, 15. August 2002 18:19
> An: 'Cactus Users List'
> Betreff: RE: Where to find org.apache.cactus.unit.TestAll ?
>
>
> Ok. Second possibility then:
>
> Do you have junit.jar in your client side classpath (i.e. in the
> <classpath> elements in your build.xml) ? I would bet that you use
> 'fork="true"' for the <junit> task, right ? :-) If so, a new JVM a
> started and thus you need to put junit.jar in your classpath.
>
> Cheers,
> -Vincent
>
> > -----Original Message-----
> > From: Markus Joschko [mailto:jocsch@phreaker.net]
> > Sent: 15 August 2002 17:23
> > To: Cactus Users List
> > Subject: AW: Where to find org.apache.cactus.unit.TestAll ?
> >
> > 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:
> > <ma...@jakarta.apache.org>
> > For additional commands, e-mail:
> > <ma...@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:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@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:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: Where to find org.apache.cactus.unit.TestAll ?
Posted by Vincent Massol <vm...@octo.com>.
Hi Markus,
Yes, you're right. I read too fast the exception ... Ok, several points,
see below.
> -----Original Message-----
> From: Markus Joschko [mailto:jocsch@phreaker.net]
> Sent: 15 August 2002 17:46
> To: Cactus Users List
> Subject: AW: Where to find org.apache.cactus.unit.TestAll ?
>
> Which <classpath> elements do you mean? The one of the junit task?
> Shouldn't
> this be more than sufficient ? But why should I look for the
junit.jar?
> There is the org.apache.cactus.unit.TestAll class not included ...
>
??
TestAll is to be provided by you ... Actually you dont even need one,
it's up to you really. In any case, it has nothing to do with the Cactus
framework. Cactus Sample provides one but that's for its sample; it is
not a feature of the core.
> <junit printsummary="yes" haltonfailure="yes" haltonerror="yes"
> fork="yes">
>
> <classpath>
> <!-- Cactus.propertie and log_client.properties need
to be
> in
> the classpath -->
> <pathelement
> location="/xxx/jakarta-cactus-13-1.4b1/test/cactus.properties"/>
??
This is wrong. Putting a file in the classpath means putting the
directory where it is located in the classpath or the file name *if* it
is a jar or zip.
> <pathelement
> location="/xxx/jakarta-cactus-13-1.4b1/test/WEB-INF/classes"/>
> <pathelement
location="/xxx/jakarta-cactus-13-1.4b1/lib"/>
??
What's inside lib/ ? Jars ? If so, you should know that you need to
explicitely put the jar name in the classpath ...
> <pathelement
> location="/xxx/jakarta-cactus-13-1.4b1/test/cactus.properties"/>
Why do you add it twice ?
> <pathelement
location="{$ANT_HOME}/lib/junit-3.7.jar"/>
I believe this is a typo. {$ANT_HOME) <--> ${ANT_HOME} ...
>
> <fileset dir="/xxx/jakarta-cactus-13-1.4b1/lib">
> <include name="**/*.jar"/>
> </fileset>
ahhh. That's better ... But why do you put lib/ in the classpath ? It is
very unusual.
>
> <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"/>
Are you running the Cactus samples ? If so, everything is ready and
packages in the Cactus distribution you have downloaded.
>
> </junit>
>
> ??
-Vincent
>
> -----Ursprüngliche Nachricht-----
> Von: Vincent Massol [mailto:vmassol@octo.com]
> Gesendet: Donnerstag, 15. August 2002 18:19
> An: 'Cactus Users List'
> Betreff: RE: Where to find org.apache.cactus.unit.TestAll ?
>
>
> Ok. Second possibility then:
>
> Do you have junit.jar in your client side classpath (i.e. in the
> <classpath> elements in your build.xml) ? I would bet that you use
> 'fork="true"' for the <junit> task, right ? :-) If so, a new JVM a
> started and thus you need to put junit.jar in your classpath.
>
> Cheers,
> -Vincent
>
> > -----Original Message-----
> > From: Markus Joschko [mailto:jocsch@phreaker.net]
> > Sent: 15 August 2002 17:23
> > To: Cactus Users List
> > Subject: AW: Where to find org.apache.cactus.unit.TestAll ?
> >
> > 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:
> > <ma...@jakarta.apache.org>
> > For additional commands, e-mail:
> > <ma...@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:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@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: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
AW: Where to find org.apache.cactus.unit.TestAll ?
Posted by Markus Joschko <jo...@phreaker.net>.
Which <classpath> elements do you mean? The one of the junit task? Shouldn't
this be more than sufficient ? But why should I look for the junit.jar?
There is the org.apache.cactus.unit.TestAll class not included ...
<junit printsummary="yes" haltonfailure="yes" haltonerror="yes"
fork="yes">
<classpath>
<!-- Cactus.propertie and log_client.properties need to be
in
the classpath -->
<pathelement
location="/xxx/jakarta-cactus-13-1.4b1/test/cactus.properties"/>
<pathelement
location="/xxx/jakarta-cactus-13-1.4b1/test/WEB-INF/classes"/>
<pathelement location="/xxx/jakarta-cactus-13-1.4b1/lib"/>
<pathelement
location="/xxx/jakarta-cactus-13-1.4b1/test/cactus.properties"/>
<pathelement location="{$ANT_HOME}/lib/junit-3.7.jar"/>
<fileset dir="/xxx/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>
??
-----Ursprüngliche Nachricht-----
Von: Vincent Massol [mailto:vmassol@octo.com]
Gesendet: Donnerstag, 15. August 2002 18:19
An: 'Cactus Users List'
Betreff: RE: Where to find org.apache.cactus.unit.TestAll ?
Ok. Second possibility then:
Do you have junit.jar in your client side classpath (i.e. in the
<classpath> elements in your build.xml) ? I would bet that you use
'fork="true"' for the <junit> task, right ? :-) If so, a new JVM a
started and thus you need to put junit.jar in your classpath.
Cheers,
-Vincent
> -----Original Message-----
> From: Markus Joschko [mailto:jocsch@phreaker.net]
> Sent: 15 August 2002 17:23
> To: Cactus Users List
> Subject: AW: Where to find org.apache.cactus.unit.TestAll ?
>
> 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:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@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:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: Where to find org.apache.cactus.unit.TestAll ?
Posted by Vincent Massol <vm...@octo.com>.
Ok. Second possibility then:
Do you have junit.jar in your client side classpath (i.e. in the
<classpath> elements in your build.xml) ? I would bet that you use
'fork="true"' for the <junit> task, right ? :-) If so, a new JVM a
started and thus you need to put junit.jar in your classpath.
Cheers,
-Vincent
> -----Original Message-----
> From: Markus Joschko [mailto:jocsch@phreaker.net]
> Sent: 15 August 2002 17:23
> To: Cactus Users List
> Subject: AW: Where to find org.apache.cactus.unit.TestAll ?
>
> 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:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@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: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
AW: Where to find org.apache.cactus.unit.TestAll ?
Posted by Markus Joschko <jo...@phreaker.net>.
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:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: Where to find org.apache.cactus.unit.TestAll ?
Posted by Vincent Massol <vm...@octo.com>.
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: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>