Impossible to run tomcat8 on Java 8 on Ubuntu 18.04
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tomcat8 (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
I just upgraded from Ubuntu 17.10 to 18.04 and I ended up with a failing instance of Tomcat.
I get the following error in the log
08-May-2018 20:52:38.487 SEVERE [http-nio-
java.
at org.apache.
at org.apache.
at org.apache.
at org.apache.
at org.apache.
at org.apache.
at java.util.
at java.util.
at org.apache.
at java.lang.
This seems to indicate that tomcat8 package has been built using Java 9+ (which contains a breaking change in the return type of ByteBuffer#position method).
I really need to run it with Java 8 in my case (and Tomcat 8 is supposed support Java 8 anyway) but Ubuntu should build it with Java 8 for that (and then it should work just fine in Java 9 too).
Java 8 is still the current LTS version of Java so don't bury it too quickly :)
I don't really have any workaround idea to propose other that not using the standard tomcat8 Ubuntu package and install it "by hand" instead. But then my other issue is that I can't use another debian package which depends on tomcat8 package :)
Status changed to 'Confirmed' because the bug affects multiple users.