I'm currently using embedded Tomcat 9.0.68 and have encountered the infamous compatibility issue with ClassLoader.getSystemClassLoader when upgrading from Java 8 to Java 17. See https://stackoverflow.com/questions/46694600/java-9-compatability-issue-with-classloader-getsystemclassloader for a good summary.
Is it possible to utilise and modify the Tomcat classloader hierarchy for embedded Tomcat to add to the classpath, specifically: - Add some shared libraries as done with the 'shared.loader' for Tomcat for production and development environments - Add another module's classes to the classpath for a web-app for development environment only (e.g. add "../sub-module/target/classes" to classpath) In Java 8 I can achieve this by calling 'addURL' on 'URLClassLoader', but that is no longer possible in Java 9+. Is there any official documentation for this?