tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lothar Krenzien <>
Subject <kein Betreff>
Date Wed, 09 Nov 2005 12:50:52 GMT

Hi there,

in opposite to my previous post I want to deploy a war file to remote server running Tomcat
using the Tomcat Ant-task (provided by catalina-ant.jar).  But even I get 'OK' back from the
server -  the newly added files are not copied in the webapp dir.  Do I make something wrong
? If possible I don't want to restart the server.

Here's my Ant task:
-- file tomcatTask.xml

	<property name="deploy.dir" value="C:\Temp\ant-test\deployment\" />      
	(it's hard-coded because relative dir's didn't worked for me)

	<property name=""  		value="webapp" />      
	<property name=""  	    value="webapp" />      
	<property name="tomcat.username"  	value="TomcatAdmin" />
	<property name="tomcat.password"  	value="XXXX" />
	<property name="tomcat.manager.url" value="http://remoteHost:8888/manager/" />
	<taskdef name="deploy" 	 classname="org.apache.catalina.ant.DeployTask" /> 
	<taskdef name="list" 	    classname="org.apache.catalina.ant.ListTask" /> 
	<taskdef name="reload" 	 classname="org.apache.catalina.ant.ReloadTask" /> 
	<taskdef name="undeploy" classname="org.apache.catalina.ant.UndeployTask" />      

       <target name="deploy" description="Install application in Tomcat">
        <deploy url="${tomcat.manager.url}"

    <target name="remove" description="Remove application in Tomcat">
        <undeploy url="${tomcat.manager.url}"

    <target name="redeploy" description="Redeploy application">
        <antcall target="remove" />
        <antcall target="deploy" />

I'm calling this target from another file like this:
     <ant antfile="${basedir}/deploy/tomcatTask.xml" dir="${out.dir}" target="redeploy"/>

In the tomcat config I have set unpackWARs=TRUE and also created a Tomcat manager user.

Thanks, Lothar

Verschicken Sie romantische, coole und witzige Bilder per SMS!
Jetzt bei WEB.DE FreeMail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message