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

问题信息详细:

信息: 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 (x86)Javajre1.8.0_111in;C:WindowsSunJavain;C:Windowssystem32;C:Windows;C:/Program Files (x86)/Java/jre1.8.0_111/bin/client;C:/Program Files (x86)/Java/jre1.8.0_111/bin;C:/Program Files (x86)/Java/jre1.8.0_111/lib/i386;E:appzhongzhproduct11.2.0dbhome_1in;C:ProgramDataOracleJavajavapath;D:appzhongzhproduct11.2.0client_1in;C:Program Files (x86)InteliCLS Client;C:Program FilesInteliCLS Client;C:Windowssystem32;C:Windows;C:WindowsSystem32Wbem;C:WindowsSystem32WindowsPowerShellv1.0;C:Program Files (x86)IntelIntel(R) Management Engine ComponentsDAL;C:Program FilesIntelIntel(R) Management Engine ComponentsDAL;C:Program Files (x86)IntelIntel(R) Management Engine ComponentsIPT;C:Program FilesIntelIntel(R) Management Engine ComponentsIPT;c:Program Files (x86)HPHP Performance Advisor;C:Windowssystem32configsystemprofile.dnxin;C:Program FilesMicrosoft DNXDnvm;C:Program FilesMicrosoft SQL Server130ToolsBinn;C:Program Files (x86)Windows Kits8.1Windows Performance Toolkit;C:TDM-GCC-64in;C:PROGRAM FILESCOMMON FILESFAST;C:PROGRAM FILESCOMMON FILESFASTCAD;C:Program FilesJavajdk1.7.0_17in;C:Program FilesJavajdk1.7.0_17jrein;C:Program Files (x86)Microsoft SQL Server80ToolsBinn;C:Program FilesMicrosoft SQL Server90DTSBinn;C:Program FilesMicrosoft SQL Server90Toolsinn;C:Program Files (x86)Microsoft SQL Server90Toolsinn;C:Program Files (x86)Microsoft SQL Server90DTSBinn;C:Program Files (x86)Microsoft SQL Server90ToolsBinnVSShellCommon7IDE;C:Program Files (x86)Microsoft Visual Studio 8Common7IDEPrivateAssemblies;C:PROGRAM FILES (X86)COMMON FILESFAST;C:PROGRAM FILES (X86)COMMON FILESFASTCAD;D:搜狗高速下载eclipse-jee-kepler-SR2-win32eclipse;;.

问题出现的原因:

tomcat推荐使用apache的apr(Apache portable Run-time libraries,Apache可移植运行库).

解决方法:

下载地址:http://archive.apache.org/dist/tomcat/tomcat-connectors/native

通过上述链接下载tcnative-1.dll文件, 如图, 你可以自己选择最新的版本,然后将下载下来的文件放到C:WINDOWSsystem32中即可, 重启tomcat就可以。

 

解决后的运行结果为:

org.apache.catalina.core.AprLifecycleListener init

信息: Loaded APR based Apache Tomcat Native library 1.1.23.

原文地址:https://www.cnblogs.com/ZHONGZHENHUA/p/6245784.html