File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Deploying more than one application in tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Reply Bookmark "Deploying more than one application in tomcat" Watch "Deploying more than one application in tomcat" New topic
Author

Deploying more than one application in tomcat

Priyanka Chopda
Ranch Hand

Joined: Jul 22, 2003
Posts: 112
Hi all,
I want to deploy more than one application in tomcat. What are the correct steps to follow. Can I just copy the .war files (each corresponding to diffrent application) into webapps folder?
Please let me know the best way.
Many Thanks
-PC
Wayne L Johnson
Ranch Hand

Joined: Sep 03, 2003
Posts: 399
Assuming that the ".war" files are well-formed, all you need to do is place them in the 'webapps' directory. When you next start Tomcat the war files will be found, extracted, and the applications should be available on the server.
Priyanka Chopda
Ranch Hand

Joined: Jul 22, 2003
Posts: 112
will I have to modify server.xml to tell how many and which applications I'm running? If Yes, what should I modify?
Thanks
-PC
Niral Trivedi
Ranch Hand

Joined: Nov 26, 2001
Posts: 46
If you are running tomcat version 4.0 or later, You don't have to modify server.xml file if you are deploying a war file. When you restart tomcat it will automatically expand war files.
You can check more on 'Application Developer's Guide' section of tomcat documentation.
Hope that will help.
Niral
 
 
subject: Deploying more than one application in tomcat
 
Threads others viewed
JSP, Apache, tomcat problem
JSP, Apache, tomcat problem
How to run multiple web applications on different port of a single tomcat
struts1
how to give database connection string in configuration file
MyEclipse, The Clear Choice