|
P1:Tomcat6啟動的時候出現下面這樣的提示:
2007-12-31 9:51:51 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: D:/Sun/jre1.6.0_03/bin;.;C:/WINDOWS/Sun/Java/bin;C:/WINDOWS/system32;C:/WINDOWS;D:/oraclexe/app/oracle/product/10.2.0/server/bin;C:/WINDOWS/system32;C:/WINDOWS;C:/WINDOWS/System32/Wbem;.;D:/Sun/jdk1.6.0_03/bin;D:/Sun/jdk1.6.0_03/jre/bin;D:/ApacheTomcat/lib;
S1:實際這是建議使用apache的apr;apr 是apache portable runtime 用上這個後可以有效提高tomcat處理靜態頁面的能力.如果想使用apr的話, 實際操作很簡單,
下載 http://tomcat.heanet.ie/native/1.1.1/binaries/win32/tcnative-1.dll
將這個檔案複製到C:/WINDOWS/system32/下面,然後重新啟動tomcat,就會發現tomcat 的控制台資訊為:
2007-12-31 9:55:40 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
2007-12-31 9:55:40 org.apache.catalina.core.AprLifecycleListener init
資訊: Loaded Apache Tomcat Native library 1.1.8. |
我也出現這樣的錯誤。我按照上面的方法做了 ,發現錯誤依然如故,我又查看了其他的資料,發現要把下載下來的tcnative-1.dll放在tomcat的bin目錄下才可以。試了之後,重啟tomcat,終於可以了。