Tomcat Deploy - Guide to deploying web applications on Apache Tomcat

 
Deploying of applications on Tomcat can be done in multiple ways. Tomcat is lightweight and supports hot deployment of applications, which gives much flexibility for IT. If a web application deployment requires a restart, because of Tomcat's lightweight, it can be done in mere seconds instead of minutes with Java EE application servers.

 

To deploy an application onto Tomcat, you can either use the manager application or copy the file onto Webapps folder.

 

1. Using the manager application - to use the manager application ( make sure you have enabled the user and role for the manager application in tomcat-users.xml file )

 Go to the Deploy section and select either the WAR file or an expolded directory of the web application.

Click on Deploy.

 

2. Deploying applications using file copy

 

Simply copy the application WAR file to the webapps folder. If the application already exists and this is an update, you should also delete the directory with the same name as the application in the webapps folder.

 

Tomcat will explode the WAR file and deploy the application. Depending on your Tomcat configuration, it may be necessary to restart Tomcat server some times for the deployment to happen.

Comments on this post:
 #

I've been getting this problem with Tomcat breaking lines. Any way to help me with this?

 

Post new comment

The content of this field is kept private and will not be shown publicly.

Download Tcat Server - Tomcat Simplified

Develop, diagnose, manage, configure, and deploy your Apache Tomcat applications with ease, and break free from bloated legacy JEE app servers. Built on 100% Tomcat, with no changes to the core code, Tcat Server is free for developers, and there is no commitment required. Try it now, risk-free! 
 

click thumbnail to enlarge

Link to this page