My OS is Linux Redhat9.

I have downloaded and installed Tomcat 5.0.16 from a "binary"
distribution.

I created a build.properties file in my home directory as follows :

    manager.username=bkimelman
    manager.password=foobar
    manager.url=http://localhost:8080/manager


I can successfully use ant to compile my tomcat application.
I can successfully use ant to prepare a WAR file for distribution.

I tried some of the sample applications that came with the tomcat
installation and they all worked OK.

I successfully used the manager webapp (via the Mozilla browser)
to get a listing of all applications :

       http://localhost:8080/manager/list

When I tried to install my webapp using ant I received the following
error message :

/home/bkimelman/tomcat1/build.xml:365: FAIL - Encountered exception
java.util.zip.ZipException: error in opening zip file

lines 361 - 365 are as follows :

361 : <deploy url="${manager.url}"
362 :    username="${manager.username}"
363 :    password="${manager.password}"
364 :        path="${app.path}"
365 :         war="file://${build.home}"/>

However, when I used the manager webapp via the browser as follows :

    http://localhost:8080/manager/deploy?path=/tomcat1&;
    war=file:/home/bkimelman/tomcat1/dist/tomcat1-1-dev.war

I was successfull in deploying my application
(and I was able to run my application).

Any ideas as to why I can't use ant to install my tomcat application ?

Reply via email to