The solution to the lack of tcnative-1.dll in tomcat

The following problems occur when tomcat starts:

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\jdk1.6.0\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files\Java\jdk1.6.0\jre\bin;C:/Program Files/Java/jdk1.6.0/bin/../jre/bin/client;C:/Program Files/Java/jdk1.6.0/bin/../jre/bin;C:/Program Files/Java/jdk1.6.0/bin/../jre/lib/i386;C:\Program Files\MySQL\MySQL Server 5.5\bin;C:\Program Files\Java\jdk1.6.0\bin;d:\oracle\product\11.1.0\db_1\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\ATI Technologies\ATI.ACE\Core-Static;D:\work\eclipse-jee-helios-SR2-win32\eclipse;

Resolution record:

Actually this is the apr that recommends using apache.

 

Download  http://tomcat.heanet.ie/native/1.1.12/binaries/win32/tcnative-1.dll

Copy this file to C:/WINDOWS/system32/,. It can also be placed in the bin directory under the Tomcat installation path

Then restart tomcat, you will find that the console information of tomcat is:

Here's the advice from one of the blog posts:

I made a reference, downloaded tcnative-1.dll and put it in the bin directory of tomcat and found that this file already exists. I think this file of tomcat should have its own use, so I did not replace it, but made a backup and then just replaced.

Then after I put the downloaded one in it, the general problem is that the downloaded version does not match the tomcat version: a serious warning appears:

Then put  tcnative-1.dll in the bin of tomcat to C:/WINDOWS/system32/ and start it.

The following prompt appears:

2012-7-3 22:29:57 org.apache.catalina.core.AprLifecycleListener init
信息: Loaded APR based Apache Tomcat Native library 1.1.24 using APR version 1.4.6.
2012-7-3 22:29:57 org.apache.catalina.core.AprLifecycleListener init
信息: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
2012-7-3 22:29:58 org.apache.catalina.core.AprLifecycleListener initializeSSL
信息: OpenSSL successfully initialized (OpenSSL 1.0.1c 10 May 2012)

It seems that this problem has been solved, if there are still problems, continue to record.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325154568&siteId=291194637