Bug#906447: tomcat8: Errors thrown when connecting

Markus Koschany apo at debian.org
Sat Aug 25 22:46:12 BST 2018


On Fri, 17 Aug 2018 20:50:14 +0300 Vassilis Virvilis <vasvir2 at gmail.com>
wrote:
[...]
> With java8 installed I am getting the following. Isn't this the sign that is compiled again against java9/java10?
> 
> 2018-08-17 16:20:46] [crit] java.lang.NoSuchMethodError: java.nio.ByteBuffer.limit(I)Ljava/nio/ByteBuffer;

I believe we should tighten the dependency on default-jre-headless. We
currently have for tomcat8-common:

default-jre-headless | java8-runtime-headless | java8-runtime

We should simply change that to

default-jre-headless (>= 10) | java10-runtime-headless | java10-runtime


Tomcat 8 works with the current default-jre package but you must
manually install a Java 10 runtime at the moment since the dependency is
satisfied with Java 8. Just switch to OpenJDK 10 with the
update-alternatives mechanism and the error will go away.

Markus

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-java-maintainers/attachments/20180825/7fbeea80/attachment-0001.sig>


More information about the pkg-java-maintainers mailing list