我正在尝试在neo4j服务器(版本CE 2.3.2)上使用非托管扩展,所以我正在尝试在Neo4j官方网站上给出的简单HelloWorld example:
我已经使用“ METADATA / services”文件夹中的“ org.neo4j.server.plugins.ServerPlugin”文件生成了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服务器时,它崩溃并显示以下错误:
启动Neo4j失败: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类。与非托管扩展相反,该扩展使用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/