Tomcat5.5启动时提示“The Apache Tomcat Native library which allows optimal performance in production environments was not found”


1.在tomcat5.5启动时可能会收到下面的信息:
Oct 30, 2006 11:54:51 AM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/local/jdk1.5.0_08/jre/lib/i386/server:/usr/local/jdk1.5.0_08/jre/lib/i386:/usr/local/jdk1.5.0_08/jre/../lib/i386
这表示没有找到APR,在tomcat文档中有对tomcat与apr的关系的描述,并说明了APR的好处,参考链接如下:
http://tomcat.apache.org/tomcat-5.5-doc/apr.html

2.到APACHE网站去下载APR并安装,链接:http://apr.apache.org/

3.安装Apache Tomcat Native library,在tomcat/bin的目录下可以找到这个native包,但版本为1.1.3,安装后再启动,会得到如下提示:
Oct 30, 2006 12:40:42 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: An older version 1.1.3 of the Apache Tomcat Native library is installed, while Tomcat recommends version greater than 1.1.4
因此可以到下面网站下载新版:http://tomcat.heanet.ie/native/,目前最新为1.1.6,

4.安装好后按照提示信息设置一下环境变量,再启动就可以成功加载APR了。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值