fixes issue 38344: Restart tomcat 8.0 through MMC using JDK9 is not working
authorCarlos Aristu <carlos.aristu@openbravo.com>
Thu, 12 Apr 2018 16:28:17 +0200
changeset 33823 ad75e9315716
parent 33822 53f68f05016d
child 33824 1828446d8690
fixes issue 38344: Restart tomcat 8.0 through MMC using JDK9 is not working

The "tomcat.restart.do" task used to restart tomcat from MMC is starting tomcat with the -Djava.endorsed.dirs= system property setting. The endorsed feature is no longer supported with Java 9[1] and we are not making use of it with previous JDKs. For this reason we are directly removing it.

[1] https://docs.oracle.com/javase/9/migrate/toc.htm#JSMIG-GUID-8E83E51A-88A3-4E9A-8E2A-66E1D66A966C
build.xml
--- a/build.xml	Thu Apr 12 13:01:24 2018 +0200
+++ b/build.xml	Thu Apr 12 16:28:17 2018 +0200
@@ -821,7 +821,6 @@
       <jvmarg line="${env.CATALINA_OPTS}" />
       <jvmarg value="-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager" />
       <jvmarg value="-Djava.util.logging.config.file=${env.CATALINA_BASE}/conf/logging.properties" />
-      <jvmarg value="-Djava.endorsed.dirs=${env.CATALINA_HOME}/endorsed" />
       <jvmarg value="-Dcatalina.base=${env.CATALINA_BASE}" />
       <jvmarg value="-Dcatalina.home=${env.CATALINA_HOME}" />
       <jvmarg value="-Djava.io.tmpdir=${env.CATALINA_BASE}/temp" />