The default CATALINA_OPTS contains -XX:MaxPermSize=$MAX_PERM_SIZE. Java 17 and later reject that option:
Unrecognized VM option 'MaxPermSize=192m' Error: Could not create the Java Virtual Machine.
so a Tomcat started by xinit with the default configuration does not start on any Java version XWiki supports today (checked with Java 21).