-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 All,
According to this post[1] over at SO, Tomcat 7 doesn't work with Java 9 out of the box. This is because of the use of -Djava.endorsed.dirs, which also appears in Tomcat 8. I suspect that feature is used in prior versions of Tomcat startup scripts as well. Tomcat's "Which Version" page claims that Tomcat X works with Java "Y and later", which is not strictly true at this point because Tomcat's startup scripts will cause Java 9 to fail[2] due to the removal of the endorsed overrides mechanism. I'm wondering if we should modify the startup scripts to stop specifying -Djava.endorsed.dirs unless the environment variable actually contains a value. The current catalina.sh in Tomcat 8 supplies this option unconditionally, therefore Java 9 will fail. The only place I can see where JAVA_ENDORSED_DIRS is actually *set* in catalina.sh is when the user is running cygwin, but that is only to convert the path separator from \ to / for UNIX-style paths. Any objections? Tomcat 8.5/9.0 have removed the JAVA_ENDORSED_DIRS environment variable from their scripts, so there should not be any problems, there, of course. - -chris [1]https://stackoverflow.com/questions/45917401/tomcat-7-0-73-doesnt-wor k-with-java-9 [2] https://docs.oracle.com/javase/9/migrate/toc.htm#JSMIG-GUID-2C896CA8-927 C-4381-A737-B1D81D964B7B -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJZpCReAAoJEBzwKT+lPKRYngYP/2j/jLdWm+8XGnWdGXELQNq4 U6N9NEEb0lUy1ge2nWE/scZhJswurPciE0nnBuNTk3MdDHeEuEfN4NPfiEovc7s1 niul1U4Nh8DOHfzPUCOBAMbd4Tvg5xSutOfSU+Gk3RHql55t9FcNS/tdHFs790SR K7pF51evuKmaJCFajwZAUUlVyZDOW41N6aGggyi90qp3WPWShE3qYxTEpLhdWE6Y Kw7aduBzZ2Y0l4/WrYdH74KnJOves+z2U5tjASGHcVq7KO4PZgBStTQV+xh/xYHI pJVinCwZ4MS9ZiToGFtZkU20crIjfap0sGQ8ZqcUb8GGsJoiG/KGN3B32RfJwLEQ seUXeiYwRdasP4y4xUmzo82CykCOqCJ234qiltCZO7d+HoTIJu8ERXfMH3sT96Um LSE9xr64rXnGPUuPCnf48NSdclCuIf+jSCiQx87IVPiMmDhU2Lfoi2dUsv7bFj6t GJZgy2H6D9eXWvhIcIJQtTcRhVkgoApaKTPOdl6ldXihecm71jM93pRR94nEMDcR df48jr5nJOI9f0NyJR8t/LJxZ32U0bc+dvLIkFEoH8T3h3W4qfWS672Z+IvxeMfi iynJFm78lITJj+9Fl2M4OuSfCmjvsPAET2w62xRNHTb00hXb2Ay/ZbNkeE+cj3hr uutgt2afRjxXvri6+j3p =81MX -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org