You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Johannes F. Knauf" <jo...@ancud.de> on 2017/01/24 10:12:17 UTC
Endorsed mechanism in Tomcat 8
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.
Cheers
Johannes
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Endorsed mechanism in Tomcat 8
Posted by "Johannes F. Knauf" <jo...@ancud.de>.
Hi Konstantin,
thanks for the prompt reply.
On 24.01.2017 11:57, Konstantin Kolinko wrote:
>
> 1. It looks that you are confusing Tomcat 8.0 and Tomcat 8.5.
You name it. I was not aware that 8.5 in fact is a really major step.
> 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.
Used your recommendation. It is working perfectly fine.
For later reference, if other people stumble upon it, here is the relevant part of bin/setenv.sh
------ >8 snip begin 8< ------
CATALINA_OPTS="-Djava.endorsed.dirs=${CATALINA_HOME}/endorsed/"
------ >8 snip end 8< ------
Thanks a lot again
Johannes
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Endorsed mechanism in Tomcat 8
Posted by Konstantin Kolinko <kn...@gmail.com>.
2017-01-24 13:12 GMT+03:00 Johannes F. Knauf <jo...@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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org