Ubuntu 18.04 and openjdk 11

Playing with Ubuntu 18.04. I did the builtin tomcat8 and setup Lucee war. Found out Tomcat8 in 18.04 needs openjdk 11 or throws the ByteBuffer error.

Setup and works so far except for overview.cfm in admin. Get an error “Unable to make public long com.sun.management.internal.OperatingSystemImpl.getCommittedVirtualMemorySize()”. Noticed it is coming from GetSystemMetrics() which calls getCPU(). Don’t know if this is openjdk or Lucee. Forcing the url for other admin pages works fine.

Tomcat 8 should run on Java 7 or later:

The only thing I can think of is some libraries that were removed in Java 9 or 10 that are messing things up, possibly re-added in 11.

Java 1.7 or 1.8 should have worked just fine.

Found it. Debian bug that propagated to Ubuntu so Tomcat only runs Java 9 or higher.


Work around for the GetSystemMetrics() error:

Can we update the Tomcat in the Express Builds to the latest (currently 8.0.36) especially for 5.3 for Java 9+ compatibility? Need a ticket for that?