`

【解决】requires the APR/native library which is not available

阅读更多

今天从旧的服务器上搬到新服务器时tomcat报错:

 

严重: Failed to initialize connector [Connector[HTTP/1.1-9001]]
org.apache.catalina.LifecycleException: Failed to initialize component [Connector[HTTP/1.1-9001]]
	at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:106)
	at org.apache.catalina.core.StandardService.initInternal(StandardService.java:559)
	at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
	at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:821)
	at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
	at org.apache.catalina.startup.Catalina.load(Catalina.java:638)
	at org.apache.catalina.startup.Catalina.load(Catalina.java:663)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:253)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:427)
Caused by: org.apache.catalina.LifecycleException: The configured protocol [org.apache.coyote.http11.Http11AprProtocol] requires the APR/native library which is not available
	at org.apache.catalina.connector.Connector.initInternal(Connector.java:972)
	at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
	... 12 more

 网络上查了一堆资料,

Windows环境
APR需要安装三个组件:
   1、APR library
   2、JNI wrappers for APR used by Tomcat (libtcnative)
   3、OpenSSL libraries
  从http://tomcat.heanet.ie/native/1.1.14/binaries/win32/ ,下载tcnative-1.1.10.dll,tcnative-1.1.10.dll已经包含了上面的三个组件,所以只要把tcnative-1.1.10.dll拷贝到tomcat的bin下就行了。

 搞了半天,还是报错!!!最终的解决方案是:将Tomcat7\bin下的tcnative-1.dll拷贝到jdk\bin目录下替换即可。(估计是版本的问题)

小结:tcnative-1.dll不需要下载,至少对于Tomcat7来说是这样,我们可以在其bin目录下找到这个dll。

 

 

分享到:
评论

相关推荐

    tcnative-1.dll

    tcnative-1.dll(tomcat启动报错的时候 兼容性,放在tomcat bin目录下),报错的信息:requires the APR/native library which is not available

    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:\...

    This wizard is not available because it requires a valid professional subscripti

    NULL 博文链接:https://zhoujianghai.iteye.com/blog/641183

    the native POSIX thread library for linux

    The Linux Threads implementation which today is Linux's POSIX thread library is based on the principles outlined by the kernel developers at the time the code was written(1996). The basic assumption ...

    电子-STM32LD3320.rar

    电子-STM32LD3320.rar,单片机/嵌入式STM32-F0/F1/F2

    COM Standard Library

    However, it requires that a copy of AutoHotkey.exe exist in the directory above the compiler directory (which is normally the case). If AutoHotkey.exe is absent, the compiler still works but library ...

    Senfore_DragDrop_v4.1

    The demos should be run in the order in which they are listed in the supplied project group. Even if you have used previous versions of the Drag and Drop Component Suite it would be a good idea to ...

    yum-utils-4.0.21-3.el8.noarch(1).rpm

    离线安装包,亲测可用

    LINUX gd-2.0.35.tar.gz

    If the DIR argument is specified, configure tries to find the png header files in DIR/include, and the libraries in DIR/lib. To accommodate OpenBSD ports, DIR/include/libpng is also checked if ...

    WizFlow网页编辑

    running a program using the Library is not restricted, and output from such a program is covered only if its contents constitute a work based on the Library (independent of the use of the Library in a...

    hibernate-shards.jar

    running a program using the Library is not restricted, and output from such a program is covered only if its contents constitute a work based on the Library (independent of the use of the Library in a...

    Universal-USB-Installer

    Source Code is made available at time of download, from the official UUI page: http://www.pendrivelinux.com/universal-usb-installer-easy-as-1-2-3/ IMPORTANT! No Warranty is being offered with this ...

    Python library

    only available when the underlying system supports or requires them; yet others are available only when a particular configuration option was chosen at the time when Python was compiled and installed....

    VirtualBox 错误:This kernel requires the following features not present on the CPU

    VirtualBox 错误:This kernel requires the following features not present on the CPU 使用VirtualBox安装虚拟机系统时候经常会遇到以下错误 This kernel requires the following features not present on the ...

    daal4py-2020.3-cp37-cp37m-win_amd64

    daal4py-2020.3-cp37-cp37m-win_amd64

    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

    APIHookingComplete

    I will be using the Microsoft Detours Library, which is free to download. In order to successfully compile the code examples provided, you need to run the Makefile that comes with the Detours library...

Global site tag (gtag.js) - Google Analytics