Hello, i am trying to use the ant install target from the tomcat-doc sample build.xml file, but this leads to the following output:
[EMAIL PROTECTED]:~/sample$ ant install -v Apache Ant version 1.6beta2 compiled on November 7 2003 Buildfile: build.xml Detected Java version: 1.4 in: /usr/local/j2sdk1.4.1/jre Detected OS: Linux parsing buildfile /home/rainer/sample/build.xml with URI = file:///home/rainer/sample/build.xml Project base dir set to: /home/rainer/sample [property] Loading /home/rainer/sample/build.properties [property] Loading /home/rainer/build.properties Build sequence for target `install' is [prepare, compile, install] Complete build sequence is [prepare, compile, install, reload, remove, list, javadoc, clean, dist, all, ] prepare: [copy] WEB-INF/web.xml omitted as WEB-INF/web.xml is up to date. [copy] hello.jsp omitted as hello.jsp is up to date. [copy] images/tomcat.gif omitted as images/tomcat.gif is up to date. [copy] index.html omitted as index.html is up to date. [copy] omitted as is up to date. [copy] WEB-INF omitted as WEB-INF is up to date. [copy] images omitted as images is up to date. compile: [javac] mypackage/Hello.java omitted as mypackage/Hello.class is up to date. [copy] omitted as is up to date. [copy] mypackage omitted as mypackage is up to date. install: [deploy] FAIL - Encountered exception java.util.zip.ZipException: error in opening zip file BUILD FAILED /home/rainer/sample/build.xml:361: FAIL - Encountered exception java.util.zip.ZipException: error in opening zip file at org.apache.catalina.ant.AbstractCatalinaTask.execute(AbstractCatalinaTask.java:284) at org.apache.catalina.ant.DeployTask.execute(DeployTask.java:240) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:302) at org.apache.tools.ant.Task.perform(Task.java:401) at org.apache.tools.ant.Target.execute(Target.java:338) at org.apache.tools.ant.Target.performTasks(Target.java:365) at org.apache.tools.ant.Project.executeTarget(Project.java:1237) at org.apache.tools.ant.Project.executeTargets(Project.java:1094) at org.apache.tools.ant.Main.runBuild(Main.java:669) at org.apache.tools.ant.Main.startAnt(Main.java:220) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:215) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:90) Caused by: FAIL - Encountered exception java.util.zip.ZipException: error in opening zip file at org.apache.catalina.ant.AbstractCatalinaTask.execute(AbstractCatalinaTask.java:280) ... 11 more --- Nested Exception --- FAIL - Encountered exception java.util.zip.ZipException: error in opening zip file at org.apache.catalina.ant.AbstractCatalinaTask.execute(AbstractCatalinaTask.java:280) at org.apache.catalina.ant.DeployTask.execute(DeployTask.java:240) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:302) at org.apache.tools.ant.Task.perform(Task.java:401) at org.apache.tools.ant.Target.execute(Target.java:338) at org.apache.tools.ant.Target.performTasks(Target.java:365) at org.apache.tools.ant.Project.executeTarget(Project.java:1237) at org.apache.tools.ant.Project.executeTargets(Project.java:1094) at org.apache.tools.ant.Main.runBuild(Main.java:669) at org.apache.tools.ant.Main.startAnt(Main.java:220) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:215) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:90) Total time: 3 seconds A servlets-examples.war file is created in Tomcats webapps directory, but it is only 36 bytes large and "jar tvf servlets-examples.war" has no output. What could be the reason for this and what can I do to solve this? JDK: 1.4.1 Tomcat: 5.0.14 Ant: 1.6beta2 Best Regards, Rainer Hoeckmann --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]