tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Kessler <michael.kess...@team.bluewin.com>
Subject Re: Deploying a webapp with ant
Date Wed, 23 Jul 2003 15:19:49 GMT
The Idea behind is to deploy a webapp automatically on severals servers
in the cluster, manual deploy is not the problem ;-)

On Wed, 2003-07-23 at 17:15, Aurele Venet wrote:
> then copy the war to your webapps dir first and make an install from 
> there!  Make sure autodeploy war file is set in your servlet.xml file so 
> at restart it will get redeployed!
> 
> Michael Kessler wrote:
> 
> >With the install task the webapp is lost after a restart, so there is no
> >use for me...
> >
> >thanks
> >
> >On Wed, 2003-07-23 at 16:55, Aurele Venet wrote:
> >  
> >
> >>I managed to deploy using ant with the following script:
> >>
> >>
> >>  <target depends="init" description="Declaration of new remove + 
> >>install tasks." name="declare">
> >>    <taskdef classname="org.apache.catalina.ant.RemoveTask" 
> >>classpath="${tomcatAntLib}" name="remove"/>
> >>    <taskdef classname="org.apache.catalina.ant.InstallTask" 
> >>classpath="${tomcatAntLib}" name="install"/>
> >>  </target>
> >>    <target description="Remove web application" name="remove" 
> >>depends="declare">
> >>    <remove password="root" path="/XAT" 
> >>url="http://localhost:8000/manager" username="root"/>
> >>  </target>
> >>  <target depends="declare,war,remove" description="Install web 
> >>application" name="install">
> >>    <install password="root" path="/XAT" 
> >>url="http://localhost:8000/manager" username="root"
> >>             war="file://${d_build}XAT.war"/>
> >>  </target>
> >>
> >>note you need tomcat/4.1.24 + tomcatAntLib path variable pointing to the 
> >>ant jar file that comes with the tomcat installation.  (see the tomcat 
> >>help pages for more info on ant deployment). (d_build = path to war file).
> >>
> >>good luck
> >>
> >>Vrata
> >>
> >>Michael Kessler wrote:
> >>
> >>    
> >>
> >>>Hi
> >>>
> >>>I try to deploy my webapp with ant to our server. I searched within the
> >>>tomcat mailarchive and of course also google, but I found no working
> >>>solution...
> >>>
> >>>My war file 'member.war' has a normal webapp structure, and I added
> >>>context.xml to the META-INF folder with the content:
> >>>
> >>><context path="/member" docBase="member"/>
> >>>
> >>>within the ant script i run:
> >>>
> >>><tomcatDeploy url="http://a.b.c.d:8080/manager/" path="/member"
> >>>username="xxx" password="xxx" war="file:{to_war}/member.war"/>
> >>>
> >>>In the log file I found:
> >>>
> >>>Manager: deploy: Deploying web application at '/member'
> >>>Manager: Uploading WAR file to
> >>>/usr/jakarta-tomcat-4.1.18/work/Standalone/localhost/manager/member.war
> >>>Manager: Extracting XML file to
> >>>/usr/jakarta-tomcat-4.1.18/work/Standalone/localhost/manager/member.xml
> >>>StandardHost[localhost]: Installing web application from URL
> >>>jar:file:/usr/jakarta-tomcat-4.1.18/work/Standalone/localhost/manager/member.war!/
> >>>
> >>>the file member.xml has the same content as the META-INF/context.xml
> >>>
> >>>... but there is no context entry in server.xml nor has the webapp been
> >>>unpacked or moved to the webapps directory!!
> >>>
> >>>my host entry from the server.xml:
> >>>
> >>><Host 
> >>>className="org.apache.catalina.core.StandardHost" 
> >>>appBase="webapps" 
> >>>autoDeploy="true"
> >>>configClass="org.apache.catalina.startup.ContextConfig"
> >>>contextClass="org.apache.catalina.core.StandardContext" 
> >>>debug="0" 
> >>>deployXML="true"
> >>>errorReportValveClass="org.apache.catalina.valves.ErrorReportValve"
> >>>liveDeploy="true"
> >>>mapperClass="org.apache.catalina.core.StandardHostMapper"
> >>>name="localhost"
> >>>unpackWARs="true">
> >>>
> >>>
> >>>Any help is very welcome... thanx
> >>>
> >>>Michael
> >>>
> >>>
> >>>	
> >>>
> >>>
> >>>
> >>>---------------------------------------------------------------------
> >>>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> >>>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >>>
> >>>
> >>> 
> >>>
> >>>      
> >>>
-- 
Michael Kessler
Customer Systems

Bluewin AG
Hardturmstrasse 3
Postfach 756
CH-8037 Z├╝rich
 
Tel: +41 (0)1 274 71 93
Fax: +41 (0)1 274 72 84
Email: michael.kessler@team.bluewin.com
http://www.bluewin.ch
http://www.bluewinag.com

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message