Fix : The Apache Tomcat Native library which allows using OpenSSL was not found



 

Getting below error under catilina log file ? Does your hosted website not working ?




Error : 

[main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent The Apache Tomcat Native library which allows using OpenSSL was not found on the java.library.path: [C:\Program Files (x86)\Apache Software Foundation\Tomcat 9.0\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files (x86)\Java\jre1.8.0_301\bin;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\VMware\VMware Workstation\bin\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\;C:\Program Files\Microsoft SQL Server\140\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\140\DTS\Binn\;C:\Program Files\Microsoft SQL Server\140\DTS\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn\;C:\Program Files\Microsoft Network Monitor 3\;C:\Windows\ServiceProfiles\LocalService\AppData\Local\Microsoft\WindowsApps;.]




Have you fresh installed Apache Tomcat ? Have you upgraded the Apache Tomcat ?




Don't worry i will help you .............. ✋




tcnative-1.dll is a module belonging to Tomcat Native Java Library from Apache Software Foundation.

Non-system processes like tcnative-1.dll originate from software you installed on your system. Since most applications store data on your hard disk and in your system's registry, it is likely that your computer has suffered fragmentation and accumulated invalid entries which can affect your PC's performance.


The tcnative-1.dll is an executable file on your computer's hard drive. This file contains machine code. If you start the software Tomcat Native Java Library on your PC, the commands contained in tcnative-1.dll will be executed on your PC. For this purpose, the file is loaded into the main memory (RAM) and runs there as a libtcnative-1 process






Go to Apache tomcat installed directory and check under bin folder



Did you find  "tcnative-1.dll"  ..... 



If you are getting this error than it means file should not be there...






I would request you kindly download or copy from another server   "tcnative-1.dll"    file and paste under bin folder






Note : you will get another error if under 32bit Tomcat version you will copy 64 bit version "tcnative-1.dll"  file or vice-versa. Make sure download/copy the appropriate file based on your tomcat version






Now restart the Tomcat service and enjoy......... Error will be  🏃 ................




Those who don't know how to download......



Then follow below steps



Go to the website Click Here To Download



Not typing too much.... just highlighted you can follow as per the screenshot


Please comment if unable to get it




Go to binaries directory




Open the zip folder from your system and you can found both 32 bit and 64bit dll




















If you enjoyed this article, follow and share it with your friends and colleagues!!!!!!!!!!! 👍


Posted By : Kamlesh Gaur


Comments