机器上装的是Tomcat 6.0,Windows server2003 的服务器,每次启动时总有如下提示:

The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path

解决方案如下:

所谓的Apache Tomcat Native library其实叫APR,全称为:Apache Portable Runtime and Tomcat。可以通过下面地址访问:http://tomcat.apache.org/tomcat-5.5-doc/apr.html

用于Windows的APR是一个名称为:tcnative-1.dll 的文件,下载地址:http://tomcat.heanet.ie/native/,目前最新版本是1.1.9。

把这个 tcnative-1.dll 文件放到<$JAVA_HOME>/bin下,重启Tomcat,刚才的提示不见了,看来OK了:

2007-10-11 0:30:56 org.apache.coyote.http11.Http11AprProtocol init
信息: Initializing Coyote HTTP/1.1 on http-8080

相关文章:

  • 2022-02-07
  • 2021-11-29
  • 2021-11-10
  • 2021-09-01
  • 2021-06-10
  • 2022-02-07
  • 2021-09-15
  • 2021-06-26
猜你喜欢
  • 2022-01-07
  • 2021-08-26
  • 2021-07-03
  • 2022-01-28
  • 2022-12-23
  • 2021-10-16
  • 2022-01-05
相关资源
相似解决方案