出现错误日志:The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path

tomcat6出现错误日志:

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

解决:

通过安装和配置apr解决。

Tomcat Native 可以让 Tomcat 使用 Apache 的 apr 包来处理包括文件和网络IO操作,以提升性能。

1.安装:yum -y install openssl-devel

2.下载:apr-1.4.6.tar.gz、apr-util-1.4.1.tar.bz2、tomcat-native-1.1.19-src.tar.gz

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

3.安装apr:

tar -xzf apr-1.4.6.tar.gz

cd apr-1.4.6

./configure && make && make install

tar -xjf apr-util-1.4.1.tar.bz2

cd apr-util-1.4.1

./configure --with-apr=/usr/local/apr   && make  && make install

tar -xzf tomcat-native-1.1.19-src.tar.gz

cd /opt/tomcat-native-1.1.19-src/jni

./configure --with-apr=/usr/local/apr --with-java-home=/opt/jdk && make && make install

4.设置apr的环境变量:

vi /etc/profile

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/apr/lib

保存退出

source /etc/profile

再查看catalina.out日志,发现不再报错了:

信息: An older version 1.1.19 of the APR based Apache Tomcat Native library is installed, while Tomcat recommends a minimum version of 1.1.22

时间: 2024-12-12 09:07:39

出现错误日志:The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path的相关文章

IDEA搭建ssm框架测试衍生出的问题The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\Develop\jdk7\jdk1.7.0_79\bin;

最近玩起IDEA这开发工具,搭建ssm框架测试时,部署项目出现如下问题: 信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\Develop\jdk7\jdk1.7.0_79\bin;C:\Windows\Sun\Java\bin;C:\Windows

信息: 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)\Java\jre1.8.0_111\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Win

The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path 问题的解决

Tomcat 启动出现信息如下: 信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path:XXXX 出现原因分析: Tomcat建议使用apache的apr,来更好的运行Tomcat; ---------------------------------------

【问题解决:信息提示】SpringBoot启动时提示The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path

问题描述 springboot程序在启动时提示信息 [2018-10-24 21:59:05.214] - 440 信息 [restartedMain] --- org.apache.catalina.core.StandardService: Starting service [Tomcat] [2018-10-24 21:59:05.220] - 440 信息 [restartedMain] --- org.apache.catalina.core.StandardEngine: Start

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

今天 ,我在Eclipse中启动Tomcat6.0时,发生如下异常: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path:..... 解决如下: 在http://tomcat.heanet.ie/native/下载dll文件:tcnative-1.dll(现在版本是1.1.14) 把它扔

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

今天测试主机在编译发布完项目之后,发现测试环境的项目启不来了,于是,我就通过打开测试主机的日志查看到底是怎么回事, 发现日志中有一条错误信息,正如标题中的内容,这种错误解决起来并不难,如下是我的解决方法. 打开网址:http://archive.apache.org/dist/tomcat/tomcat-connectors/native,进入 1.1.22 文件夹中,然后进入 binaries 文件夹, 再根据相应的系统进入对应文件夹,我选择的是win64,如图 再进入x64项目中,下载tcn

tomcant报错The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path

下载与你Tomcat对应版本的 tcnative-1.dll,放到apache-tomcat-7.0.57\bin 目录下,重启tomcat http://archive.apache.org/dist/tomcat/tomcat-connectors/native/

The APR based Apache Tomcat Native library tomcat启动错误

The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib 由代码可知是缺少APR模块导致的错误. 1.安装APR wget http://apache

Tomcat 部署 The APR based Apache Tomcat Native ...

Tomcat启动时提示org.apache.catalina.core.AprLifecycleListener- ApacheTomcatJavaJNIIE 网上针对此问题提供的文章很多,但多数和我遇到的情况有出入,所以我将其记录于此 最近开发中需要使用Tomcat,随意找来个较新的版本6.0.20就用.发现启动时提示: "2010-5-12 18:06:06 org.apache.catalina.core.AprLifecycleListener init 信息: The APR base