You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Alexander ten Bruggencate <al...@bruggencate.com> on 2002/06/05 10:05:58 UTC
catalina-ant ReloadTask fails
Hi,
i'm trying to reload a WAR-file using ant. Unfortunately ant returns an
error that i have been unable to find in any documentation.
list / install and remove tasks work as advertised...
tools: Ant-1.5Beta1 / Tomcat-4.1.2 / RH Linux 7.3
'ant reload' returns:
reload:
[reload] FAIL - Reload not supported on WAR deployed at path /step
BUILD FAILED
/home/bruggenc/sources/step/build.xml:141: FAIL - Reload not supported
on WAR deployed at path /step
please correct me if i'm wrong:
my idea of reloading is that I let ant create a new WAR-file and pass it
to tomcat with the required parameters. But the reload task does not
have a parameter for the war-filename. why? and how can it then reload
the web application?
thanks.
-Alexander
parts of my build.xml:
<property name="catalina.home" location="${user.home}/tomcat"/>
<property name="manager.url" value="http://localhost:8080/manager"/>
<property name="manager.path" value="/step"/>
<property name="manager.username" value="bruggenc"/>
<property name="manager.password" value="mz-e30"/>
<!-- Configure custom Ant tasks for the Manager application -->
<taskdef name="install"
classname="org.apache.catalina.ant.InstallTask" />
<taskdef name="reload"
classname="org.apache.catalina.ant.ReloadTask" />
<taskdef name="remove"
classname="org.apache.catalina.ant.RemoveTask"/>
<taskdef name="list"
classname="org.apache.catalina.ant.ListTask"/>
<target name="reload"
description="Reload web application"
depends="war">
<reload url="${manager.url}"
username="${manager.username}"
password="${manager.password}"
path="${manager.path}"/>
</target>
Re: ReloadTask needs improvement
Posted by anette mysel <ca...@cox.net>.
PLEASE REMOVE ME FROM YOUR MAILING LIST. I DO NOT KNOW WHO YOU ARE...
----- Original Message -----
From: "Alexander ten Bruggencate" <al...@bruggencate.com>
To: "tomcat user mailing list" <to...@jakarta.apache.org>
Sent: Wednesday, June 05, 2002 7:23 AM
Subject: ReloadTask needs improvement
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
ReloadTask needs improvement
Posted by Alexander ten Bruggencate <al...@bruggencate.com>.
On Wed, 2002-06-05 at 10:19, Ben Walding wrote:
> As I understand thing, the reload task just tells TomCat to reload the
> war file that is in the webapp directory.
>
> It is still your responsiblity to get the WAR file to the webapp directory.
>
> It's a shame it doesn't support a file upload as part of the TomCat
> task, but when I get annoyed enough I guess I'll write it! (I use samba
> shares at the moment to copy to the webapp directory).
Ben, can I persuade you to write this now?
Re: catalina-ant ReloadTask fails
Posted by Alexander ten Bruggencate <al...@bruggencate.com>.
On Thu, 2002-06-06 at 09:14, Alexander ten Bruggencate wrote:
> Is it just me or is DeployTask 100% the same as IntallTask? (I get the
> same results)
>
> right now if a web application has changed i have to do a RemoveTask and
> after that a IntallTask.
>
> I would rather have a ReloadTask that checks if the webapp is running,
> removes it if so and installs the war that came with the URL.
>
> -Alexander.
Excuse me, it was 9:00am here and I hadn't had much coffee...
the deploytask differs from installtask in the way you can deploy
remotely.
My "enhancement" request for reloadtask still stand...
-Alexander.
Re: catalina-ant ReloadTask fails
Posted by Alexander ten Bruggencate <al...@bruggencate.com>.
On Thu, 2002-06-06 at 05:36, Remy Maucherat wrote:
> > As I understand thing, the reload task just tells TomCat to reload the
> > war file that is in the webapp directory.
> >
> > It is still your responsiblity to get the WAR file to the webapp
> directory.
> >
> > It's a shame it doesn't support a file upload as part of the TomCat
> > task, but when I get annoyed enough I guess I'll write it! (I use samba
> > shares at the moment to copy to the webapp directory).
>
> The deploy task does just that (upload the WAR to the server, which then
> installs it).
>
> Of course, if you find improvements you could make, don't hesitate to
> contribute them. I suppose some documentation could be useful ;-)
>
> Remy
Is it just me or is DeployTask 100% the same as IntallTask? (I get the
same results)
right now if a web application has changed i have to do a RemoveTask and
after that a IntallTask.
I would rather have a ReloadTask that checks if the webapp is running,
removes it if so and installs the war that came with the URL.
-Alexander.
Re: catalina-ant ReloadTask fails
Posted by Remy Maucherat <re...@apache.org>.
> As I understand thing, the reload task just tells TomCat to reload the
> war file that is in the webapp directory.
>
> It is still your responsiblity to get the WAR file to the webapp
directory.
>
> It's a shame it doesn't support a file upload as part of the TomCat
> task, but when I get annoyed enough I guess I'll write it! (I use samba
> shares at the moment to copy to the webapp directory).
The deploy task does just that (upload the WAR to the server, which then
installs it).
Of course, if you find improvements you could make, don't hesitate to
contribute them. I suppose some documentation could be useful ;-)
Remy
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: catalina-ant ReloadTask fails
Posted by "Craig R. McClanahan" <cr...@apache.org>.
On Wed, 5 Jun 2002, Ben Walding wrote:
> Date: Wed, 05 Jun 2002 18:19:06 +1000
> From: Ben Walding <be...@walding.com>
> Reply-To: Tomcat Users List <to...@jakarta.apache.org>
> To: Tomcat Users List <to...@jakarta.apache.org>
> Subject: Re: catalina-ant ReloadTask fails
>
> As I understand thing, the reload task just tells TomCat to reload the
> war file that is in the webapp directory.
>
> It is still your responsiblity to get the WAR file to the webapp directory.
>
> It's a shame it doesn't support a file upload as part of the TomCat
> task, but when I get annoyed enough I guess I'll write it! (I use samba
> shares at the moment to copy to the webapp directory).
>
In the latest 4.1.x releases, the Ant "deploy" command does support a
file upload of your WAR file, so that you can deploy from a different
machine. The "install" command is for the local machine only, but it's
faster because no copying is required.
Craig
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: catalina-ant ReloadTask fails
Posted by Ben Walding <be...@walding.com>.
As I understand thing, the reload task just tells TomCat to reload the
war file that is in the webapp directory.
It is still your responsiblity to get the WAR file to the webapp directory.
It's a shame it doesn't support a file upload as part of the TomCat
task, but when I get annoyed enough I guess I'll write it! (I use samba
shares at the moment to copy to the webapp directory).
Alexander ten Bruggencate wrote:
>Hi,
>
>i'm trying to reload a WAR-file using ant. Unfortunately ant returns an
>error that i have been unable to find in any documentation.
>
>list / install and remove tasks work as advertised...
>
>tools: Ant-1.5Beta1 / Tomcat-4.1.2 / RH Linux 7.3
>
>'ant reload' returns:
>
>reload:
> [reload] FAIL - Reload not supported on WAR deployed at path /step
>
>BUILD FAILED
>/home/bruggenc/sources/step/build.xml:141: FAIL - Reload not supported
>on WAR deployed at path /step
>
>
>please correct me if i'm wrong:
>my idea of reloading is that I let ant create a new WAR-file and pass it
>to tomcat with the required parameters. But the reload task does not
>have a parameter for the war-filename. why? and how can it then reload
>the web application?
>
>thanks.
>-Alexander
>
>parts of my build.xml:
>
> <property name="catalina.home" location="${user.home}/tomcat"/>
> <property name="manager.url" value="http://localhost:8080/manager"/>
> <property name="manager.path" value="/step"/>
> <property name="manager.username" value="bruggenc"/>
> <property name="manager.password" value="mz-e30"/>
>
> <!-- Configure custom Ant tasks for the Manager application -->
> <taskdef name="install"
>classname="org.apache.catalina.ant.InstallTask" />
> <taskdef name="reload"
>classname="org.apache.catalina.ant.ReloadTask" />
> <taskdef name="remove"
>classname="org.apache.catalina.ant.RemoveTask"/>
> <taskdef name="list"
>classname="org.apache.catalina.ant.ListTask"/>
>
> <target name="reload"
> description="Reload web application"
> depends="war">
> <reload url="${manager.url}"
> username="${manager.username}"
> password="${manager.password}"
> path="${manager.path}"/>
> </target>
>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>