Return-Path: list-help: list-unsubscribe: List-Post: List-Id: Mailing-List: contact cactus-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list cactus-user@jakarta.apache.org Received: (qmail 24933 invoked by uid 99); 29 Jul 2004 17:43:17 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [213.41.78.206] (HELO smtp-ft3.fr.colt.net) (213.41.78.206) by apache.org (qpsmtpd/0.27.1) with ESMTP; Thu, 29 Jul 2004 10:43:16 -0700 Received: from vma (host.244.109.41.213.rev.coltfrance.com [213.41.109.244]) by smtp-ft3.fr.colt.net with ESMTP id i6THgs101068 for ; Thu, 29 Jul 2004 19:43:00 +0200 Message-Id: <200407291743.i6THgs101068@smtp-ft3.fr.colt.net> From: "Vincent Massol" To: "'Cactus Users List'" Subject: RE: problem with cactifywar Date: Thu, 29 Jul 2004 19:42:33 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 In-Reply-To: <4106DDF5.5060604@taylor.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Thread-Index: AcR0LSXQAPRGTSn0TguxrgavyvBPhQBZb+cg X-Virus-Checked: Checked Hi Chris, > -----Original Message----- > From: Chris Huisman [mailto:chuisman@taylor.com] > Sent: mercredi 28 juillet 2004 00:58 > To: cactus-user@jakarta.apache.org > 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: > > > > > > > > > > > > [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/cactus-user@jakarta.apache.org/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... ;-)