Re: Automatic deploy with ant and Tomcat 4.1.31

2005-07-01 Thread Tim Diggins
the tomcat deploy task doesn't build the war, it only deploys it, so 
unlikely that it is at fault. Have you checked the war manually to 
ensure it unzips normally with some zip util?


also the unzipping is not really done by the deploy task - but is 
something that tomcat does at some point as part of its process of 
deploying a war.


--Tim


Peter Verhoye wrote:

Hi,

I'm trying to use an Ant build script to deploy/install a war file to a
local Tomcat server. I've found and read the documentation.

The task I use is as follows:

target name=tomcat.install description=Installs the Web Application
depends=package
  echo message=Installing ${tomcat.app.name} .../
  install url=${tomcat.manager.url}
username=${tomcat.manager.username}
password=${tomcat.manager.password} path=/${tomcat.app.name}
config=file:${basedir}/${assemble}/META-INF/context.xml
war=file:${basedir}/${artifacts}/${war.file}/
/target

Now, the war file to be installed is copied in the local work folder of
the manager application but the unzipping of the war file does not work
well. It seems only the WEB-INF directory gets unzipped, the other
files/folders are nowhere to be seen.

Anyway offer any help?

Thanks in advance,

Peter



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Automatic deploy with ant and Tomcat 4.1.31

2005-07-01 Thread Peter Verhoye
the tomcat deploy task doesn't build the war, it only deploys it, so 
unlikely that it is at fault. Have you checked the war manually to 
ensure it unzips normally with some zip util?


also the unzipping is not really done by the deploy task - but is 
something that tomcat does at some point as part of its process of 
deploying a war.


The war file is correct. This is indeed doen in another task. And I've 
checked it manually. And the copy of the warfile (in the work 
CATALINA_HOME\work\Standalone\localhost\manager directory) is also 
correct (I guess it's basically a copy).


Now, I do have to mention that I'm working on windows, so maybe this has 
something to do with it.


Anyway, when I use the manager page to upload the war file, it works 
like a charm. So noting wrogn there either.


Also, according to the docs, there should be a difference between the 
install and the deploy tasks. But both 'deploy' the same directory (the 
mentioned above).


BB
Peter


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]