ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Craig Dickson <craig.dick...@kirus.com>
Subject RE: tomcat automation...
Date Fri, 28 Mar 2003 21:51:09 GMT
Where would I get my hands on the Jar file containing the Tomcat related Ant
tasks?


> -----Original Message-----
> From: Paul Christmann [mailto:paul@priorartisans.com]
> Sent: Wednesday, March 26, 2003 1:22 PM
> To: Ant Users List
> Subject: Re: tomcat automation...
> 
> 
> I'm probably missing something obvious, but this build file 
> doesn't copy 
> the war file to the webapps folder (its commented out).  So 
> Tomcat won't 
> recognize the path you've specified in the <start> target.  
> In fact, you 
> might want your start task to depend on the "war" task?  
> (Actually, I'd 
> suggest separation of the "war" task and the "copying", so 
> you can build 
> the war and separately choose to start deployment of it)
> 
> If you do already have the war file in the indicated place 
> (/Tomcat4.1/webapps) (maybe manually copied it there?) then 
> maybe Tomcat 
> logs have more detailed error messages?
> 
> FWIW, I make heavy use of the <deploy> target for "remote" 
> deployment of 
> my wars (in quotes because we only deploy to http://localhost:8080 
> currently), and occasional use of the <stop> and <start> targets.  So 
> given enough patience, you should be able to get them to work.  My 
> <start> usage is pretty much the same as yours:
> 
>      <start url="${catalina.webapps.url}/manager"
>            username="${catalina.manager.user}"
>            password="${catalina.manager.pwd}"
>                path="/${project.name}"
>      />
> 
> Your original question about deploy -- this is my target, 
> which is much 
> the same as start.  The only difference is the addition of the "war" 
> attribute.
> 
>      <deploy url="${catalina.webapps.url}/manager"
>          username="${catalina.manager.user}"
>          password="${catalina.manager.pwd}"
>              path="/${project.name}"
>               war="file:${deploy.war}"
>      />
> 
> Finally, FWIW, I'm using Tomcat 4.1.18 and ant 1.5.1
> 
> PC
> 
> Ciramella, EJ wrote:
> >   <!-- set global properties for this build -->
> >   <property file="build.properties"/>
> >   <property environment="env"/>
> >   <property name="url"      value="http://localhost:8080/manager"/>
> >   <property name="username" value="admin"/>
> >   <property name="password" value="*********"/>
> >   
> >   <property name="path"     value="/relengweb"/>
> > 
> >   <!-- Configure the custom Ant tasks for the Manager 
> application -->
> >   <taskdef name="deploy"    
> classname="org.apache.catalina.ant.DeployTask"/>
> >   <taskdef name="install"
> > classname="org.apache.catalina.ant.InstallTask"/>
> >   <taskdef name="list"      
> classname="org.apache.catalina.ant.ListTask"/>
> >   <taskdef name="reload"    
> classname="org.apache.catalina.ant.ReloadTask"/>
> >   <taskdef name="remove"    
> classname="org.apache.catalina.ant.RemoveTask"/>
> >   <taskdef name="resources"
> > classname="org.apache.catalina.ant.ResourcesTask"/>
> >   <taskdef name="roles"     
> classname="org.apache.catalina.ant.RolesTask"/>
> >   <taskdef name="start"     
> classname="org.apache.catalina.ant.StartTask"/>
> >   <taskdef name="stop"      
> classname="org.apache.catalina.ant.StopTask"/>
> >   <taskdef name="undeploy"
> > classname="org.apache.catalina.ant.UndeployTask"/>
> > 
> >   <target name="build" depends="war">
> >    <echo message="finished deploying the war file"/>
> >   </target>
> > 
> > <!--
> > 
> **************************************************************
> **************
> > * -->
> > <!-- *******************   War and Ear file creation steps
> > ********************* -->
> > <!--
> > 
> **************************************************************
> **************
> > * -->
> >   
> >   
> >   <target name="install" description="Install web application">
> >     <install url="${url}" username="${username}" 
> password="${password}"
> >             path="${path}" war="file://releng-site/warfile"/>
> >   </target>
> >     <target name="list" description="Start web application">
> >     <list  url="${url}" username="${username}" 
> password="${password}"/>
> >   </target>
> >   
> >   <target name="start" description="Start web application">
> >     <start  url="${url}" username="${username}" 
> password="${password}"
> >             path="${path}"/>
> >   </target>
> >   
> >   <target name="reload" description="Reload web application">
> >     <reload  url="${url}" username="${username}" 
> password="${password}"
> >             path="${path}"/>
> >   </target>
> >   <target name="remove" description="Remove web application">
> >     <remove url="${url}" username="${username}" 
> password="${password}"
> >             path="${path}"/>
> >   </target>
> > 
> > -----Original Message-----
> > From: Anderson, Rob H - VSCM [mailto:Anderson.Rob@vectorscm.com]
> > Sent: Wednesday, March 26, 2003 2:47 PM
> > To: 'Ant Users List'
> > Subject: RE: tomcat automation...
> > 
> > 
> > What does your build.xml look like?
> > 
> > -Rob A
> > 
> > -----Original Message-----
> > From: Ciramella, EJ [mailto:ECiramella@emptoris.com]
> > Sent: Wednesday, March 26, 2003 11:45 AM
> > To: 'Ant Users List'
> > Subject: RE: tomcat automation...
> > 
> > 
> > these are the types of errors I get:
> > 
> > start:
> >     [start] FAIL - Application at context path /relengweb 
> could not be
> > started
> > 
> > 
> > BUILD FAILED
> > file:D:/releng-site/build.xml:55: FAIL - Application at context path
> > /relengweb could not be started
> > 
> > 
> > even with verbose and debug there's no more usefull information.
> > 
> > 
> > -----Original Message-----
> > From: Anderson, Rob H - VSCM [mailto:Anderson.Rob@vectorscm.com]
> > Sent: Wednesday, March 26, 2003 2:39 PM
> > To: 'Ant Users List'
> > Subject: RE: tomcat automation...
> > 
> > 
> > I think the tomcat target you are asking about would need 
> to be created in
> > your build.xml. I think the <copy> task would be usefull 
> for this. I would
> > probably do something like...
> > 
> > <target name="tomcat-deploy" depends="war" 
> description="deploys built war
> > file to tomcat/webapps">
> > 	<copy file="${war.file}"
> > 		todir="${tomcat.home}/webapps"/>
> > </target>
> > 
> > I hope this helps.
> > 
> > -Rob A
> > 
> > -----Original Message-----
> > From: Ciramella, EJ [mailto:ECiramella@emptoris.com]
> > Sent: Wednesday, March 26, 2003 9:26 AM
> > To: 'Ant Users List'
> > Subject: tomcat automation...
> > 
> > 
> > is there a tomcat deploy target somewhere?  I'd like to add 
> a target that
> > copies up my war file when the build is done and I can't 
> seem to locate
> > it...
> > 
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > For additional commands, e-mail: user-help@ant.apache.org
> > 
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > For additional commands, e-mail: user-help@ant.apache.org
> > 
> 
> 
> -- 
> PC
> 
> Paul Christmann
> Prior Artisans, LLC
> mailto:paul@priorartisans.com
> 504-587-9072
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 

Mime
View raw message