[Bug 239892] [PATCH] www/tomcat9: Support Java 9+

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Aug 15 22:08:20 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=239892

            Bug ID: 239892
           Summary: [PATCH] www/tomcat9: Support Java 9+
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs at FreeBSD.org
          Reporter: glewis at FreeBSD.org
                CC: vvd at unislabs.com
                CC: vvd at unislabs.com
             Flags: maintainer-feedback?(vvd at unislabs.com)

Created attachment 206601
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=206601&action=edit
rc script patch

The rc script for tomcat9 starts Java with the option:

-Djava.endorsed.dirs='${_tomcat_catalina_home}/endorsed'

On Java 9 and above, this will cause the JVM (and hence Tomcat) to not be able
to start.  See, e.g.,

https://docs.oracle.com/javase/10/migrate/

(Particularly "Removed Endorsed Standards Override Mechanism")

The attached patch detects the Java version and only passes this option to Java
if the version is less than 9.  A similar patch should likely also be applied
to other Tomcat versions (e.g. tomcat85)

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list