1. 程式人生 > >An incompatible version [1.1.29] of the APR based Apache Tomcat Native library is installed, while Tomcat requires version [1.2.14]

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

根據 cli action win32 apache log bstr conn class

問題描述

??首先,這是一個提示信息而不是報錯,並不影響 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 服務即可。

技術分享圖片

關於 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.

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