Java: Installing Tomcat in Fedora 39 
angelcool@fedora-laptop$date
Sat Nov 23 12:00:14 PM PST 2024
angelcool@fedora-laptop$
angelcool@fedora-laptop$
angelcool@fedora-laptop$cat /etc/redhat-release
Fedora release 39 (Thirty Nine)
angelcool@fedora-laptop$
angelcool@fedora-laptop$
angelcool@fedora-laptop$dnf info tomcat
Last metadata expiration check: 0:42:59 ago on Sat 23 Nov 2024 11:18:54 AM PST.
Installed Packages
Name : tomcat
Epoch : 1
Version : 9.0.96
Release : 1.fc39
Architecture : noarch
Size : 323 k
Source : tomcat-9.0.96-1.fc39.src.rpm
Repository : @System
From repo : updates
Summary : Apache Servlet/JSP Engine, RI for Servlet 4.0/JSP 2.3 API
URL : http://tomcat.apache.org/
License : ASL 2.0
Description : Tomcat is the servlet container that is used in the official Reference
: Implementation for the Java Servlet and JavaServer Pages technologies.
: The Java Servlet and JavaServer Pages specifications are developed by
: Sun under the Java Community Process.
:
: Tomcat is developed in an open and participatory environment and
: released under the Apache Software License version 2.0. Tomcat is intended
: to be a collaboration of the best-of-breed developers from around the world.

angelcool@fedora-laptop$
angelcool@fedora-laptop$sudo dnf install tomcat
...
angelcool@fedora-laptop$sudo dnf install tomcat-admin-webapps
...
angelcool@fedora-laptop$sudo dnf install tomcat-docs-webapp
...
angelcool@fedora-laptop$sudo systemctl start tomcat.service
...


Enable admin user, uncomment the following in /etc/tomcat/tomcat-users.xml
<role rolename="admin"/>
<role rolename="admin-gui"/>
<role rolename="admin-script"/>
<role rolename="manager"/>
<role rolename="manager-gui"/>
<role rolename="manager-script"/>
<role rolename="manager-jmx"/>
<role rolename="manager-status"/>
<user name="admin" password="admin" roles="admin,manager,admin-gui,admin-script,manager-gui,manager-script,manager-jmx,manager-status" />


Restart server and go to: http://localhost:8080/manager/html

For reference:
angelcool@fedora-laptop$
angelcool@fedora-laptop$tree /usr/share/tomcat/webapps/
/usr/share/tomcat/webapps/
├── host-manager
│   ├── css
│   │   └── manager.css
│   ├── images
│   │   ├── asf-logo.svg
│   │   └── tomcat.svg
│   ├── index.jsp
│   ├── META-INF
│   │   └── context.xml
│   └── WEB-INF
│   ├── jsp
│   │   ├── 401.jsp
│   │   ├── 403.jsp
│   │   └── 404.jsp
│   ├── manager.xml
│   └── web.xml
└── manager
├── css
│   └── manager.css
├── images
│   ├── asf-logo.svg
│   └── tomcat.svg
├── index.jsp
├── META-INF
│   └── context.xml
├── status.xsd
├── WEB-INF
│   ├── jsp
│   │   ├── 401.jsp
│   │   ├── 403.jsp
│   │   ├── 404.jsp
│   │   ├── connectorCerts.jsp
│   │   ├── connectorCiphers.jsp
│   │   ├── connectorTrustedCerts.jsp
│   │   ├── sessionDetail.jsp
│   │   └── sessionsList.jsp
│   └── web.xml
└── xform.xsl

13 directories, 26 files
angelcool@fedora-laptop$


Comments
Comments are not available for this entry.
2025 By Angel Cool