0% found this document useful (0 votes)
87 views

Configure Use Tomcat

This document provides instructions for configuring and using Apache Tomcat with XAMPP on Windows. It explains that Java is required to run Tomcat and how to install Java if needed. It then describes how to start Tomcat through the XAMPP control panel and access the default Tomcat page. The document concludes by explaining how to configure administrator accounts to access additional Tomcat management applications.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
87 views

Configure Use Tomcat

This document provides instructions for configuring and using Apache Tomcat with XAMPP on Windows. It explains that Java is required to run Tomcat and how to install Java if needed. It then describes how to start Tomcat through the XAMPP control panel and access the default Tomcat page. The document concludes by explaining how to configure administrator accounts to access additional Tomcat management applications.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Configure and Use Apache Tomcat

XAMPP for Windows comes with Apache Tomcat built in, making it easy to get started with Java-based Web
applications. This guide will walk you through the process of using Apache Tomcat with XAMPP.

XAMPP for Windows does not include Java, which is a pre-requisite for using Apache Tomcat. If you do not
already have Java installed, you will see an error similar to the below when you attempt to start Apache Tomcat
through the XAMPP control panel.

To correct this, install Java and then attempt to use Apache Tomcat, as below:

1. Browse to https://www.java.com/en/download/ and follow the instructions to download the latest version of
the Java Runtime Environment.

2. Follow the on-screen instructions to install Java.

1
Once installed, you will see a message like the one below:

On some versions of Windows, you will not be able to install Java without administrator
privileges. You may either need to log in as a user with administrative rights or, if you
NOTE are using the offline Java installer, you may need to right-click the installer file and
select the "Run as administrator" menu option, then enter administrator credentials (if
required) to proceed.

3. Start the Apache Tomcat server using the XAMPP control panel.

2
You should now be able to access Apache Tomcat by browsing to http://localhost:8080/ in your browsers
address bar. Heres an example of what you should see:

Apache Tomcat includes two applications, the "manager" application and the "host-manager" application, that
simplify management and deployment of Web applications and provide detailed information on server status.
These applications can be accessed from the Apache Tomcat welcome page, as highlighted in the image
above.

Access to the above applications is blocked by default. To access them, you must configure one or more sets
of administrator accounts and then assign the roles "manager-gui" and/or "admin-gui" to these accounts.
Accounts with the "manager-gui" role would have access to the "manager" application, and those with the
"admin-gui" role would have access to the "host-manager" application.

To configure these accounts, follow the steps below:

1. Edit the tomcat-users.xml file in the tomcat/conf subdirectory of your XAMPP installation directory (typically
C:\xampp) and add the line below, before the closing </tomcat-users> element:

<user username="admin" password="admin" roles="manager-gui,admin-gui" />

This configures an account with username "admin" and password "admin", with access to both the Apache
Tomcat Web applications. Remember to replace the username and password with values specific to your
installation.

3
If you prefer to have a separate account for each application, replace the previous configuration with this
example:

<user username="manager" password="manager" roles="manager-gui" />


<user username="admin" password="admin" roles="admin-gui" />

2. Save the changes.

3. Restart the Apache Tomcat server using the XAMPP control panel.

You should now be able to access the Apache Tomcat Web applications using the configured credentials.
Heres an example of the management Web application, which includes controls to deploy new WAR
applications.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy