You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Rainer Stransky <Ra...@so-fa.de> on 2003/12/01 23:19:40 UTC

Re: Problems Deploying web application

Late (but better late than never) acknowledge of my problem solution:

To solve the problem you have to add a new task defintion:
  <taskdef name="install"   classname="org.apache.catalina.ant.InstallTask"/>

and replace the deploy task within the "install" target with the new above 
defined install task.

That's it. 

Afterwards "ant install" will be successful

But attention, this build.xml has more bugs/typos !

(mkdir tag with todir attribute)

On Friday 07 November 2003 11:00, Rainer Stransky wrote:
> 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: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org

-- 
--------------------------------------------------------------------------
Software Factory GmbH                      mailto:Rainer.Stransky@so-fa.de
Panoramastr. 47, 73084 Salach              phone  : +49 7162 460592
 o technical software development          fax    : +49 7162 460593
 o system engineering                      mobile : +49 172 6714084
 o consulting                              www    : http://www.so-fa.de
--------------------------------------------------------------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org