首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >找不到OpenGrok和Tomcat 404

找不到OpenGrok和Tomcat 404
EN

Stack Overflow用户
提问于 2021-06-30 15:51:51
回答 1查看 760关注 0票数 0

我正在尝试在新的Linux环境中设置OpenGrok。我遵循了来自:https://github.com/oracle/opengrok/wiki/How-to-setup-OpenGrok的说明。

一旦我设置了OpenGrok和Tomcat,我就把source.war从Opengrok复制到Tomcat/webapp。当我试图连接http://localhost:8080/source时,在复制之后,它总是给我这个404未找到的错误:

代码语言:javascript
运行
复制
HTTP Status 404 – Not Found
Type Status Report

Message The requested resource [/source] is not available

Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.

Apache Tomcat/9.0.48

我使用的是最新的OpenGrok版本和Tomcat版本: Apache /9.0.48

下面是来自OpenGrok日志的详细错误:

代码语言:javascript
运行
复制
11:49:08 SEVERE: Couldn't notify the webapp on http://localhost:8080/source.
jakarta.ws.rs.NotFoundException: HTTP 404 Not Found
        at org.glassfish.jersey.client.JerseyInvocation.convertToException(JerseyInvocation.java:916)
        at org.glassfish.jersey.client.JerseyInvocation.translate(JerseyInvocation.java:723)
        at org.glassfish.jersey.client.JerseyInvocation.lambda$invoke$1(JerseyInvocation.java:643)
        at org.glassfish.jersey.client.JerseyInvocation.call(JerseyInvocation.java:665)
        at org.glassfish.jersey.client.JerseyInvocation.lambda$runInScope$3(JerseyInvocation.java:659)
        at org.glassfish.jersey.internal.Errors.process(Errors.java:292)
        at org.glassfish.jersey.internal.Errors.process(Errors.java:274)
        at org.glassfish.jersey.internal.Errors.process(Errors.java:205)
        at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:390)
        at org.glassfish.jersey.client.JerseyInvocation.runInScope(JerseyInvocation.java:659)
        at org.glassfish.jersey.client.JerseyInvocation.invoke(JerseyInvocation.java:642)
        at org.glassfish.jersey.client.JerseyInvocation$Builder.method(JerseyInvocation.java:417)
        at org.glassfish.jersey.client.JerseyInvocation$Builder.get(JerseyInvocation.java:313)
        at org.opengrok.indexer.index.IndexerUtil.enableProjects(IndexerUtil.java:79)
        at org.opengrok.indexer.index.Indexer.main(Indexer.java:334)

Couldn't notify the webapp on http://localhost:8080/source: HTTP 404 Not Found.
11:49:09 SEVERE: Failed to send configuration to http://localhost:8080/source (is web application server running with opengrok deployed?)
java.io.IOException: InboundJaxrsResponse{context=ClientResponse{method=PUT, uri=http://localhost:8080/source/api/v1/configuration?reindex=true, status=405, reason=Method Not Allowed}}
        at org.opengrok.indexer.configuration.RuntimeEnvironment.writeConfiguration(RuntimeEnvironment.java:1427)
        at org.opengrok.indexer.index.Indexer.sendToConfigHost(Indexer.java:1149)
        at org.opengrok.indexer.index.Indexer.main(Indexer.java:378)

需要帮助来解决这个404 tomcat错误并设置opengrok。

提前谢谢

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2021-06-30 16:18:31

在您引用的安装页中,您可以找到以下要求:

servlet容器,如GlassFish或Tomcat 10.0或更高版本的

(强调我的)。

source.war是Jakarta 9应用程序,它不能在Tomcat9.0上工作。因为1.6.0版 OpenGrok需要Servlet5.0容器。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/68198018

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档