2017-01-24 13:12 GMT+03:00 Johannes F. Knauf <johannes.kn...@ancud.de>: > Hi, > > in Tomcat version < 8 catalina.sh used to set > -Djava.endorsed.dirs=$JAVA_ENDORSED_DIRS -- that is by > default: CATALINA_HOME/endorsed > > > Tomcat 8 seems to have abandoned that mechanism. catalina.sh does not include > anything related to > endorsed libs. However, the documentation is still mentioning it > > https://tomcat.apache.org/tomcat-8.0-doc/class-loader-howto.html > > > What is the recommended mechanism of using java.endorsed.dirs in Tomcat 8 + > JDK 8? I already > searched the web, but couldn't find anything helpful.
1. It looks that you are confusing Tomcat 8.0 and Tomcat 8.5. In Tomcat 8.0 support for JAVA_ENDORSED_DIRS is still present, and thus documentation (the link you mentioned) is correct, https://svn.apache.org/viewvc/tomcat/tc8.0.x/trunk/bin/catalina.sh?revision=1763637&view=markup#l433 2. Support for "java.endorsed.dirs" was removed by Oracle from Java 9 onwards. Thus this feature was removed from Tomcat 9 and thus from 8.5 (that is a fork of Tomcat 9.0.0.M4) https://svn.apache.org/viewvc?view=revision&revision=1653475 http://tomcat.markmail.org/message/ujdov6zpdhyxeorf 3. You can set command-line arguments for java by adding them to JAVA_OPTS or CATALINA_OPTS environment variable in a setenv.sh file. Using a setenv.sh script is documented in RUNNING.txt file of Tomcat. Best regards, Konstantin Kolinko --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org