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 91667 invoked from network); 27 Jan 2004 12:01:36 -0000 Received: from unknown (HELO mail39.messagelabs.com) (193.109.254.243) by daedalus.apache.org with SMTP; 27 Jan 2004 12:01:36 -0000 X-VirusChecked: Checked X-Env-Sender: Paul.Green@ons.gsi.gov.uk X-Msg-Ref: server-23.tower-39.messagelabs.com!1075201272!473034 X-StarScan-Version: 5.1.15; banners=gsi.gov.uk,-,- Received: (qmail 32458 invoked from network); 27 Jan 2004 11:01:12 -0000 Received: from gateway102.gsi.gov.uk (HELO mail1.gsi.gov.uk) (212.137.57.41) by server-23.tower-39.messagelabs.com with SMTP; 27 Jan 2004 11:01:12 -0000 Received: from statbase.ons.gsi.net ([51.64.32.18] helo=cybergsi.ons.gsi.gov.uk) by mail1.gsi.gov.uk with smtp id 1AlQxz-0001nu-U0 for cactus-user@jakarta.apache.org; Tue, 27 Jan 2004 11:01:11 +0000 Subject: CactifyWar task calling non-existent method void org.apache.tools.ant.types.FileSet.setFile(java.io.File) To: cactus-user@jakarta.apache.org X-Mailer: Lotus Notes Release 5.0.8 June 18, 2001 Message-ID: From: "Paul Green" Date: Tue, 27 Jan 2004 11:01:05 +0000 X-MIMETrack: Serialize by Router on NEXTERNAL2/NEWPORT/ONS(5012HF514 | November 19, 2003) at 27/01/2004 11:01:04 MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi, I'm currently trying to use Ant to trigger Cactus to cactify a war file and then run tests on it. I've come across a problem with a call from Cactus to an object in Ant. the method "void org.apache.cactus.integration.ant.CactifyWarTask.addJspRedirector()" is trying to call "void org.apache.tools.ant.types.FileSet.setFile(java.io.File)" and a "java.lang.NoSuchMethodError" is being thrown. I'm using Cactus 1.5 downloaded a week ago, and Ant 1.5 compiled on 9 July 2002. I've downloaded and looked at the source for a later Ant 1.5 release, and the latest Ant 1.6 release, but the "setFile" method doesn't exist in "FileSet" within either of these. Can anyone shed any light on this matter? Stack trace: java.lang.NoSuchMethodError: void org.apache.tools.ant.types.FileSet.setFile(java.io.File) void org.apache.cactus.integration.ant.CactifyWarTask.addJspRedirector() CactifyWarTask.java:602 java.io.File org.apache.cactus.integration.ant.CactifyWarTask.cactifyWebXml(org.apache.cactus.integration.ant.deployment.WebXml) CactifyWarTask.java:663 void org.apache.cactus.integration.ant.CactifyWarTask.execute() CactifyWarTask.java:422 void org.apache.tools.ant.UnknownElement.execute() UnknownElement.java:166 void org.apache.tools.ant.Task.perform() Task.java:317 void org.apache.tools.ant.Target.execute() Target.java:309 void org.apache.tools.ant.Target.performTasks() Target.java:334 void org.apache.tools.ant.Project.executeTarget(java.lang.String) Project.java:1306 void org.apache.tools.ant.Project.executeTargets(java.util.Vector) Project.java:1250 void org.apache.tools.ant.Main.runBuild(java.lang.ClassLoader) Main.java:610 void org.apache.tools.ant.Main.start(java.lang.String[], java.util.Properties, java.lang.ClassLoader) Main.java:196 void org.apache.tools.ant.Main.main(java.lang.String[]) Main.java:235 void org.apache.tools.ant.types.FileSet.setFile(java.io.File) Many Thanks, Paul Green Developer, JTU, Office for National Statistics Tel (01633) 812524 Mobile (07720) 324594 Paul's pointless fact of the week: Within minutes of delivering a speech on road safety, in 1957, Prince Philip crashed his car. For the latest data on the economy and society consult National Statistics at http://www.statistics.gov.uk ********************************************************************** Please Note: Incoming and outgoing email messages are routinely monitored for compliance with our policy on the use of electronic communications ********************************************************************** Legal Disclaimer : Any views expressed by the sender of this message are not necessarily those of the Office for National Statistics ********************************************************************** The original of this email was scanned for viruses by the Government Secure Intranet (GSi) virus scanning service supplied exclusively by Energis in partnership with MessageLabs. On leaving the GSi this email was certified virus-free