Neo4j server fails to start with unmanaged extension

痞子三分冷 提交于 2020-01-14 14:01:46

问题


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:

  • 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

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

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

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?

Thanks.


回答1:


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.

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.



来源:https://stackoverflow.com/questions/36128931/neo4j-server-fails-to-start-with-unmanaged-extension

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!