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:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to