Neo4j 服务器无法使用非托管扩展启动
Neo4j server fails to start with unmanaged extension
我正在尝试在 Neo4j 服务器(版本 CE 2.3.2)上使用非托管扩展,所以我正在尝试 Neo4j 官方网站上提供的简单 HelloWorld example:
- 我已经用 "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.unmanaged=/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 with the instructions for deploying an unmanaged extension. A plugin must inherit from the ServerPlugin class 的说明。对比非托管扩展,它使用 JAX-RS 扩展 Neo4j 服务器 REST API.
您链接的示例是非托管扩展,因此您不应在 jar 中包含 org.neo4j.server.plugins.ServerPlugin
。相反,只需确保您的 jar 包含任何依赖项并移动到 plugins
目录并按照您上面的指示更新 neo4j-server.properties
。
我正在尝试在 Neo4j 服务器(版本 CE 2.3.2)上使用非托管扩展,所以我正在尝试 Neo4j 官方网站上提供的简单 HelloWorld example:
- 我已经用 "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.unmanaged=/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 with the instructions for deploying an unmanaged extension. A plugin must inherit from the ServerPlugin class 的说明。对比非托管扩展,它使用 JAX-RS 扩展 Neo4j 服务器 REST API.
您链接的示例是非托管扩展,因此您不应在 jar 中包含 org.neo4j.server.plugins.ServerPlugin
。相反,只需确保您的 jar 包含任何依赖项并移动到 plugins
目录并按照您上面的指示更新 neo4j-server.properties
。