Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/extjs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Tomcat OpenGrok索引器无法执行_Tomcat_Servlets_Installation_Opengrok - Fatal编程技术网

Tomcat OpenGrok索引器无法执行

Tomcat OpenGrok索引器无法执行,tomcat,servlets,installation,opengrok,Tomcat,Servlets,Installation,Opengrok,我从他们的下载页面[1]获取了OpenGrok 1.3.4,并按照安装说明[2]在我的系统(FreeBSD 12.1-RELEASE)上安装了该软件 我已经安装了tomcat8.5,默认的欢迎页面显示没有任何问题。我使用通用CTAG,我认为OpenGrok网站中列出的其他依赖项已经安装 pkg install openjdk8 universal-ctags tomcat85 python36 py36-pip ctags 我可以查看http://localhost:8080/source,显

我从他们的下载页面[1]获取了OpenGrok 1.3.4,并按照安装说明[2]在我的系统(FreeBSD 12.1-RELEASE)上安装了该软件

我已经安装了tomcat8.5,默认的欢迎页面显示没有任何问题。我使用通用CTAG,我认为OpenGrok网站中列出的其他依赖项已经安装

pkg install openjdk8 universal-ctags tomcat85 python36 py36-pip ctags
我可以查看
http://localhost:8080/source
,显示错误消息,因为索引器在此阶段未运行(如安装说明所示)

当我试图运行索引器时,我得到了下面的错误,我认为这与我的Tomcat或OpenGrok设置有关,而不是与我试图安装软件的系统有关。我在Java servlet或服务器页面方面的经验非常有限,因此我希望得到任何指导

root@opengrok-manual:~ # java -Djava.util.logging.config.file=/opengrok/etc/logging.properties -jar /opengrok/dist/lib/opengrok.jar -c /usr/local/bin/uctags -s /opengrok/src -d /opengrok/data -H -P -S -G -W /opengrok/etc/configuration.xml -U http://localhost:8080/source
17:00:39 SEVERE: Couldn't notify the webapp on http://localhost:8080/source.
javax.ws.rs.NotAuthorizedException: HTTP 401 Unauthorized
    at org.glassfish.jersey.client.JerseyInvocation.convertToException(JerseyInvocation.java:1056)
    at org.glassfish.jersey.client.JerseyInvocation.translate(JerseyInvocation.java:859)
    at org.glassfish.jersey.client.JerseyInvocation.lambda$invoke$1(JerseyInvocation.java:743)
    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.invoke(JerseyInvocation.java:741)
    at org.glassfish.jersey.client.JerseyInvocation$Builder.method(JerseyInvocation.java:404)
    at org.glassfish.jersey.client.JerseyInvocation$Builder.get(JerseyInvocation.java:300)
    at org.opengrok.indexer.index.IndexerUtil.enableProjects(IndexerUtil.java:60)
    at org.opengrok.indexer.index.Indexer.main(Indexer.java:316)

Couldn't notify the webapp on http://localhost:8080/source: HTTP 401 Unauthorized.
17:00:43 WARNING: Couldn't notify the webapp that project org.opengrok.indexer.configuration.Project@1becde2d was indexed: InboundJaxrsResponse{context=ClientResponse{method=PUT, uri=http://localhost:8080/source/api/v1/projects/hellogitworld/indexed, status=401, reason=Unauthorized}}
17:00:46 WARNING: Couldn't notify the webapp that project org.opengrok.indexer.configuration.Project@ab468482 was indexed: InboundJaxrsResponse{context=ClientResponse{method=PUT, uri=http://localhost:8080/source/api/v1/projects/WhileyCompiler/indexed, status=401, reason=Unauthorized}}
17:00:46 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=401, reason=Unauthorized}}
    at org.opengrok.indexer.configuration.RuntimeEnvironment.writeConfiguration(RuntimeEnvironment.java:1493)
    at org.opengrok.indexer.index.Indexer.sendToConfigHost(Indexer.java:1102)
    at org.opengrok.indexer.index.Indexer.main(Indexer.java:347)

root@opengrok-manual:~ # 
[1]

[2]

也许这有助于: