Hello all:

I tried to compile and run the sample JSP in Tomcat
Documentation. I got error when running "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

On the Tomcat window, there is a warning message:

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

Here is part of my install target in the 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 Tomcat was looking for a .war
file, but the build.home directory was specified in my
build.xml. I don't want to create .war file every time
while developing.

Can anyone help me with this please.

NOTE: I use Sun JDK 1.4.2, Tomcat 5.0.12 and Ant 1.6
beta running on Windows 2000 SP4. The same version
number of Tomcat, Ant, and JDK work on Linux RH9.

Thanks,

Phuoc.

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

Reply via email to