I've been an avid user of "apt install tomcat9" for years on Ubuntu 22.04 and prior with great success, but I've discovered that the package manager on Ubuntu 24.04 doesn't support tomcat9.
So I'm trying to install it from the core binary D/L from tomcat.apache.org I want to use distinct CATALINA_HOME and CATALINA_BASE so that I can more easily upgrade Tomcat without interfering with the configuration and deployed webapps. My CATALINA_HOME is /opt/tomcat9/home (which is a symlink to /opt/tomcat9/apache-tomcat-9.0.93) My CATALINA_BASE is /var/opt/tomcat9 I have it set up as a systemd service, and Tomcat runs (stopping and starting with "sudo systemctl start tomcat9.service" and "sudo systemctl stop tomcat9.service"), but I'm only ever getting 404 errors with the familiar Tomcat 404 error page with distinctive dark tuquoise trim and it correctly identifies the version I have just installed, 9.0.93. I copied the ROOT webapp from my CATALINA_HOME/webapps to my CATALINA_BASE/webapps, and I see in my /var/opt/tomcat9/logs/catalina.out that it was found: Sep 05, 2024 2:18:53 PM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deployment of web application directory [/var/opt/tomcat9/webapps/ROOT] has finished in [251] ms Same for the examples webapp: Sep 05, 2024 2:18:53 PM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deploying web application directory [/var/opt/tomcat9/webapps/examples] I'm seeing nothing but 404 errors in my /var/opt/tomcat9/logs/localhost_access_log.2024-09-05.txt Trying http://localhost:8080/ and http://localhost:8080/index.jsp and http://localhost:8080/examples/ and http://localhost:8080/examples/index.html I only ever get a 404 error. I can stop the tomcat9.service and then I get a "Cannot connect" error. So I am hitting Tomcat. I can change the listening port in /var/opt/tomcat9/conf/server.xml which means I can get 404 errors on that different port (but demonstrates that it's finding the right server.xml in my CATALINA_BASE). What dumb mistake am I making? -- E-Mail to and from me, in connection with the transaction of public business, is subject to the Wyoming Public Records Act and may be disclosed to third parties.