Hi,
First, please add [OFF-TOPIC] to your subject line as this is not a
tomcat issue.

Second: you have a different ant.jar at compile time than you do at
runtime, or alternatively multiple different ant.jars on the classpath
at runtime, the first of which is missing this method.

The method is a ZipOutputStream constructor that takes a file argument.
It's been present only in the past three revisions of the class, i.e.
the few latest ant versions, probably 1.6 only but I don't feel like
tracking their CVS.

Yoav Shapira
Millennium Research Informatics


>-----Original Message-----
>From: Chris Alvarez [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, March 31, 2004 1:26 PM
>To: [EMAIL PROTECTED]
>Subject: Ant problem: cannot make war file
>
>I am having a problem when trying to make a WAR file for my webapp. I
am
>trying to run a build.xml script and I get this error:
>
>BUILD FAILED: java.lang.NoSuchMethodError:
>org.apache.tools.zip.ZipOutputStream.<init>(Ljava/io/File;)V
>
>The classes compiled fine, but it cannot build the war file for some
>reason. It looks like it cannot instantiate an object of class
>ZipOutputStream but it can't.
>
>I looked and saw that the ZipOutputStream class is in the ant.jat file
>in the $ANT_HOME/lib folder. I am using SuSE 9.0, Ant 1.6.0 and Eclipse
>2.1.
>
>Chris Alvarez
>Novell, Inc., the leading provider of information solutions.
>http://www.novell.com
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to