论坛首页 Java企业应用论坛

tomcat启动报的一个info信息

浏览 6518 次
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
作者 正文
   发表时间:2009-12-21   最后修改:2010-03-12

我们看下列问题 : 在tomcat启动的时候

 

  

信息: The Apache Tomcat Native library which allows optimal 

performance in production environments was not found on the 

java.library.path: F:\tool\Tomcat 6.0

\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;F:\to

ol\apache-ant-1.7.1\bin;C:\Program Files\Java\jdk1.6.0_03

\bin;C:\Program Files\Common 

Files\NetSarang;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32

\Wbem;C:\Program Files\Common Files\Thunder Network\KanKan\Codecs

 出现这个信息应该问题不大,因为不影响ytomcat的正常运行.

 

但是出现了这个东东,还是在网上搜了下

 

通过网上查询,我获取到的信息是:先从网上 :

http://tomcat.heanet.ie/native/ 下载一个tcnative-1.dll  你到

http://tomcat.heanet.ie/native/1.1.0/binaries/win32/目录下就可以看

见了.有好几个东东,我们就只下tcnative-1.dll , 然后把这个 tcnative-1.dll 文件放到 <$JAVA_HOME>/bin(C:\Program 

Files\Java\jdk1.6.0_13\bin)下,若还不行 ,再将此文件放到tomcat 的

bin 目录下

 

那就下个嘛! 嘿嘿

 

在myeclipse下面 启动tomcat 
------------------------------------------------------
2009-12-21 10:43:00 org.apache.catalina.core.AprLifecycleListener 

init
严重: An incompatible version 1.1.0 of the Apache Tomcat Native 

library is installed, while Tomcat requires version 1.1.8 

---------------————————————————————————
说明下载的tcnative-1.dll版本不对,我用的tomcat是6.0的

 怎么办?按要求下 1.18的咯,\(^o^)/~   ,下完,替换原来的 , 再次启动

 

正确

2009-12-21 10:37:52 org.apache.catalina.core.AprLifecycleListener 

init
信息: An older version 1.1.8 of the Apache Tomcat Native library is 

installed, while Tomcat recommends version greater then 1.1.10
2009-12-21 10:37:52 org.apache.catalina.core.AprLifecycleListener 

init
信息: Loaded Apache Tomcat Native library 1.1.8.
2009-12-21 10:37:52 org.apache.catalina.core.AprLifecycleListener 

init
信息: APR capabilities: IPv6 [false], sendfile [true], accep
t filters [false], random [true].

 

没有报严重错误 ,提示说,有更高的版本 1.1.10

成功了O(∩_∩)O哈!

 

下面是我下的最新的版本, 1.1.14 ,

 

2009-12-28 14:52:28 org.apache.catalina.core.AprLifecycleListener init
信息: Loaded Apache Tomcat Native library 1.1.14.
2009-12-28 14:52:28 org.apache.catalina.core.AprLifecycleListener init
信息: APR capabilities: IPv6 [false], sendfile [true], accept filters [false], random [true].

。。。。。。。。。。。。。。。OK了

 

 

 

但是为什么要解决这个问题(⊙o⊙)? 。查下

 

 

修正这个问题,当然不修正tomcat也能正常启动,修正后会有下列好处:
来自网络:

1.使用Apache Tomcat Native library提升Tomcat性能

2.
apr全称Apache Portable Runtime,即可移植运行库。
Tomcat 可以用 Apache Portable Runtime 来提供更强性能,提升Web静态页

面的处理能力,不再需要专门的Web Server来处理静态页面了
但是APR的支持需要安装三个本地组件
APR support requires three main native components to be installed: 
1、APR library 
2、JNI wrappers for APR used by Tomcat (libtcnative) 
3、OpenSSL libraries 
如果想使用apr的话,操作很简单。
在 http://tomcat.heanet.ie/native上 的binaries/win32/tcnative-1.dll

目录下下载最新版的tcnatie-1.dll文件,放到
c:/program files/java/bin目录下,然后重启tomcat,一切正常。

 

 

以上的东西,我以前都是忽略掉的 ,但是问题不自己弄清楚,估计永远是问题.  以上只是解决问题的方式.其实还有其他的方式

   发表时间:2010-04-26  
tomcat 6.0.26 已经 Windows版 已经原生支持了……
0 请登录后投票
   发表时间:2010-04-26  
开心就好 写道
tomcat 6.0.26 已经 Windows版 已经原生支持了……



那就是我 还没有用到 6.0.26这个版本了
0 请登录后投票
论坛首页 Java企业应用版

跳转论坛:
Global site tag (gtag.js) - Google Analytics