Hi Chris, > -----Original Message----- > From: Chris Huisman [mailto:[EMAIL PROTECTED] > Sent: mercredi 28 juillet 2004 00:58 > To: [EMAIL PROTECTED] > Subject: problem with cactifywar > > Hello, > > When using Eclipse 3.0, ant 1.6.1 and cactus 1.6.1 I get the following > error when trying to use the cactifywar task: > > D:\chuisman\dev\egon\build-cactus.xml:21: taskdef A class needed by > class org.apache.cactus.integration.ant.CactifyWarTask cannot be found: > org/apache/commons/logging/Log
Yes, you need the commons logging jar in your CP. As well as lots of other jars (please check the cactus web site for the full list). > > I also get the following warning in eclipse: A class needed by class > org.apache.Cactus.integration.ant.CactusTask cannot be found: > junit/framework/TestListener Same as above. You also need JUnit in your CP. > > I have created an ant task in eclips > (Window->preferences->ant->Runtime-Tasks) called cactus.ejb which points > to the CactusTask class. If I remove this task I get the following error: > > taskdef A class needed by class > org.apache.cactus.integration.ant.CactusTask cannot be found: > junit/framework/TestListener Yes, in Eclipse this step is required. You simply need to add all the jars against this taskdef. Same as you would do in Ant code. > > Same one as the warning in eclipse. > > If i run it from the command line with the verbose option set I get the > following error: > > [ant] Entering D:\chuisman\dev\egon\build-cactus.xml... > Build sequence for target `ear.cactify' is [ear.cactify] > Complete build sequence is [ear.cactify, test, ] > > ear.cactify: > [ant] Exiting D:\chuisman\dev\egon\build-cactus.xml. > [antcall] Exiting D:\chuisman\dev\egon\build.xml. > [antcall] Exiting D:\chuisman\dev\egon\build.xml. > > BUILD FAILED > D:\chuisman\dev\egon\build.xml:74: Following error occured while > executing this > line > D:\chuisman\dev\egon\build.xml:474: Following error occured while > executing this > line > D:\chuisman\dev\egon\build.xml:481: Following error occured while > executing this > line > D:\chuisman\dev\egon\build-cactus.xml:32: Could not create task or type > of type: > cactifywar. > > Ant could not find the task or a class this task relies upon. [snip] > > The ant code is: > > <target name="ear.cactify" > > <taskdef resource="cactus.tasks"> > <classpath> > <pathelement location="${cactus.ant.jar}"/> > <pathelement location="${cactus.jar}"/> > <pathelement location="${logging.jar}"/> > <pathelement location="${aspectjrt.jar}"/> > <pathelement location="${httpclient.jar}"/> > </classpath> > </taskdef> > [snip] > > Can anyone tell me what I am doing wrong? > Probably some properties are not pointing to the right location where the jars are located. Run Ant in debug mode (-debug) and check the output. > Does it have something to do with: > http://www.mail-archive.com/[EMAIL PROTECTED]/msg05506.html > > and if so can you explain how to set up ant task more completely? See the doc on the Cactus web site + check the examples you get when you download Cactus. They should work fine and you can work from there. Thanks -Vincent PS: In the end I took some of my holiday tome to answer you quickly... ;-) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]