An incompatible version [1.2.7] of the APR based Apache Tomcat Native library is installed

Springboot中tomcat问题

报错如下

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

字面意思就是当前版本为1.2.7,需要重新下载1.2.14以上版本。分析SpringBoot的tomcat为内置环境,所以将新版本文件放在java安装目录下即可。

解决办法:

1.下载对应版本文件,链接如下:

http://archive.apache.org/dist/tomcat/tomcat-connectors/native/

2.解压后,在bin目录下找到tcnative-1.dll文件
我springboot环境为win10,64位系统,选择了x64文件下的dll文件

在这里插入图片描述
4.
然后,此时一顿操作,拷贝这个文件
立马就去覆盖掉C:\Windows\System32下的原tcnative-1.dll文件!

在这里插入图片描述
5.完成!

发布了47 篇原创文章 · 获赞 51 · 访问量 5万+

猜你喜欢

转载自blog.csdn.net/qq_41976613/article/details/102907955
今日推荐