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>

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to