tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <Yoav.Shap...@mpi.com>
Subject RE: ANT tasks for management console
Date Thu, 31 Jul 2003 16:43:53 GMT

Howdy,
Probably a bad war file URL.  Try file://c:/bond.war.

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: Derek Mahar [mailto:D.Mahar@penson.ca]
>Sent: Thursday, July 31, 2003 12:42 PM
>To: Steph Richardson; Tomcat Users List
>Subject: RE: ANT tasks for management console
>
>Any idea why the following Ant deploy task is not working for me?
>
>Software configuration:
>  Microsoft Windows XP [Version 5.1.2600]
>  Java 2 SDK 1.4.2
>  Apache Ant version 1.5.2 compiled on May 30 2003
>  Tomcat 5.0.5 Alpha
>
><!-- build.xml -->
><taskdef name="deploy" classname="org.apache.catalina.ant.DeployTask"/>
><deploy url="${manager.url}"
>    username="${manager.username}"
>    password="${manager.password}"
>    path="${app.path}"
>    war="file:/C:/bond.war"/>
>
>The WAR file bond.war is in C:\bond.war.
>
>Ant output:
>
>---
>
>U:\Derek\Project\BondTrader\BondOrderManager>ant deploy
>Buildfile: build.xml
>
>prepare:
>
>compile:
>
>deploy:
>   [deploy] FAIL - Encountered exception java.net.MalformedURLException:
>unknown
> protocol: c
>
>   [deploy] OK - Deployed application at context path /bond
>
>
>BUILD FAILED
>file:U:/Derek/Project/BondTrader/BondOrderManager/build.xml:380: FAIL -
>Encountered exception java.net.MalformedURLException: unknown protocol: c
>
>Total time: 1 second
>
>---
>
>Thanks,
>
>Derek
>
>-----Original Message-----
>From: Steph Richardson [mailto:steph@kvasar.com]
>Sent: Thursday, July 31, 2003 11:37 AM
>To: Tomcat Users List
>Subject: RE: ANT tasks for management console
>
>
>
>Look for catalina-ant.jar - probably in $TOMCAT_HOME/server/lib. Copy it to
>your $ANT_HOME/lib. We use these in our build files - I included the XML
>fragments from our build files if they're useful ( obviously you need to
>define a bunch of props used in these examples ) :
>
>
>  <taskdef name="deploy" classname="org.apache.catalina.ant.DeployTask" />
>  <taskdef name="undeploy" classname="org.apache.catalina.ant.UndeployTask"
>/>
>  <taskdef name="list" classname="org.apache.catalina.ant.ListTask" />
>  <taskdef name="start" classname="org.apache.catalina.ant.StartTask" />
>  <taskdef name="stop" classname="org.apache.catalina.ant.StopTask" />
>  <taskdef name="reload" classname="org.apache.catalina.ant.ReloadTask"/>
>
>	<!-- ****************** Tomcat tasks ****************** -->
>	<target name="reload">
>		<!-- reload the web application in tomcat -->
>		<echo message="Reloading tomcat web app on port :
>${tomcat.port}" />
>		<reload url="${tomcat.manager}" path="/${context-path}"
>username="${tomcat.usr}" 				password="${tomcat.pwd}" />
>	</target>
>  <target name="deploy"
>     description="Deploys a Web application">
>      <deploy url="${tomcat.manager}" username="${tomcat.usr}"
>password="${tomcat.pwd}"
>        path="/${context-path}" war="file:${war-path}"
>      />
>  </target>
>
>  <target name="undeploy"
>     description="Undeploys a Web application">
>      <undeploy url="${tomcat.manager}" username="${tomcat.usr}"
>password="${tomcat.pwd}"
>        path="/${context-path}"
>      />
>  </target>
>
>  <target name="redeploy"
>      description="Undeploys and deploys a Web aplication">
>      <antcall target="undeploy" />
>      <antcall target="deploy" />
>  </target>
>
>  <target name="list"
>     description="Lists Web applications">
>     <echo message="Listing the applications...."/>
>     <list
>        url="${tomcat.manager}"
>        username="${tomcat.usr}"
>        password="${tomcat.pwd}"
>      />
>  </target>
>
>  <target name="start"
>     description="Starts a Web application">
>     <echo message="Starting the application...."/>
>     <start
>        url="${tomcat.manager}"
>        username="${tomcat.usr}"
>        password="${tomcat.pwd}"
>        path="/${context-path}"
>      />
>  </target>
>
>  <target name="stop"
>     description="Stops a Web application">
>     <echo message="Stopping the application...."/>
>     <stop
>        url="${tomcat.manager}"
>        username="${tomcat.usr}"
>        password="${tomcat.pwd}"
>        path="/${context-path}"
>      />
>  </target>
>
>
>
>
>
>> -----Original Message-----
>> From: Juraj.Lenharcik@t-systems.com
>> [mailto:Juraj.Lenharcik@t-systems.com]
>> Sent: Thursday, July 31, 2003 3:38 AM
>> To: tomcat-user@jakarta.apache.org
>> Subject: ANT tasks for management console
>>
>>
>> Hi,
>>
>> Catalina 4.1.24 contains some ANT-tasks to call the management
>> application to deploy, reload and delete apps. Where can I find these
>> tasks to include them in my build?
>>
>> Juraj
>>
>> Mit freundlichen GrĂ¼ssen
>>
>> Juraj Lenharcik
>> T-Systems International GmbH
>> Systems Integration 1
>> eFactory Solutions
>> Business Unit Manufacturing Solutions
>> Hausadresse: Fasanenweg 5, 70771 Leinfelden-Echterdingen
>> phone:		+49 (711) 972 46185
>> fax:		+49 (711) 972 48109
>>
>> mailto:juraj.lenharcik@t-systems.com
>> www.t-systems.com <http://www.t-systems.com>
>> www.efactory-solutions.com <http://www.efactory-solutions.com>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>
>>
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org




This e-mail, including any attachments, is a confidential business communication, and may
contain information that is confidential, proprietary and/or privileged.  This e-mail is intended
only for the individual(s) to whom it is addressed, and may not be saved, copied, printed,
disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately
delete this e-mail from your computer system and notify the sender.  Thank you.


---------------------------------------------------------------------
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