Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Where to put war file

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi i am using apache-tomcat-7.0.22 and eclipse . i want to deploy war file in tomcat .should i place it in webapps folder in tomcat directory or somewhere else.thanks in advance
 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Each Tomcat installation contains the "How to pages" like this one which should provide you the information you are looking for
 
sardar waqas ahmed
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i cannot understand what the page is saying kindly tell me in which folder should i paste my war file
 
Saloon Keeper
Posts: 28100
198
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can put the WAR wherever you want. Some places are, of course, better than others. The main constraint is that the directory that serves to contain the WAR has to be readable by Tomcat.

Tomcat has a "webapps" directory and most people use that, since they don't have to setup context information and it's a common, well-known place to hold WARs. My serious apps treat WARs as independent products, which have their own product directories and the WARs live there, instead. I use a TOMCAT_HOME/conf/Calatlina/localhost/xxxxx.xml Context file that points to that WAR using the appBase attribute.

There are roughly about 7 places and ways to deploy WARs, and that's not even including the alternatives such as using the Tomcat Manager webapp to upload and install the WAR.
 
Creativity is allowing yourself to make mistakes; art is knowing which ones to keep. Keep this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic