gpt4 book ai didi

java - Neo4j 服务器无法使用非托管扩展启动

转载 作者:行者123 更新时间:2023-12-02 06:00:29 26 4
gpt4 key购买 nike

我正在尝试在 neo4j 服务器(版本 CE 2.3.2)上使用非托管扩展,因此我正在尝试一个简单的 HelloWorld example Neo4j 官方网站上给出:

  • 我已使用“METADATA/services”文件夹中的“org.neo4j.server.plugins.ServerPlugin”文件生成了 jar 文件。
  • 我将 jar 放在“[neo4jInstallPath]/plugins”文件夹中
  • 我将以下行放入“C:\Users[currentUser]\AppData\Roaming\Neo4j Community Edition\neo4j-server.properties”

    org.neo4j.server.thirdparty_jaxrs_classes=org.neo4j.examples.server.unmanagement=/examples/unmanaged

但是当我尝试启动 Neo4j 服务器时,它崩溃并出现以下错误:

Starting Neo4j failed: org.neo4j.server.web.NeoServletContainer-ff3335e@3ada3fcf==org.neo4j.server.web.NeoServletContainer,-1,false

我尝试过一些事情,例如将“org.neo4j.server.plugins.ServerPlugin”移动到其他一些地方,我尝试过其他Helloworld示例等...但在启动时我总是遇到相同的错误服务器有人知道该怎么做吗?

谢谢。

最佳答案

听起来您正在组合部署 server plugin 的指令以及部署 unmanaged extension 的说明。插件必须继承自 ServerPlugin类(class)。与非托管扩展相比,后者使用 JAX-RS 来扩展 Neo4j 服务器 REST API。

您链接的示例是非托管扩展,因此您不应在 jar 中包含 org.neo4j.server.plugins.ServerPlugin 。相反,只需确保您的 jar 包含任何依赖项,然后移至 plugins 目录并更新 neo4j-server.properties,如上面所示。

关于java - Neo4j 服务器无法使用非托管扩展启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36128931/

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