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

问题描述

  首先,这是一个提示信息而不是报错,并不影响 Tomcat 的使用。它是建议你使用一个 Tomcat 的性能调优原生库文件 tcnative-1.dll

  几天前,我想尝试一下 Apache Tomcat 8.0 以上的版本,结果在 Eclipse 中配置 Server 时它就报错了:The Apache Tomcat installation at this directory is version 8.5.40. A Tomcat 8.0 installation is expected.。参照网友们提供的方法也解决了,但是在启动 Tomcat 服务的时候,它出现了一个问题:严重: An incompatible version [1.1.29] of the APR based Apache Tomcat Native library is installed, while Tomcat requires version [1.2.14]

解决方法

  1. 打开网址:http://archive.apache.org/dist/tomcat/tomcat-connectors/native/
  2. 选择 Tomcat requires version [1.2.14],即下载 tomcat-native-1.2.14-win32-bin.zip
  3. 解压后里面有 32 位和 64 位的 tcnative-1.dll 文件,根据自己 JDKTomcat 版本选择,将其复制到 JDK 的 bin 目录下,Clean... Tomcat 之后重新启动 Tomcat 服务即可。

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

关于 tcnative-1.dll

The Apache Tomcat Native Library provides portable API for features
not found in contemporary JDK's. It uses Apache Portable Runtime as
operating system abstraction layer and OpenSSL for SSL networking and
allows optimal performance in production environments.
上一篇:有关C# struct的一个误区


下一篇:Ceph学习笔记(3)- Monitor