Tomcat webapps directory is empty

I have install tomcat rpm on fedora 36 and http://localhost:8080 is blank
I noticed that the install creates 2 webapps directories and they are both
empty

You can list and install the related packages like this:

sudo dnf list tomcat\*
sudo dnf install tomcat tomcat-webapps tomcat-admin-webapps
sudo systemctl restart tomcat.service

The default webapps from Tomcat are packaged separately in Fedora (except for examples, which are not packaged).

You can find them with:

# dnf search tomcat webapp

I can’t remember offhand, but one of them should be a symlink to the other.

1 Like