I am installing a java application in a docker container. It runs fine but I keep gettig this error in the logs:
INFO 1 --- [ost-startStop-1] o.a.catalina.core.AprLifecycleListener : The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [/usr/java/packages/lib/amd64:/usr/lib/x86_64-linux-gnu/jni:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/usr/lib/jni:/lib:/usr/lib]
So, I am trying to install this APR package by following this and this, and installing tomcat native by adding this line in my dockerfile:
RUN apt-get install -y libtcnative-1
However, when add this line, I get the following message in the logs:
ERROR 1 --- [ost-startStop-1] o.a.catalina.core.AprLifecycleListener : An incompatible version [1.1.33] of the APR based Apache Tomcat Native library is installed, while Tomcat requires version [1.2.14]
I tried installing:
apt-get install -y openjdk-8-jdk libapr1-dev
and
apt-get install -y openjdk-8-jdk libtcnative-1 libapr1-dev
But none of these worked .. I keep on getting the same messages.
I also tried installing from source by following the first answer here, but this did not also work.
Here is the rest of my dockerfile:
FROM ubuntu:16.04
RUN apt-get update \
&& apt-get install -y software-properties-common python-software-properties \
&& add-apt-repository ppa:mozillateam/ppa \
&& apt-get update \
&& apt-get install -y firefox firefox-esr
RUN apt-get install -y libtcnative-1 openjdk-8-jdk
Any help is appreciated. Thanks!