An incompatible version 1.2.17 of the Apache Tomcat Native library ...

jboss-5.1.0.GA 启动项目出现以下报错:

ERROR [org.apache.catalina.core.AprLifecycleListener] (main) An incompatible version 1.2.17 of the Apache Tomcat Native library is installed, while Tomcat requires version 1.1.8

疑问:按说Jboss5以后应该是没有集成tomcat容器的,单看这个报错确实出现了,版本不一致。

解决方法:根据报错,下载需要的版本即可。

(1)这里需要 下载对应版本的 tcnative-1.dll 文件,下载连接:Index of /dist/tomcat/tomcat-connectors/native/1.1.18/binaries/win64/x64

(根据报错版本找到对应的路径,我的是1.1.8)

(2)将文件 tcnative-1.dll 替换路径 C:\Windows\System32 下的同名文件。如果这个路径下没有这个文件,那就把 tcnative-1.dll 拷贝到 项目使用的jdk 的安装目录 bin 下也可以

(3)重新编译项目启动,这个错误应该是能解决的。

配置完成。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值