Hi Ady,

I think the problem might be that you have forgotten to specify the
package of your test class (unless it is in the default package).

So instead of writing :

http://localhost:8080/testApp/ServletTestRunner?suite=SomeclassCommandTe
stSuite

you should write:

http://localhost:8080/testApp/ServletTestRunner?suite=your.package.Somec
lassCommandTestSuite

-Vincent

> -----Original Message-----
> From: Ady Das-O'Toole [mailto:[EMAIL PROTECTED]]
> Sent: 23 September 2002 20:53
> To: [EMAIL PROTECTED]
> Subject: Re:TestSuite Class not found problem -
JBuilder5/Tomcat/Cactus
> 
> I get the following error when I attempt to run a unit test suite
> " Failed to load test suite [SomeclassCommandTestSuite], Reason is
[Class
> not found "SomeclassCommandTestSuite"} "
> 
> - I have the following jars in my classpath
> aspectjrt
> cactus
> commons-logging
> junit
> 
> - My web.xml file has the required servlet settings
>  <servlet>
>     <servlet-name>ServletTestRunner</servlet-name>
>     <servlet-
>
class>org.apache.cactus.server.runner.ServletTestRunner</servlet-class>
>   </servlet>
> ...
> <servlet-mapping>
>     <servlet-name>ServletRedirector</servlet-name>
>     <url-pattern>/ServletRedirector</url-pattern>
>   </servlet-mapping>
> 
> - and my test classes are under web-inf/classes/Someclass
> 
> But running the following servlet always produced the
ClassNotFoundError
> :" Failed to load test suite [SomeclassCommandTestSuite], Reason is
[Class
> not found "SomeclassCommandTestSuite"} "
> 
>
http://localhost:8080/testApp/ServletTestRunner?suite=SomeclassCommandTe
st
> Suite
> 
> I reckon it's to do with the classpath of my testsuite not being read
by
> the server.
> 
> Any suggestons on a fix for this will be much appreciated.
> 
> Ady Das O'Toole
> Viant - Boston
> 
> 


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to