Java 安装了基于APR的Apache Tomcat本机库的不兼容版本1.1.12,而Tomcat需要版本1.1.17
我下载了ApacheTomcat7.x。在Eclipse中添加此Tomcat时,会出现以下错误:Java 安装了基于APR的Apache Tomcat本机库的不兼容版本1.1.12,而Tomcat需要版本1.1.17,java,eclipse,tomcat,tomcat7,Java,Eclipse,Tomcat,Tomcat7,我下载了ApacheTomcat7.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 versi
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)链接的库。听起来你有Tomcat6的APR库。Eclipse可能提供了这个APR库 Tomcat附带一个APR库,但为了便于安装,Tomcat不会自动修改指向APR库的路径。EclipseTomcat集成可能(我不确定这一点,以前没有使用过集成)包括APR库,以使使用Tomcat更容易 检查并确保Eclipse未配置为使用Tomcat的早期版本,如果是,请将Eclipse升级到Tomcat 7或将Tomcat降级到Eclipse中指定的版本 如果你不能弄明白,那么你现在不必担心。Tomcat应该在没有APR库的情况下工作。您将从APR库中获得的唯一好处是提高了性能,因为这可能是您的项目的开始,不必立即解决 第二个问题,/manager/page可能是Tomcat配置。除非用户配置了,否则Tomcat实际上不会显示manager页面(它会给您这个错误)
尝试转到/(即),无论用户配置如何,该页面都应加载。在我的情况下,我在Linux上使用软件包管理器本地安装一次Tomcat时,无意中安装了APR库。在Debian/Ubuntu上,它为不同的Tomcat版本(与您的发行版捆绑在一起的版本)安装了APR包,这导致了这个错误 简单地
sudo apt-get purge libtcnative-1
错误消失了