今天启动tomcat5.5.28发现没有apr配置,报
[2010-04-20 17:33:19,734] [main] (AprLifecycleListener.java:99) DEBUG org.apache.catalina.core.AprLifecycleListener - The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\Sun\jdk1.5.0_19\bin;D:\develop_tools\apache-tomcat-5.5.28\bin
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.core.AprLifecycleListener.lifecycleEvent(AprLifecycleListener.java:83)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:757)
at org.apache.catalina.startup.Catalina.load(Catalina.java:504)
at org.apache.catalina.startup.Catalina.load(Catalina.java:524)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:267)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
Caused by: java.lang.UnsatisfiedLinkError: no tcnative-1 in java.library.path, no libtcnative-1 in java.library.path(D:\Sun\jdk1.5.0_19\bin;D:\develop_tools\apache-tomcat-5.5.28\bin)
at org.apache.tomcat.jni.Library.<init>(Library.java:67)
at org.apache.tomcat.jni.Library.initialize(Library.java:168)
... 15 more
错误,然后去官方下载最新的tcnative-1.dll文件1.1.14版本,(注:tomcat6.0.26自己带最新的1.1.20版本,所以启动没有问题),(官方没有介绍tomcat的版本和tcnative-1.dll版本的对应关系)
下载放入$tomcat_home/bin后报错信息如下:
[2010-04-20 17:37:19,078] [main] (AprLifecycleListener.java:99) DEBUG org.apache.catalina.core.AprLifecycleListener - The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\Sun\jdk1.5.0_19\bin;D:\develop_tools\apache-tomcat-5.5.28\bin
java.lang.NoSuchFieldException: TCN_MAJOR_VERSION
at java.lang.Class.getField(Class.java:1507)
at org.apache.catalina.core.AprLifecycleListener.lifecycleEvent(AprLifecycleListener.java:91)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:757)
at org.apache.catalina.startup.Catalina.load(Catalina.java:504)
at org.apache.catalina.startup.Catalina.load(Catalina.java:524)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:267)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
这种情况极有可能是tomcat在升级的时候修改了AprLifecycleListener类的实现,但不敢确定,所以我挨个下了所有版本的tcnative-1.dll做实验,结果都会出现上述的两种异常;
然后我查看了tomcat5.5.28官方的的channellog,有如下收获
http://tomcat.apache.org/tomcat-5.5-doc/changelog.html这是连接地址
其中有涉及到
|
39997: Add the SSLRandomSeed option to the AprLifecycleListener to enable faster starts on development systems. (markt)
点进去看发现确实针对linux修改了东西.
最后我下载了tomcat5.5.27版本,在$TOMCAT_HOMT/bin里放入了tcnative-1.dll文件1.1.14版本
启动一切正常,问题解决!
|
分享到:
相关推荐
tcnative-1.dll 1.2.14 64位 tcnative-1.dll 1.2.14 64位tcnative-1.dll 1.2.14 64位tcnative-1.dll 1.2.14 64位tcnative-1.dll 1.2.14 64位tcnative-1.dll 1.2.14 64位tcnative-1.dll 1.2.14 64位tcnative-1.dll ...
解压文件后bin文件夹下是32位的tcnative-1.dll文件,另外含有x64文件夹,对应64位系统文件,1.2.17版本
tcnative-1.dll(1.1.17和1.1.20)
Tomcat tcnative-1.dll文件x32和x64
tcnative-1.dll 32位 and tcnative-1.dll 64位tcnative-1.dll 32位 and tcnative-1.dll 64位
tomcat64位tcnative-1.dll文件
64位的tcnative-1.dll.rar,非常值得推荐。针对于win7,win8 win10上的64位
32 64位 tcnative-1.dll 下载 解决 Can't load IA 32-bit .dll on a AMD 64-bit platform 官网下载链接https://tomcat.apache.org/download-native.cgi
The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path:报此错误,查网页说是tcnative-1.dll文件放到tomcat\bin下即可...
tcnative-1.dll 1.1.9(win32和64),现在是最新版的
tcnative-1.dll 是Tomcat在Windows系统下必须的一个类库文件,如果缺少或者版本不兼容,就会导致Tomcat启动失败,或者无法启动的情况。里面包含了tcnative-1.dll的各个版本。
tcnative-1.dll32位(包含64位)下载 , tcnative-1.dll32位(包含64位)下载 亲测可用
tcnative-1.dll 1.2.16 32 位和64位,1.2.14可用,tomcat启动报错有可能需要这个,可以参考我的博客
这个tcnative-1.dll是Windows X64下Tomcat的一个必备组件
tcnative-1.dll(含V1.1.12,1.1.17,1.1.1.20和最新的1.1.1.22)四个版本
tcnative-1.dll 1.1.24和 1.1.27版本
tcnative-1.dll tcnative-1.dll tcnative-1.dll Eclipse
解决tomcat启动时如下异常:The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path