Professional Documents
Culture Documents
com
Menu
Ebhor.com
Knowledge Never Sets
What is XAMPP?
XAMPP full form is Cross Platform(X), Apache (A), MySQL (M), PHP (P) and
Perl (P).
XAMPP Control Panel allows use to Start and Stop Module services
1. Apache
2. MySql
3. FileZilla
4. Mercury
5. Tomcat
To run PHP files we have to start Apache server. To access MySql Database
https://www.ebhor.com/how-to-deploy-and-run-a-war-file-in-xampp-tomcat/ 1/11
3/6/2021 How to deploy and run a war file in XAMPP tomcat - Ebhor.com
Server
We have create a war file a.war and now want to run in tomcat server
We created war file using netbeans IDE there are many IDE available for
On his/her laptop they don’t use netbeans IDE. They have to work only with
jsp files.
so how to run apache tomcat server in xampp ?
https://www.ebhor.com/how-to-deploy-and-run-a-war-file-in-xampp-tomcat/ 2/11
3/6/2021 How to deploy and run a war file in XAMPP tomcat - Ebhor.com
Lets see step by step how to configure war file with database in XAMPP
Menu
click on start to start Xampp Server’s Apache, MySql and Tomcat module
If your war is using mysql then you have to start mysql server and if you are
https://www.ebhor.com/how-to-deploy-and-run-a-war-file-in-xampp-tomcat/ 3/11
3/6/2021 How to deploy and run a war file in XAMPP tomcat - Ebhor.com
click on config you will get a drop down menu on that menu second option is
Menu
1 <!--
2 <role rolename="tomcat"/>
3 <role rolename="role1"/>
7 -->
https://www.ebhor.com/how-to-deploy-and-run-a-war-file-in-xampp-tomcat/ 4/11
3/6/2021 How to deploy and run a war file in XAMPP tomcat - Ebhor.com
the symbol <!– and –> is xml comment content written inside this is example
Menu
We have to create a user to manage tomcat page to deploy projects for that
we create a user admin with password admin and with different roles as
below.
Copy and paste this user detail after the comment line in tomcat-users.xml
file as below
<role rolename="admin"/>
Next click on Admin it will open Apache Tomcat in web browser as below
https://www.ebhor.com/how-to-deploy-and-run-a-war-file-in-xampp-tomcat/ 5/11
3/6/2021 How to deploy and run a war file in XAMPP tomcat - Ebhor.com
Menu
On click on manage app a popup box will open and ask for user username
and password we have provided username admin and password admin
below this page there are option to upload a directory or war file in tomcat
use WAR file to deploy option and select war file and click on deploy
https://www.ebhor.com/how-to-deploy-and-run-a-war-file-in-xampp-tomcat/ 6/11
3/6/2021 How to deploy and run a war file in XAMPP tomcat - Ebhor.com
Menu
After click on uplaod it will upload war file and show uploaded war in
click on you war filename to run it.
https://www.ebhor.com/how-to-deploy-and-run-a-war-file-in-xampp-tomcat/ 7/11
3/6/2021 How to deploy and run a war file in XAMPP tomcat - Ebhor.com
Menu
Thats it 🙂
Read More
XAMPP
xampp
Polymorphism in PHP with Example
C++ program for student details using array of objects
Basics of C
History of C
https://www.ebhor.com/how-to-deploy-and-run-a-war-file-in-xampp-tomcat/ 8/11
3/6/2021 How to deploy and run a war file in XAMPP tomcat - Ebhor.com
A Simple C Program
Menu
Primitive Data Types
Variables
Operators
Relational Operators
Logical Operators
Assignment Operators
Bitwise Operators
Flow control
if else
For Loop
While Loop
Do While Loop
Switch Case
Array in C
Functions
Recursion
Pointers
Array of pointers
NULL Pointers
Pointer to Pointer
https://www.ebhor.com/how-to-deploy-and-run-a-war-file-in-xampp-tomcat/ 9/11
3/6/2021 How to deploy and run a war file in XAMPP tomcat - Ebhor.com
structure Vs Union
Menu
Writing to a File
Reading a File
File handling
https://www.ebhor.com/how-to-deploy-and-run-a-war-file-in-xampp-tomcat/ 10/11
3/6/2021 How to deploy and run a war file in XAMPP tomcat - Ebhor.com
https://www.ebhor.com/how-to-deploy-and-run-a-war-file-in-xampp-tomcat/ 11/11