When trying to follow the instructions in the documentation of tomcat
(tomcat-docs/appdev/processes.html)
a simple sample of a development process is described.
When trying to intall the application to tomcat from my src-directory (without
the need to restart tomcat, the following error appears.
----------
>ant install
Buildfile: build.xml
prepare:
compile:
install:
[deploy] FAIL - Encountered exception java.util.zip.ZipException: error in
opening zip file
BUILD FAILED
/phys/netdata/home/stransky/src/java/apo/build.xml:364: FAIL - Encountered
exception java.util.zip.ZipException: error in opening zip file
Total time: 4 seconds
-----------
After this attempt a war-file with only two lines is installed in
$CATALINA_HOME/webapps
> cat $CATALINA_HOME/webapps/mysample.war
calculator.jsp
WEB-INF
In the catalina.out the is the message:
--------------------------------------------
Nov 7, 2003 10:50:09 AM org.apache.catalina.startup.HostConfig deployWARs
WARNING: Exception while expanding web application archive mysample.war
In the localhost_log.2003-11-07.txt the following line can be found:
----------------------------------------------------------------------
2003-11-07 10:48:21 Manager: deploy: Deploying web application at '/mysample'
2003-11-07 10:48:21 Manager: Uploading WAR file to
/opt/jakarta/jakarta-tomcat-5.0.12/webapps/mysample.war
2003-11-07 10:48:21 Manager: Extracting XML file to
/opt/jakarta/jakarta-tomcat-5.0.12/conf/Catalina/localhost/mysample.xml
2003-11-07 10:48:21 Manager: managerServlet.extract[/mysample]
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:112)
...
I was not able to find anything in the archive that helps.
Enviroment is:
---------------------------
I'am using
- Tomcat/5.0.12
- Ant/1.6beta2
- java/1.4.0_03-b04
- OS/Linux-2.4.19-4GB
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]