Tomcat incompatible APR native version

Hi,

I’ve just deployed the latest Tomcat image on Azure (Tomcat 8.5.23). I haven’t done any changes to the installation/configuration (yet).

When Tomcat starts I get a sever error log (catalina.out) entry:

An incompatible version [1.2.8] of the APR based Apache Tomcat Native library is installed, while Tomcat requires version [1.2.14]

I didn’t have this problem with previous versions.

How can I update the Tomcat Native library to 1.2.14?

Cheers,
Oliver

Catalina.out

25-Oct-2017 02:03:48.872 SEVERE [main] org.apache.catalina.core.AprLifecycleListener.init An incompatible version [1.2.8] of the APR based Apache Tomcat Native library is installed, while Tomcat requires version [1.2.14]
25-Oct-2017 02:03:48.912 SEVERE [main] org.apache.catalina.core.AprLifecycleListener.init An incompatible version [1.2.8] of the APR based Apache Tomcat Native library is installed, while Tomcat requires version [1.2.14]
25-Oct-2017 02:03:48.952 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version:        Apache Tomcat/8.5.23
25-Oct-2017 02:03:48.953 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built:          Sep 28 2017 10:30:11 UTC
25-Oct-2017 02:03:48.953 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server number:         8.5.23.0
25-Oct-2017 02:03:48.953 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name:               Linux
25-Oct-2017 02:03:48.953 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version:            3.13.0-132-generic
25-Oct-2017 02:03:48.953 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture:          amd64
25-Oct-2017 02:03:48.953 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home:             /opt/bitnami/java
25-Oct-2017 02:03:48.953 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version:           1.8.0_144-b01
25-Oct-2017 02:03:48.953 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor:            Oracle Corporation
25-Oct-2017 02:03:48.953 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE:         /opt/bitnami/apache-tomcat
25-Oct-2017 02:03:48.953 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME:         /opt/bitnami/apache-tomcat
25-Oct-2017 02:03:48.954 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=/opt/bitnami/apache-tomcat/conf/logging.properties
25-Oct-2017 02:03:48.954 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
25-Oct-2017 02:03:48.954 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -XX:MaxMetaspaceSize=512M
25-Oct-2017 02:03:48.954 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xms2048M
25-Oct-2017 02:03:48.954 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xmx4096M
25-Oct-2017 02:03:48.954 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.awt.headless=true
25-Oct-2017 02:03:48.954 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -XX:+UseG1GC
25-Oct-2017 02:03:48.954 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dfile.encoding=UTF-8
25-Oct-2017 02:03:48.954 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
25-Oct-2017 02:03:48.954 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
25-Oct-2017 02:03:48.954 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=/opt/bitnami/apache-tomcat
25-Oct-2017 02:03:48.955 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=/opt/bitnami/apache-tomcat
25-Oct-2017 02:03:48.955 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=/opt/bitnami/apache-tomcat/temp
25-Oct-2017 02:03:48.955 SEVERE [main] org.apache.catalina.core.AprLifecycleListener.init An incompatible version [1.2.8] of the APR based Apache Tomcat Native library is installed, while Tomcat requires version [1.2.14]
25-Oct-2017 02:03:49.074 SEVERE [main] org.apache.catalina.core.AprLifecycleListener.init An incompatible version [1.2.8] of the APR based Apache Tomcat Native library is installed, while Tomcat requires version [1.2.14]
25-Oct-2017 02:03:49.074 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["ajp-nio-8009"]
25-Oct-2017 02:03:49.091 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
25-Oct-2017 02:03:49.092 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 512 ms
25-Oct-2017 02:03:49.116 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]
25-Oct-2017 02:03:49.116 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.5.23
25-Oct-2017 02:03:49.133 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/opt/bitnami/apache-tomcat/webapps/host-manager]
25-Oct-2017 02:03:49.567 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
25-Oct-2017 02:03:49.607 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/opt/bitnami/apache-tomcat/webapps/host-manager] has finished in [473] ms
25-Oct-2017 02:03:49.607 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/opt/bitnami/apache-tomcat/webapps/ROOT]
25-Oct-2017 02:03:49.769 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
25-Oct-2017 02:03:49.774 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/opt/bitnami/apache-tomcat/webapps/ROOT] has finished in [167] ms
25-Oct-2017 02:03:49.775 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/opt/bitnami/apache-tomcat/webapps/examples]
25-Oct-2017 02:03:50.119 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
25-Oct-2017 02:03:50.136 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/opt/bitnami/apache-tomcat/webapps/examples] has finished in [361] ms
25-Oct-2017 02:03:50.136 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/opt/bitnami/apache-tomcat/webapps/docs]
25-Oct-2017 02:03:50.229 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
25-Oct-2017 02:03:50.231 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/opt/bitnami/apache-tomcat/webapps/docs] has finished in [95] ms
25-Oct-2017 02:03:50.232 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/opt/bitnami/apache-tomcat/webapps/manager]
25-Oct-2017 02:03:50.332 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
25-Oct-2017 02:03:50.334 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/opt/bitnami/apache-tomcat/webapps/manager] has finished in [103] ms
25-Oct-2017 02:03:50.337 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-nio-8009"]
25-Oct-2017 02:03:50.344 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 1251 ms

Hi @oliver2s,

Thanks a lot for reporting. We will work on a new revision that fixes the issue. I will let you know once it gets released.

Regards

Hello @oliver2s,

We have updated Apache Tomcat Native. We are going to release the new revision (8.5.23-1) in a few hours.

Regards

Thanks, I’ll give it another try.

@davidg How long would it usually take before the update to find its way through to Azure? Currently it’s still showing as Tomcat 8.5.23-0 (Ubuntu 14.04)

Hi @oliver2s,

This is already published in our launchpad (https://azure.bitnami.com/). The publishing in Azure marketplace (https://azuremarketplace.microsoft.com/) is on Azure’s side and could take some days.

I hope it helps.

Regards