在启动tomcat的时候发现日志里有这么个奇怪的东西的信息:
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\jre1.6.0_05\bin;D:\java\apache-tomcat-6.0.16\bin实际上是tomcat建议使用apache的apr,解决办法:是把tcnative-1.dll文件放至 Tomcat 6.0\bin 目录下,链接地址:http://tomcat.heanet.ie/native/1.1.10/binaries/win32/tcnative- 1.dll
转自http://wangxuan137450.blog.163.com/blog/static/11122469620104163315842/
我自己注:我出这个问题是在使用eclipse开发使用jndi和dbcp连MySQL的测试例子的时候,在启动tomcat的时候报的这个错,那个文件已经在我的tomcat下了,只需要在环境变量中的path中,加上tomcat的bin目录就不会报这个信息了。还有就是其实这个东西就是tomcat 官网上下载中的tomcat native。
其实这个问题不解决,我这里也可以顺利运行,但。。。。看着就是不爽
小白只提供解决办法,更深层次的东西可以参考一下博客
转自http://blog.csdn.net/xusongsong520/article/details/8009696