Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

incompatible version [1.1.34] of the APR based Apache Tomcat Native library

On my openSUSE Leap 42.3 server during Spring Boot 2.0.0.M6 application startup on Embedded Tomcat server I'm seeing the following error in the logs:

ERROR 30471 --- [main] o.a.catalina.core.AprLifecycleListener: An incompatible version [1.1.34] of the APR based Apache Tomcat Native library is installed, while Tomcat requires version [1.2.14]

Could you please explain what should be fixed there(and where) in order to avoid this error?

like image 931
alexanoid Avatar asked Feb 04 '23 02:02

alexanoid


2 Answers

Since the answer was incomplete for me and it is the first thread that google finds for the research i'll say what solves the problem for me.

I had to download the Apache Tomcat Native Library from https://tomcat.apache.org/download-native.cgi then put the content of the bin folder (with the tcnative-1.dll) into the jdk bin folder that i use.

Hope it will help someone!

source: APR version mismatch error upon startup

like image 67
Goldwynn Avatar answered Feb 11 '23 16:02

Goldwynn


This is because system installed tomcat(CATALINA_HOME) is conflicting libraries with spring boot tomcat. so to get rid of this error download the native library of required version and replace with bin folder's tcnative-1.dll

download link : https://archive.apache.org/dist/tomcat/tomcat-connectors/native/

like image 34
Alien Avatar answered Feb 11 '23 16:02

Alien