`

【解决】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

    解决这个问题通常涉及购买或更新到有效的专业版订阅,或者寻找其他免费或开源的替代工具来完成类似的任务。此外,检查许可证设置、确保安装的MyEclipse版本与许可证匹配,以及确认网络连接以验证订阅状态,也是排查...

    电子-STM32LD3320.rar

    STM32LD3320是一款基于ARM Cortex-M0/M3/M4内核的单片机,由意法半导体(STMicroelectronics)生产,广泛应用于嵌入式系统设计。这个压缩包“电子-STM32LD3320.rar”包含的资源可能包括STM32LD3320的开发资料、固件...

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

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

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

    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

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

    MariaDB Connector/Python(mariadb-connector-python-1.0.7.zip)

    10. **文档支持**:官方提供详细的文档和示例代码,帮助开发者快速上手和解决问题。 在使用MariaDB Connector/Python时,开发者需要注意安装相应的依赖,比如在Python环境中使用`pip install mariadb-connector-...

    daal4py-2020.3-cp37-cp37m-win_amd64

    daal4py-2020.3-cp37-cp37m-win_amd64

    [亲测可用] Mac Android Studio 升级到最新版本引起的Lombok插件版本不兼容

    Plugin 'Lombok' (version '0.32-EAP') is not compatible with the current version of the IDE, because it requires build 203.* or older but the current build is AI-211.7628.21 这个异常信息是由于Lombok ...

Global site tag (gtag.js) - Google Analytics