Tomcat启动的时候出现下面这样的提示:
2011-8-4 19:31:59 org.apache.catalina.core.AprLifecycleListener init
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path:
E:\DEV\jdk1.6\bin;E:\DEV\Tomcat 6.0\bin
.......
实际这是建议使用apache的apr。
如果想使用apr的话, 实际操作很简单,
下载 http://tomcat.heanet.ie/native/1.1.10/binaries/win32/tcnative-1.dll
将这个文件复制到C:\WINDOWS\system32\,.也可以放在Tomcat安装路径下的bin目录里
然后重新启动tomcat,就会发现tomcat 的控制台信息为:
2011-8-4 19:33:52 org.apache.catalina.core.AprLifecycleListener init
严重: An incompatible version 1.1.10 of the APR based Apache Tomcat Native library is installed, while Tomcat requires version 1.1.17
那就 下载 http://tomcat.heanet.ie/native/1.1.14/binaries/win32/tcnative-1.dll
(可以将 路径分解,看看到底是什么内容嘛)
将这个文件复制到C:\WINDOWS\system32\,.也可以放在Tomcat安装路径下的bin目录里
然后重新启动tomcat,就会发现tomcat 的控制台信息为:
2011-8-4 19:35:53 org.apache.catalina.core.AprLifecycleListener init
信息: An older version 1.1.17 of the APR based Apache Tomcat Native library is installed, while Tomcat recommends version greater than 1.1.19
2011-8-4 19:35:53 org.apache.catalina.core.AprLifecycleListener init
信息: Loaded APR based Apache Tomcat Native library 1.1.17.
2011-8-4 19:35:53 org.apache.catalina.core.AprLifecycleListener init
信息: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
特此记下,以免忘记