Ubuntu22.04 built in Tomcat9, not working with GeoServer, it does not recognize Env variable GEOSERVER_DATA_DIR, but if you install either tomcat8 or tomcat9 will work with GEOSERVER_DATA_DIR,
checked with tomcat9.service sytemd, and policty.d, failed to find the reason
did not check ubuntu lower realease
hope to find the problem , if builtin tomcat works, no need to install another tomcat container