Ant InstallTask Problem
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]
Ant InstallTask Problem
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]