Vincent,

Sorry about the false alarm. Actually I had known AND fixed that. It's in
the FAQ anyway. Here's the real error I was having when I performed the
steps below. Sorry about it.

javax.servlet.ServletException: Error instanciating class
[TestSampleServlet]
 at
org.apache.commons.cactus.server.ServletTestCaller.callTestMethod(ServletTes
tCaller.java:98)
 at
org.apache.commons.cactus.server.ServletTestCaller.doTest(ServletTestCaller.
java:173)
 at
org.apache.commons.cactus.server.ServletTestRedirector.doPost(ServletTestRed
irector.java:116)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
 at org.apache.tomcat.core.Handler.service(Handler.java:286)
 at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
 at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
 at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
 at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
 at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
 at java.lang.Thread.run(Thread.java:484)

----- Original Message -----
From: "Vincent Massol" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 04, 2001 4:22 PM
Subject: Re: [cactus] Help with Cactus


>
> ----- Original Message -----
> From: "Kelvin Tan" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, May 04, 2001 8:51 AM
> Subject: Re: [cactus] Help with Cactus
>
>
> > Vincent,
> >
> > No luck with that. I believe (IMHO) I've tried most of the combinations.
> > Here is what I tried:
> >
> > 1. Adding a jar with the tester and tested classes to classpath. Nope
> > 2. Adding the tester and tested classes to classpath. Nope
> > 3. Adding a jar with tester and tested classes to /tomcat/lib. Nope
> > 4. Adding the tester and tested classes to {javaroot}/jre/lib/ext. Nope
> > 5. Adding a jar with tester and tested classes to
> {javaroot}/jre/lib/ext.Yep
> >
>
> Kelvin, here is the list of files you need to have in your client
classpath
> (extracted from the http://jakarta.apache.org/commons/cactus/servlets.html
> page) :
>
> -your Cactus test classes,
> -the Cactus jar,
> -the Servlet API jar. This is needed because the ServletTestCase and
> JspTestCase classes use server objects.
> -the cactus.properties Cactus configuration file,
> -the JUnit jar,
>
> I have also modified the cactus web site (right now) and put more
> explanation on the installation page (which was missing the fact that the
> cactus.properties file need to be in the CLASSPATH).
>
> > I didn't try the sample application with Ant coz I don't have it
> installed.
> > Instead, I did it the "manual" way. However, I'm using the SampleServlet
> and
> > TestSampleServlet classes as is. Could there be any steps that the Ant
> build
> > step performed that I didn't? I'll check it out.
> >
> > Summary of errors
> > There were 12 errors:
> > 1) testReadServletOutputStream(TestSampleServlet)
> > java.lang.ExceptionInInitializerError:
java.util.MissingResourceException:
> > Can't
> >  find bundle for base name cactus, locale en_US
> >         at
java.util.ResourceBundle.throwMissingResourceException(Unknown
> > Source
>
> This means that the cactus.properties file is *not* in the CLASSPATH.
Check
> http://jakarta.apache.org/commons/cactus/configuration.html
>
> [snip]
>
>

Reply via email to