Hi, I have tried doing taskdef for each of the class, <taskdef name="..." class=".....> but the problem does not disappear.
Veny -----Original Message----- From: jacques [mailto:[EMAIL PROTECTED] Sent: Sunday, August 24, 2003 5:22 AM To: Cactus Users List Subject: Re: Problem with org.apache.cactus.integration.ant.CactusTask Hi there I had a similar problem (custom tasks could not be found) and suspect it has something to do with the classloading in ant. I solved it by defining the tasks in the cactus.tasks (in the cactus-ant.jar, I presume) as seperate taskdefs in the build.xml, ie. instead of having... <taskdef resource="cactus.tasks"> <classpath> <pathelement.... use <taskdef name="..." class=".....> for each task defined in cactus.tasks. It looks like an ant problem, not a cactus problem. Ciao Jacques --- [EMAIL PROTECTED] wrote: > Hi, I am having some problems with cactus. I am > using jakarta-cactus-13-1.5- > beta1 version > > All I want to do is to use cactifywar to create my > test war and test it using > my browser. In order to do so, I created a taskdef > in my build file: > > <taskdef resource="cactus.tasks"> > <classpath> > <pathelement > location="${basedir}/bookstore-lib/cactus-1.5-beta1.jar"/> > <pathelement > location="${basedir}/bookstore-lib/cactus-ant-1.5-beta1.jar"/> > <pathelement > location="${basedir}/bookstore-lib/commons-httpclient- > 1.5.3.jar"/> > <pathelement > location="${basedir}/bookstore-lib/commons-logging-1.0.3.jar"/> > <pathelement > location="${basedir}/bookstore-lib/aspectjrt-1.0.6.jar"/> > </classpath> > </taskdef> > > But my build fails with the following error message: > > " class > org.apache.cactus.integration.ant.CactusTask cannot > be found " > > Previously, I had problems with eclipse plugin. I > used to get errors: "class > org.apache.cactus.integration.ant.CactifyWarTask > cannot be > found " > > Since both of these errors are regarding '...ant.', > it makes me think there may > be something wrong with my cactus dist file. When I > downloaded cactus, I did > not verify it. I also do not include > cactus.properties file in my classpath. As > I understand cactus.properties is mostly used with > RunServerTests task. > > Any ideas? > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > __________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. http://search.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]