问题信息详细:
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 FilesJavajdk1.6.0_31in;C:WINDOWSSunJavain;C:WINDOWSsystem32;C:WINDOWS;C:Program FilesJavajdk1.6.0_31jrein;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:WINDOWSsystem32中即可, 重启tomcat就可以。
(1)
(2)
(3)
(4)
(5)
解决后的运行结果为:
org.apache.catalina.core.AprLifecycleListener init
信息: Loaded APR based Apache Tomcat Native library 1.1.23.
注:我用该方法没有成功