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了。 

你可能感兴趣的:(Tomcat5.5启动时提示“The Apache Tomcat Native library which allows optimal performance in production environments was not found”)