----- Original Message -----
From: "Jim Cheesman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 25, 2001 12:46 PM
Subject: Re: FileNotFoundException: ServletRedirector
> At 06:43 PM 24/07/01, you wrote:
> >Hi Jim,
> >
> >Hey, you are scaring me, all 3 of you saying that you're having problems
> >with Cactus ! :-)
> >So I tested it on my machine. I tested with the following confs:
> >
> >- win 2K
> >- junit 3.7
> >- tomcat4.0b5 and tomcat4.0b6
> >- cactus 1.1 downloaded from the web site
> >- jdk 1.3
> >
> >... and it works like a charm ... I have used the sample as provided,
using
> >the provided Ant script.
> >
> >So it may be that you all have a problem in your classpath or in the war
> >that you use.
> >Could you :
> >1/ Tell me what you have in your war in term of jars and classes
>
>
> Not a war - it's expanded.
> In WEB-INF/lib:
> commons-cactus.jar
> commons-cactus-ant.jar
> xerces.jar
> outputs.jar (which contains my classes etc.)
>
I think I have an idea why it is not working ... :-)
In your war (whether it is expanded or not) you need to have the following
jars (see http://jakarta.apache.org/commons/cactus/installation.html, step
3 - I know the doc is not clear on this subject and 99.99% of the problems
with cactus are with the classpath so I really ought to improve the doc and
write the auto config tool I mentionned) :
- your classes under test
- your test classes
- commons-cactus.jar
- junit.jar (this is what is missing I think and thus the servlet redirector
cannot instanciate your test class probably)
you don't need commons-cactus-ant.jar for the server side classpath (only
for the client side and only if you're using Ant).
What I need to figure out is why the error message is so unexplicit ! We
need to improve it. I'll try to reproduce it by removing junit.jar from my
classpath and improve the error message ...
Tell me if it works ...
[snip]
Thanks
-Vincent