tomcat 问题: "The APR based Apache Tomcat Native library which allows optimal perf
问题信息详细:
2012-5-18 18:41:54 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:
C:\Program Files\Java\jdk1.6.0_31\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\Java\jdk1.6.0_31\jre\bin;C:/Program Files/......
?
问题出现的原因:
tomcat推荐使用apache的apr(Apache portable Run-time libraries,Apache可移植运行库).
?
解决方法:
下载地址:http://archive.apache.org/dist/tomcat/tomcat-connectors/native
?
通过上述链接下载tcnative-1.dll文件, 如图, 你可以自己选择最新的版本,然后将下载下来的文件放到C:\WINDOWS\system32中即可, 重启tomcat就可以。
?
(1)
?
(2)
?
(3)
?
(4)
?
(5)
?
解决后的运行结果为:
org.apache.catalina.core.AprLifecycleListener init
信息: Loaded APR based Apache Tomcat Native library 1.1.23.