在eclipse中启动tomcat报如下错误:
2010/11/15 上午 12:13:08 org.apache.catalina.core.AprLifecycleListener init
资讯:
The 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_05\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\Java\jdk1.6.0_05\bin\..\jre\bin\client;C:\Program Files\Java\jdk1.6.0_05\bin\..\jre\bin;C:\Program Files\Java\jdk1.6.0_05\bin\..\jre\bin\client;C:\Program Files\Java\jdk1.6.0_05\bin\..\jre\bin;C:\Program Files\Java\jdk1.6.0_05\bin;C:\Program Files\Microsoft DirectX SDK (November 2007)\Utilities\Bin\x86;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\ATI Technologies\ATI Control Panel;C:\Program Files\MySQL\MySQL Server 5.0\bin;C:\Program Files\Inventec\Dreye\DreyeSA\DreyeTTs\eTTS\;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Microchip\MPLAB C30\bin;
2010/11/15 上午 12:13:08 org.apache.coyote.http11.Http11Protocol init
资讯: Initializing Coyote HTTP/1.1 on http-8080
2010/11/15 上午 12:13:08 org.apache.catalina.startup.Catalina load
资讯: Initialization processed in 816 ms
2010/11/15 上午 12:13:08 org.apache.catalina.core.StandardService start
资讯: Starting service Catalina
2010/11/15 上午 12:13:08 org.apache.catalina.core.StandardEngine start
资讯: Starting Servlet Engine: Apache Tomcat/6.0.14
2010/11/15 上午 12:13:10 org.apache.coyote.http11.Http11Protocol start
资讯: Starting Coyote HTTP/1.1 on http-8080
2010/11/15 上午 12:13:10 org.apache.jk.common.ChannelSocket init
资讯: JK: ajp13 listening on /0.0.0.0:8009
2010/11/15 上午 12:13:10 org.apache.jk.server.JkMain start
资讯: Jk running ID=0 time=0/47 config=null
2010/11/15 上午 12:13:10 org.apache.catalina.startup.Catalina start
资讯: Server startup in 598 ms
解决方法如下:
1.访问网址:
http://tomcat.apache.org/download-native.cgi
2.然后找到:You may download them from HERE
3.也可直接点击此处:
http://mirror.bjtu.edu.cn/apache/tomcat/tomcat-connectors/native/1.1.20/binaries/
4.然后找到相应的目录,下载tcnative-1.dll
5.然后将tcnative-1.dll文件拷贝到%JAVA_HOME%/bin目录下(即你安装的JDK的bin目录下)
6.然后重启 .
附件为本人下载的tcnative-1.dll , 该版本是基于win32的机器.
写完收工.