What a WAR File Is
Five steps, the standard path:
- Copy the WAR into Tomcat's
webappsdirectory (/opt/tomcat/webapps/or/var/lib/tomcat10/webapps/on apt installs). - Wait for auto-deploy — Tomcat unpacks it within seconds and creates a context named after the file (
app.war→/app). - Verify at
http://server:8080/appand watchlogs/catalina.outfor the deployment line. - Or use the Manager UI instead: open
http://server:8080/manager/html, scroll to *WAR file to deploy*, upload, and the context appears in the running list. - Redeploys: replace the WAR and Tomcat redeploys on change; undeploy from Manager when a context must vanish cleanly.
Running Java on your own server? The Java Tomcat hosting page and the VPS server hub cover managed and raw routes.
Option 1: Copy the WAR to webapps (Auto-Deploy)
Option 1: Copy the WAR to webapps (Auto-Deploy). Do the change this heading names on one site first, then check it in a private browser window or in the mail client, depending on the topic. Change one setting at a time, and undo it if the result is wrong before you try the next. If you want the Jaipur desk to look with you, email support@webji.services — that mailbox is staffed 24/7 in Hindi and English. Phone +91 141 4941811 is business hours only.

Option 2: Deploy via Tomcat Manager UI
On WAR file, the honest summary is that defaults matter more than brand names — a well-set budget plan outranks a mis-tuned premium one. WebJi® documents its defaults openly and adjusts them per ticket when workloads need it.
Installing Tomcat on a Linux VPS First
The clean path on Ubuntu LTS:
- Install Java — Tomcat 10.x wants Java 11 or later (
apt install openjdk-17-jdkcovers Tomcat 11 too). - Create a dedicated user (
adduser --system tomcat) rather than running the service as root. - Download the core tarball from tomcat.apache.org, extract to
/opt/tomcat, and hand ownership to the tomcat user. - Create a systemd unit pointing at
bin/catalina.sh run, thensystemctl enable --now tomcat. - Open the firewall for 8080 (and 8443 if TLS) and confirm
http://server:8080shows the welcome page.
Prefer not to administer Java at all? The Java Tomcat hosting service ships Tomcat preconfigured, and any VPS server plan gives you the root box to follow these steps on.
Changing Ports and Running Behind 80/443
Allow 80 and 443 to the world, and restrict SSH (22) or RDP (3389) to known IPs. A site that times out after a firewall change is usually a closed web port, not a dead server. If you lock yourself out, use the console in the client area or email support@webji.services before you reboot in a loop.
Memory Tuning for Java Apps
Memory Tuning for Java Apps. Do the change this heading names on one site first, then check it in a private browser window or in the mail client, depending on the topic. Change one setting at a time, and undo it if the result is wrong before you try the next. If you want the Jaipur desk to look with you, email support@webji.services — that mailbox is staffed 24/7 in Hindi and English. Phone +91 141 4941811 is business hours only.
WAR Deploy Failed: Common Fixes
How this plays out with JDK: settings that look cosmetic usually decide page speed and uptime under real traffic. The defaults WebJi® ships are tuned for Indian network conditions, and support can review your setup on request.
Frequently Asked Questions
How do I deploy a WAR file in Tomcat?
Wait for auto-deploy — Tomcat unpacks it within seconds and creates a context named after the file ( app.war → /app ).
Where do WAR files go in Tomcat?
Copy the WAR into Tomcat's webapps directory ( /opt/tomcat/webapps/ or /var/lib/tomcat10/webapps/ on apt installs).
How do I access Tomcat Manager?
Redeploys: replace the WAR and Tomcat redeploys on change; undeploy from Manager when a context must vanish cleanly.
What port does Tomcat use by default?
What port does Tomcat use by default refers to the subject of this page, How to Deploy a WAR File in Tomcat (Step-by-Step). WebJi® has provided this class of service from Jaipur since 2005, with GST invoices and 24/7 email at support@webji.services. Use the sections and the table on this page for the specifics, and open a ticket at https://billing.webji.in/submitticket.php?step=2&deptid=10 if your case does not match the standard row.
How do I increase Tomcat memory on a VPS?
Running Java on your own server? The Java Tomcat hosting page and the VPS server hub cover managed and raw routes.
Why is my WAR not deploying?
How to Deploy a WAR File in Tomcat (Step-by-Step). Email support@webji.services is 24/7 in Hindi and English, average first reply under 60 minutes. Phone +91 141 4941811 is business hours. If the question is about your own account, open a ticket at https://billing.webji.in/submitticket.php?step=2&deptid=10.
Is WebJi® an Indian company?
Yes. WebJi® is headquartered in Jaipur, Rajasthan and has operated since 2005. Billing, support and governance all run from India.
Do you provide GST invoices?
Every purchase and renewal gets a GST invoice with our GSTIN, and hosting prices are quoted exclusive of 18% GST. Claim input credit as applicable.

