gpt4 book ai didi

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

转载 作者:搜寻专家 更新时间:2023-11-01 01:47:38 25 4
gpt4 key购买 nike

我下载了 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 中指定的版本。

如果你想不通,那么你现在不必担心。 Tomcat 应该可以在没有 APR 库的情况下正常工作。您将从 APR 库中获得的唯一好处是提高性能,因为这可能是您的项目的开始,不必立即解决。

第二个问题,/manager/页面,可能是 Tomcat 配置。 Tomcat 不会实际显示管理器页面(它会给你那个错误)除非用户配置了 manager permissions .

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

关于java - 安装了基于 APR 的 Apache Tomcat Native 库的不兼容版本 1.1.12,而 Tomcat 需要版本 1.1.17,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4792047/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com