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: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>