tomcat 7.0.32 启动出现 Apache Tomcat Native library 版本异常

本文解决在使用Apache Tomcat 7.0.32与APR库版本1.1.20不兼容导致的启动异常问题。通过下载并安装最新的APR库版本1.1.24,解决了Tomcat无法正常启动的问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

操作步骤:

1、下载tomcat 7.0.32 ,地址http://tomcat.apache.org/download-70.cgi

2、在eclipse中启动出现以下异常

===================

 

2012-11-14 13:24:28 org.apache.catalina.core.AprLifecycleListener init

严重: An incompatible version 1.1.20 of the APR based Apache Tomcat Native library is installed, while Tomcat requires version 1.1.24

2012-11-14 13:24:28 org.apache.catalina.core.AprLifecycleListener init

严重: An incompatible version 1.1.20 of the APR based Apache Tomcat Native library is installed, while Tomcat requires version 1.1.24

2012-11-14 13:24:28 org.apache.catalina.startup.SetAllPropertiesRule begin

警告: [SetAllPropertiesRule]{Server/Service/Connector} Setting property 'start-timeout' to '245' did not find a matching property.

2012-11-14 13:24:28 org.apache.catalina.core.AprLifecycleListener init

严重: An incompatible version 1.1.20 of the APR based Apache Tomcat Native library is installed, while Tomcat requires version 1.1.24

2012-11-14 13:24:28 org.apache.catalina.core.AprLifecycleListener init

严重: An incompatible version 1.1.20 of the APR based Apache Tomcat Native library is installed, while Tomcat requires version 1.1.24

2012-11-14 13:24:28 org.apache.catalina.core.AprLifecycleListener init

严重: An incompatible version 1.1.20 of the APR based Apache Tomcat Native library is installed, while Tomcat requires version 1.1.24

=====================


说明 Apache Tomcat Native library版本较旧了,下个新的版本1.1.24【tomcat-native-1.1.24-win32-bin.zip】,地址:http://tomcat.apache.org/download-native.cgi 


解压后把里面的文件【tcnative-1.dll】放到jdk 的bin目录下就可以了

 

启动日志如下:

 

========================

 

2012-11-14 13:31:24 org.apache.catalina.core.AprLifecycleListener init

信息: Loaded APR based Apache Tomcat Native library 1.1.24 using APR version 1.4.6.

2012-11-14 13:31:24 org.apache.catalina.core.AprLifecycleListener init

信息: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].

2012-11-14 13:31:24 org.apache.catalina.startup.SetAllPropertiesRule begin

警告: [SetAllPropertiesRule]{Server/Service/Connector} Setting property 'start-timeout' to '245' did not find a matching property.

2012-11-14 13:31:25 org.apache.catalina.core.AprLifecycleListener initializeSSL

信息: OpenSSL successfully initialized (OpenSSL 1.0.1c 10 May 2012)

2012-11-14 13:31:25 org.apache.coyote.AbstractProtocol init

=========================

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值