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

kri*_*hna 4 java eclipse tomcat tomcat7

我下载了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
Run Code Online (Sandbox Code Playgroud)

我怎么解决这个问题?

当我打开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
Run Code Online (Sandbox Code Playgroud)

Pac*_*ace 5

第一个错误肯定听起来像版本不匹配.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),无论用户配置如何,都应该加载该页面.