`

The APR based Apache Tomcat Native library

 
阅读更多
The APR based Apache Tomcat Native library 异常


tomat在linux服务器上启动报The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/local/jdk1.6.0_26/jre/lib/i386/server:/usr/local/jdk1.6.0_26/jre/lib/i386:/usr/local/jdk1.6.0_26/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib
异常解决方法:

apr 与 tomcat-native 提供更好的伸缩性、性能和集成到本地服务器技术。

如果没有apr技术,启动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/jdk1.6.0_06/jre/lib/i386/client:/usr/java/jdk1.6.0_06/jre/lib/i386:/usr/java/jdk1.6.0_06/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib
按照官方说明需要:

APR library
OpenSSL libraries
openssl 可以用 yum install openssl-devel,apr还是下载*.gz来安装。
apr-1.3.2.tar.gz(下载URL:http://www.apache.org/dist/apr/apr-1.4.5.tar.gz)

apr-util-1.3.2.tar.gz(下载URL:http://www.apache.org/dist/apr/apr-util-1.3.12.tar.gz)


tomcat-native.tar.gz 可以在tomcat/bin目录下找到。

安装 apr

wget http://apache.mirror.phpchina.com/apr/apr-1.3.2.tar.gz 
tar zxvf apr-1.3.2.tar.gz 
cd apr-1.3.2 
./configure 
make 
make install 
apr 默认安装在 /usr/local/apr

安装 apr-util

wget http://apache.mirror.phpchina.com/apr/apr-util-1.3.2.tar.gz 
tar zxvf apr-util-1.3.2.tar.gz 
cd apr-util-1.3.2 
./configure --with-apr=/usr/local/apr 
make 
make install 
安装 tomcat-native

cd /usr/local/tomcat-6.0.18/bin 
tar zxvf tomcat-native.tar.gz 
cd tomcat-native-1.1.14-src/jni/native 
./configure --with-apr=/usr/local/apr --with-java-home=/usr/java/jdk1.6.0_11 
make 
make install 
设置 apr 的环境变量:

vi /etc/profile 
# 后面添加以下内容 
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/apr/lib 
# 使profile生效, 
source /etc/profile 
启动 tomcat 后, 看日志:

bin/startup.sh 
head logs/catalina.out 
可以看到以下结果:

信息: Loaded APR based Apache Tomcat Native library 1.1.14.
2009-1-13 11:12:51 org.apache.catalina.core.AprLifecycleListener init
信息: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].


reference:http://wander312.iteye.com/blog/1132975
分享到:
评论

相关推荐

    The APR based Apache Tomcat Native library which allows optimal performance in p

    标题中的"The APR based Apache Tomcat Native library"是指Apache Portable Runtime(APR)库的一个组件,即Apache Tomcat Native库。这个库是专门为Apache Tomcat设计的,目的是为了提高其在处理网络I/O、系统调用...

    tomcat 启动报APR based Apache Tomcat Native library not found

    标题 "tomcat 启动报APR based Apache Tomcat Native library not found" 指出的问题是关于Apache Tomcat服务器在启动时找不到基于APR(Apache Portable Runtime)的本机库。这通常涉及到Tomcat使用APR库来提高性能...

    APR based Apache Tomcat Native library 1.1.14.

    综上所述,"APR based Apache Tomcat Native library 1.1.14"对于优化Apache Tomcat的性能、安全性和兼容性具有重要意义。开发者和系统管理员应当了解并掌握这些知识点,以便在实际环境中充分利用这个库的优势。

    启动tomcat出错The Apache Tomcat Native library which allows optimal performance in production environments was not found

    TOMCAT昨天突然自己宕掉服务了,怎么重起都不行,后来查看logs中catalina.out 日志发现如下错误 INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not ...

    tomcat-native-1.2.14-win64位-bin.zip

    解决tomcat 启动 An incompatible version [1.2.14] of the APR based Apache Tomcat Native library 错误,64BIN使用

    tcnative-1.dll

    严重: An incompatible version 1.1.14 of the APR based Apache Tomcat Native library is installed, while Tomcat requires version 1.1.17 该资源为1.1.22版本,之后放到,tomcat/lib或者system32即可

    tcnative-1.dll 1.2.16下载 1.2.14可用

    An incompatible version [1.1.33] of the APR based Apache Tomcat Native library is installed, while Tomcat requires version [1.2.14] 将文件放在:C:\Windows\System32 tcnative-1.dll 1.2.16下载 1.2.14...

    有关Tomcat--APR问题配置

    The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path CProgram FilesJavajdk1.6.0_04jrebin;CProgram FilesTomcat ...

    Tomcat Native Liberay 文件

    The Apache Tomcat Native Liberay which allows optimal performance in production environments was not found on the java.library.path:E:\java\jdk1.5.0_05

    CentOS 6.5上的Tomcat启动报错问题解决方法

    The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path 2、第二个错误,错误详情: Exception in thread “main” ...

    tomcat启动的问题--apr

    信息: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\Java\jre1.5.0_11\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\...

    tcnative-1.dll 1.2.18 32位64 位

    tcnative-1.dll 1.2.18 tomcat 启动报错 The APR based Apache Tomcat Native library which allows optimal performance in production 问题的解决需要这个,注意自己需要什么版本,之前下了1.2.14 显示版本不对:...

    1.1.32和1.1.33的64位tcnative-1.dll

    这个库文件在Java应用程序中扮演着关键角色,特别是对于Apache Tomcat这样的Java应用服务器,它是一个开源的、用于部署Java Web应用的服务器。本文将深入探讨1.1.32和1.1.33这两个版本的64位tcnative-1.dll,并讨论...

    tomcat-native-1.2.14-win32位-bin - .zip

    描述中提到的错误"An incompatible version [1.2.14] of the APR based Apache Tomcat Native library"通常发生在用户试图使用一个与当前Tomcat版本不兼容的Tomcat Native库时。这个问题可能会导致Tomcat启动失败或...

    tomcat-native-1.2.14.zip

    配置springboot环境时报错: ...An incompatible version [1.1.16] of the APR based Apache Tomcat Native library is installed, while Tomcat requires version [1.2.14] 将文件放在:C:\Windows\System32

    Tomcat Native

    idea springboot项目启动时Tomcat报错:An incompatible version [1.1.33] of the APR based Apache Tomcat Native library is installed, while Tomcat requires version [1.2.14] 原因:安装了基于APR的Apache ...

    tcnative-1.zip

    An imcompatible version 1.1.27 of the APR based Apache Tomcat Native library is installed, while Tomcat requires version 1.1.32

    tcnative-1.DLL.zip

    解决The APR based Apache Tomcat Native library which allows optimal performance in production environm;解决tomcat启动时如下异常:在java.library.path中找不到基于APR的Apache Tomcat Native库,它可以在...

Global site tag (gtag.js) - Google Analytics