Neo4j服务器无法以非托管扩展名启动 [英] Neo4j server fails to start with unmanaged extension

查看:85
本文介绍了Neo4j服务器无法以非托管扩展名启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在neo4j服务器(CE 2.3.2版)上使用非托管扩展,所以我正在尝试一个简单的

I'm trying to use unmanaged extensions on a neo4j server (version CE 2.3.2), so I'm trying a simple HelloWorld example given on the official Neo4j website:

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

  • I've generated the jar file with the "org.neo4j.server.plugins.ServerPlugin" file in the "METADATA/services" folder.
  • I put my jar in the "[neo4jInstallPath]/plugins" folder
  • I put the following line in the "C:\Users[currentUser]\AppData\Roaming\Neo4j Community Edition\neo4j-server.properties"

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

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

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

But when I try to start my Neo4j server, it crashes with the following error:

启动Neo4j失败:org.neo4j.server.web.NeoServletContainer-ff3335e @ 3ada3fcf == org.neo4j.server.web.NeoServletContainer,-1,否

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

我已经尝试了几件事,例如在其他地方移动了"org.neo4j.server.plugins.ServerPlugin",我已经尝试了其他Helloworld示例,等等...但是启动时我总是会遇到相同的错误服务器有人知道该怎么办吗?

I've tried several things such as moving the "org.neo4j.server.plugins.ServerPlugin" in some other places, I've tried others Helloworld examples, etc... but I always get the same error when launching the server does somebody knows what to do?

谢谢.

推荐答案

听起来您正在合并有关部署服务器插件,其中包含有关部署非托管的说明扩展.插件必须继承 ServerPlugin 类.与非托管扩展相反,后者使用JAX-RS扩展Neo4j服务器REST API.

It sounds like you are combining instructions for deploying a server plugin with the instructions for deploying an unmanaged extension. A plugin must inherit from the ServerPlugin class. Contrast with an unmanaged extension, which uses JAX-RS to extend the Neo4j server REST API.

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

The example you linked is an unmanaged extension and therefore your should not include org.neo4j.server.plugins.ServerPlugin in your jar. Instead, just ensure your jar includes any dependencies and move to the plugins directory and update neo4j-server.properties as you indicated above.

这篇关于Neo4j服务器无法以非托管扩展名启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆