繁体   English   中英

安装了基于APR的Apache Tomcat Native库的不兼容版本1.1.12,而Tomcat需要1.1.17版本

[英]An incompatible version 1.1.12 of the APR based Apache Tomcat Native library is installed, while Tomcat requires version 1.1.17

我下载了Apache Tomcat 7.x. 当我在Eclipse中添加这个Tomcat时,我收到此错误:

Jan 25, 2011 3:21:05 PM org.apache.catalina.core.AprLifecycleListener init
SEVERE: An incompatible version 1.1.12 of the APR based Apache Tomcat Native library is installed, while Tomcat requires version 1.1.17 
Jan 25, 2011 3:21:05 PM org.apache.catalina.core.AprLifecycleListener init
SEVERE: An incompatible version 1.1.12 of the APR based Apache Tomcat Native library is installed, while Tomcat requires version 1.1.17 
Jan 25, 2011 3:21:05 PM org.apache.catalina.core.AprLifecycleListener init
SEVERE: An incompatible version 1.1.12 of the APR based Apache Tomcat Native library is installed, while Tomcat requires version 1.1.17 
Jan 25, 2011 3:21:05 PM org.apache.catalina.core.AprLifecycleListener init
SEVERE: An incompatible version 1.1.12 of the APR based Apache Tomcat Native library is installed, while Tomcat requires version 1.1.17 
Jan 25, 2011 3:21:05 PM org.apache.catalina.core.AprLifecycleListener init
SEVERE: An incompatible version 1.1.12 of the APR based Apache Tomcat Native library is installed, while Tomcat requires version 1.1.17 
Jan 25, 2011 3:21:08 PM org.apache.coyote.AbstractProtocolHandler init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Jan 25, 2011 3:21:08 PM org.apache.coyote.AbstractProtocolHandler init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
Jan 25, 2011 3:21:08 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 3054 ms
Jan 25, 2011 3:21:08 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Jan 25, 2011 3:21:08 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.6
Jan 25, 2011 3:21:08 PM org.apache.coyote.AbstractProtocolHandler start
INFO: Starting ProtocolHandler ["http-bio-8080"]
Jan 25, 2011 3:21:08 PM org.apache.coyote.AbstractProtocolHandler start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
Jan 25, 2011 3:21:08 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 251 ms

我怎么解决这个问题?

当我打开localhost:8080/manager/html它显示以下错误:

HTTP Status 404 - /manager/html

type Status report

message /manager/html

description The requested resource (/manager/html) is not available.
Apache Tomcat/7.0.6

第一个错误肯定听起来像版本不匹配。 APR库是一个在运行时根据您的路径链接的库(它本身可以基于您执行Tomcat的位置)。 听起来你有Tomcat 6的APR库.Eclipse有可能提供这个APR库。

Tomcat附带一个APR库,但为了简化安装,Tomcat不会自动修改指向APR库的路径。 Eclipse Tomcat集成可能(我不确定这个,之前没有使用过集成)包含APR库,以便更容易使用Tomcat。

检查并确保Eclipse未配置为使用早期版本的Tomcat,如果是,则将Eclipse升级到Tomcat 7或将Tomcat降级到Eclipse中指定的版本。

如果你无法弄清楚,那么你现在不必担心它。 没有APR库,Tomcat应该可以工作。 您将从APR库中获得的唯一好处是提高性能,因为这可能是您的项目的开始,不必立即解决。

第二个问题,/ manager / page,可能是Tomcat配置。 除非已经为用户配置了管理员权限,否则Tomcat实际上不会显示管理器页面(并且会给出该错误)。

尝试转到/(即http:// localhost:8080 ),无论用户配置如何,都应该加载该页面。

在我的情况下,当我使用包管理器在Linux上本地安装Tomcat时,我无意中安装了APR库。 在Debian / Ubuntu上,这为不同的Tomcat版本(与您的发行版捆绑在一起)安装了APR包,这导致了这个错误。

简单地说

sudo apt-get purge libtcnative-1

错误消失了。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM