Skip to content

tomcat_logging_support isn't compatible with java9 #530

@youngm

Description

@youngm

Java9 removed support for the -Djava.endorsed.dirs system property. When starting with this command I get the following error in my logs:

   2017-12-11T17:36:04.50-0700 [APP/PROC/WEB/0] OUT JVM Memory Configuration: -XX:MaxDirectMemorySize=10M -XX:MaxMetaspaceSize=21522K -XX:ReservedCodeCacheSize=240M -Xmx694253K
   2017-12-11T17:36:04.50-0700 [APP/PROC/WEB/0] OUT -Djava.endorsed.dirs=/home/vcap/app/.java-buildpack/tomcat/endorsed is not supported. Endorsed standards and standalone APIs
   2017-12-11T17:36:04.50-0700 [APP/PROC/WEB/0] OUT in modular form will be supported via the concept of upgradeable modules.
   2017-12-11T17:36:04.50-0700 [APP/PROC/WEB/0] ERR Error: A fatal exception has occurred. Program will exit.
   2017-12-11T17:36:04.50-0700 [APP/PROC/WEB/0] ERR NOTE: Picked up JDK_JAVA_OPTIONS:  --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
   2017-12-11T17:36:04.50-0700 [APP/PROC/WEB/0] ERR Error: Could not create the Java Virtual Machine.
   2017-12-11T17:36:04.51-0700 [APP/PROC/WEB/0] OUT Exit status 1

It appears Tomcat 8.5.24 made it so that if the "endorsed" directory doesn't exist it won't attempt to add that argument. However, the java buildpack adds that directory to support tomcat_logging_support.

It appears we'll need to provide a different mechanism to support this feature in java9+Tomcat.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions