LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Closed Thread
  Search this Thread
Old 10-01-2009, 01:46 AM   #1
devill
LQ Newbie
 
Registered: Apr 2009
Posts: 13

Rep: Reputation: 0
How to deploy a web application in tomcat using ant?


How to deploy a web application in tomcat using ant?
 
Old 10-01-2009, 02:15 AM   #2
Thunderstorm
LQ Newbie
 
Registered: May 2009
Posts: 3

Rep: Reputation: 0
The easiest way without Ant is to edit the TOMCAT_HOME/conf/server.xml and add something like the following line:

<Context path="/contextpath" docBase="/home/yournamehere/yourwebapp" debug="0" reloadable="true"/>

If you really want to use ant you can do something like:

<target name="deploy-local" depends="webapp">
<property name="tomcat.local" value="c:/jakarta-tomcat-4.0.2" />
<copy todir="${tomcat.local}/webapps/${project}">
<fileset dir="${webapp}" />
</copy>

Remember to set the tomcat.local value in the build.properties if you have Tomcat installed in a non standard location.

eg: tomcat.local=/opt/tomcat

I noticed you opened ~4 topics with the same subject. One will be enough I think.
 
Old 10-01-2009, 02:18 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.
 
  


Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to deploy a web application in tomcat using ant? devill Linux - Server 4 10-01-2009 11:13 AM
How to deploy a web application in tomcat using ant? devill Programming 3 10-01-2009 02:24 AM
How to deploy a web application in tomcat using ant? devill Linux - Software 1 10-01-2009 02:17 AM
How to deploy a web application in tomcat using ant? devill Linux - General 1 10-01-2009 02:16 AM
Web application: cocoon jsp/servlet tomcat all in web application adilturbo Programming 0 11-24-2007 06:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 12:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration