Hello all:

I'm not sure that I have post this question. If I did,
my apology. I just tried to compile and run the sample
app from Tomcat's Documentation. I got error message
as I ran "ant install". Here is the error message:

>>>ant install
Buildfile: build.xml

prepare:

compile:

install:
   [deploy] FAIL - Encountered exception
java.util.zip.ZipException: error in op
ening zip file

BUILD FAILED
\..\..\myapp\build.xml:339: FAIL - Encountered
exception java.util.zip.ZipException: error in opening
zip file

Also on another window I got a warning message from
Tomcat as following:

WARNING: Exception while expanding web application
archive myapp.war
Oct 23, 2003 6:41:13 AM
org.apache.catalina.startup.HostConfig deployWARs

Here is part of my build.xml:

<target name="install" depends="compile"
   description="Install application to servlet
container">

  <deploy url="${manager.url}"
       username="${manager.username}"
       password="${manager.password}"
           path="${app.path}"
           war="file:///${build.home}"/>
</target>

It seems to me that both Ant and Tomcat were looking
for a .war file. But I don't want to generate .war
file eveytime I compile while developing.

Can someone help me with this please?

I use Sun's JDK 1.4.2, Tomcat 5.0.2, and Ant 1.6 beta
(also Ant 1.5) running on Windows 2000 SP4. The thing
is I use the same version num of Sun's JDK, Tomcat,
and Ant on Linux RH 9 and it works.

Thank you for your help.

Phuoc.

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

Reply via email to