今天下载Windows安装版的tomcat5.5,安装完以后启动时候出现:

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

意思是说在产品环境下可以优化工作性能的Tomcat的本地包没有找到。

Google了一下,原来Tomcat从5.5版本后增加了APR技术(Apache Portable Runtime),这是一个用C语言写成文件包,目的在于提高Tomcat的服务性能,从而使得Tomcat将不仅仅担任一个容器的功能,而是要成为一个一般的web服务器(general purpose webserver)。 所以按照上面的提示,下载了tcnative-1.dll文件,放入上面提示所列出的java.library.path中的任意一个里面,结果又出现下面的错误:

严重: An incompatible version 1.1.1 of the Apache Tomcat Native library is installed, while Tomcat requires version 1.1.3

意思是说刚才下的版本过低,需要下载一个更高高版本的。

具体下载地址:tomcat.heanet.ie/native/

里面列出了1.1.0-1.1.9所有版本的链接地址!随便下载一个高于1.1.3版本的替换掉刚才文件就可以,既然有高版本的,当然下最新的喽~~

我下载的是1.1.9 替换掉以后再次启动tomcat会出现:

org.apache.coyote.http11.Http11AprProtocol init 

这样就说明我们刚才成功了~~ 庆祝一下!

顺便附上各个版本tcnative-1.dll文件的下载地址,省的麻烦~~---->

1.1.9/           1-Apr-2007 20:45    - tomcat.heanet.ie/native/1.1.9/binaries/win32/tcnative-1.dll 1.1.8/           14-Dec-2006 09:19    - tomcat.heanet.ie/native/1.1.8/binaries/win32/tcnative-1.dll 1.1.7/           13-Nov-2006 12:18    -tomcat.heanet.ie/native/1.1.7/binaries/win32/tcnative-1.dll 1.1.6/           17-Oct-2006 08:22    - tomcat.heanet.ie/native/1.1.6/binaries/win32/tcnative-1.dll 1.1.4/           07-Sep-2006 09:11    -tomcat.heanet.ie/native/1.1.4/binaries/win32/tcnative-1.dll 1.1.3/           14-Apr-2006 09:36    - tomcat.heanet.ie/native/1.1.3/binaries/win32/tcnative-1.dll 1.1.2/           09-Feb-2006 09:57    - tomcat.heanet.ie/native/1.1.2/binaries/win32/tcnative-1.dll 1.1.14/          11-Jul-2008 16:35    - tomcat.heanet.ie/native/1.1.14/binaries/win32/tcnative-1.dll 1.1.12/          14-Jan-2008 08:01    - tomcat.heanet.ie/native/1.1.12/binaries/win32/tcnative-1.dll 1.1.10/          02-Apr-2007 07:18    - tomcat.heanet.ie/native/1.1.10/binaries/win32/tcnative-1.dll 1.1.1/           01-Dec-2005 12:54    - tomcat.heanet.ie/native/1.1.1/binaries/win32/tcnative-1.dll

#Java

The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path:的更多相关文章

  1. 【问题解决:信息提示】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 ...

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

    运行环境: Intellij idea 14 在改了项目名称. 运行时候出现了 The APR based Apache Tomcat Native library which allows opti ...

  3. 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 opt ...

  4. 信息: 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 productio ...

  5. Tomcat启动慢原因之二 he 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 prod ...

  6. 出现错误日志: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  ...

  7. 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.8.0_60\bin;C:\Windows\Sun\Jav

    启动项目自动结束,查看日志发现 [ost-startStop-1] o.a.catalina.core.AprLifecycleListener   : The APR based Apache To ...

  8. 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/dis ...

  9. 解决 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/ 下载最新的tcnative-1.dll放到相应目录即可,我目前下载的是 http://tomcat.heanet.ie/native ...

随机推荐

  1. Myeclipse实用快捷键总结

    alt+shift+J 为选中的类/方法添加注释 ctrl+T 显示选中类的继承树 ctrl+shift+X/Y 将选中的字符转换为大写/小写 ctrl+shift+R 打开资源 ctrl+shift ...

  2. 使用dpkg命令卸载已经安装的软件包

    如何在Ubuntu中使用dpkg命令卸载软件 http://jingyan.baidu.com/article/f54ae2fc2724a71e92b849c4.html sudo dpkg -i x ...

  3. WebDriver自动化测试工具(1)---环境搭建

    Webdriver是一个前端自动化测试工具,可以模拟用户点击链接,填写表单,点击按钮等操作,下面介绍其使用 一.下载WebdriverC#类库以及对应浏览器驱动 http://www.selenium ...

  4. Djangp2.x版本报错找不到模版目录下的文件

    1.报错内容:django.template.exceptions.TemplateDoesNotExist: index.html 2.解决办法,在settings.py文件中,找到TEMPLATE ...

  5. MyBatis 返回(批量)新增数据的自增id

    <insert id="save" parameterType="Vote" useGeneratedKeys="true" keyP ...

  6. 【转载】TabLayout 源码解析

    原文地址:https://github.com/Aspsine/AndroidSdkSourceAnalysis/blob/master/article/TabLayout%E6%BA%90%E7%A ...

  7. 洛谷P3369普通平衡树(Treap)

    题目传送门 转载自https://www.cnblogs.com/fengzhiyuan/articles/7994428.html,转载请注明出处 Treap 简介 Treap 是一种二叉查找树.它 ...

  8. vue中回到顶部

    1. 回到顶部,使用 scrollIntoView 方法: Element.scrollIntoView方法滚动当前元素,进入浏览器的可见区域 该方法可以接受一个布尔值作为参数.如果为true,表示元 ...

  9. Beaglebone Black教程使用SSH通过USB和因特网连接Beaglebone Black

    Beaglebone Black教程使用SSH通过USB和因特网连接Beaglebone Black 使用SSH通过USB和因特网连接Beaglebone Black SSH是Secure Shell ...

  10. 安卓 内存泄漏 MemoryAnalyzer

    韩梦飞沙 yue31313 韩亚飞 han_meng_fei_sha 313134555@qq.com 需要 获取 root 权限 步骤: 1,使用eclipse 自带的 DDMS 工具分析各线程的内 ...