Hi, Can you try using it the same way as it is defined in the cactus sample (which you have downloaded as part of the Cactus distribution - it's in samples/servlet):
<path id="cactus.classpath"> <pathelement location="${servlet.jar}"/> <pathelement location="${aspectjrt.jar}"/> <pathelement location="${cactus.jar}"/> <pathelement location="${cactus.ant.jar}"/> <pathelement location="${commons.httpclient.jar}"/> <pathelement location="${commons.logging.jar}"/> <pathelement location="${junit.jar}"/> </path> <taskdef resource="cactus.tasks" classpathref="cactus.classpath"/> Thanks -Vincent > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: 11 February 2004 04:01 > To: [EMAIL PROTECTED] > Subject: Problem with org.apache.cactus.integration.ant.CactusTask > > Hi, > > I am having some problem with Cactus and Ant. When I try to use the task > <cactus> I have an arror. With the <cactifywar> I don't have any > problem... > > This is my build-cactus.xml: > .... > <path id="cactus.lib.path"> > <pathelement location="${cactus.lib.dir}/cactus-1.5.jar"/> > <pathelement location="${cactus.lib.dir}/cactus-ant-1.5.jar"/> > <pathelement location="${cactus.lib.dir}/j2ee-1.3.jar"/> > <pathelement location="${cactus.lib.dir}/servletapi-2.3.jar"/> > <pathelement location="${cactus.lib.dir}/aspectjrt-1.1.1.jar"/> > <pathelement location="${cactus.lib.dir}/commons-logging- > 1.0.3.jar"/> > <pathelement location=" > ${cactus.lib.dir}/commons-httpclient-2.0-rc2.jar"/> > <pathelement location="${cactus.lib.dir}/junit-3.8.1.jar"/> > <pathelement location="${cactus.lib.dir}/httpunit-1.5.3.jar"/> > <pathelement location="${cactus.lib.dir}/nekohtml-0.7.4.jar"/> > </path> > .... > <taskdef name="cactifywar" classname= > "org.apache.cactus.integration.ant.CactifyWarTask" classpathref= > "cactus.lib.path"/> > <taskdef name="runservertests" classname= > "org.apache.cactus.integration.ant.RunServerTestsTask" classpathref= > "cactus.lib.path"/> > <taskdef name="webxmlmerge" classname= > "org.apache.cactus.integration.ant.WebXmlMergeTask" classpathref= > "cactus.lib.path"/> > <taskdef name="cactus" classname= > "org.apache.cactus.integration.ant.CactusTask" classpathref= > "cactus.lib.path"/> > > > And I have this: > [taskdef] BUILD FAILED: > file:D:/PROJETS/Aorai/dev/build/build-cactus.xml:464: taskdef class > org.apache.cactus.integration.ant.CactusTask cannot be found > > > - If I try to use the cactus.tasks, I have the same problem: cannot found > the CactusTask. > > - I'm working with Eclipse 2.1.2 (under windows), jdk 1.3.1 and Ant > 1.5.3-1. > > Any ideas? > > Thank you. > > > > > --------------------------------------------------------------------- > 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]