jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vincent Massol" <vmas...@pivolis.com>
Subject RE: Beginner's question
Date Thu, 21 Aug 2003 20:31:22 GMT


> -----Original Message-----
> From: qqasim@csd.abdn.ac.uk [mailto:qqasim@csd.abdn.ac.uk]
> Sent: 21 August 2003 18:12
> To: cactus-user@jakarta.apache.org
> Subject: Beginner's question
> 
> Hi
> I have 2 questions.
> 
> (1) My 1st question is regarding Eclipse integration plugin
>    When I run my test using 'Run As' 'Cactus Test' in eclipse I get
the
> following error:
> 
> " taskdef class org.apache.cactus.integration.ant.CactifyWarTask
cannot be
> found "
> 
> Any suggestion how to solve this error.

The Eclipse plugin is still experimental and should currently be used at
your own risk! :-) That said it should work better than this...

Are you using the latest nightly build version? I remember seeing this
error but that was a long time ago and I thought we had fixed it.

> 
> (2) My 2nd question is regarding running EJB tests.
> 
>  In the cactus documentations there is an example of EJB test. I have
> adapted
> the example to one of my session bean. I have included all the .jar
files
> and
> my classes in the WEB-INF.
> 
> In my web.xml I have:
> <servlet>
>     <servlet-name>ServletRedirector</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>
> 
> My question is how do I test my classes using a browser. Do I use the
> following
> url:
> 
> http://server:port/mywebapp/ServletTestRunner?suite=com.store.BeanTest

yep

> 
> Do I need to include ServletTestRunner in my web.xml

yep

-Vincent


Mime
View raw message