简体   繁体   English

Neo4j-没有这样的ServerPlugin错误

[英]Neo4j - No such ServerPlugin error

Spinning my wheels here and hopefully someone can be a help. 在这里转动我的车轮,希望有人可以提供帮助。 And I'll preface this by saying I am new to Neo4j. 我将以说我是Neo4j的新手作为开头。 I have spent much time searching for this error online and do not see anything that pertains to what is being encountered. 我花了很多时间在网上搜索此错误,但是看不到与所遇到的错误有关的任何内容。

I am trying to launch a call to a java class on my local version of Neo4j (using port 7474) via Google's Advanced Rest Client utility. 我试图通过Google的Advanced Rest Client实用程序在本地Neo4j版本上(使用端口7474)发起对Java类的调用。 When the call is made the below error is thrown. 进行呼叫时,将引发以下错误。

A jar file was created and placed in the plugins directory and everything looks like it is in place for this to run. 已创建一个jar文件并将其放置在plugins目录中,一切看起来都已就绪,可以运行该文件。 Here is the value being used to make the call from Advanced Rest Client -> 这是用于从Advanced Rest Client进行呼叫的值->

"http://localhost:7474/db/data/ext/InsertTestNode/graphdb/insertTest"

message: "No such ServerPlugin: "InsertTestNode""
exception: "PluginLookupException"
fullname: "org.neo4j.server.plugins.PluginLookupException"
stacktrace: [7]
0:  "org.neo4j.server.plugins.PluginManager.extension(PluginManager.java:115)"
1:  "org.neo4j.server.plugins.PluginManager.invoke(PluginManager.java:156)"
2:  "org.neo4j.server.rest.web.ExtensionService.
     invokeGraphDatabaseExtension(ExtensionService.java:312)"
3:  "org.neo4j.server.rest.web.ExtensionService.invokeGraphDatabaseExtension
     (ExtensionService.java:134)"
4:  "java.lang.reflect.Method.invoke(Unknown Source)"
5:  "org.neo4j.server.rest.transactional.
    TransactionalRequestDispatcher.dispatch(TransactionalRequestDispatcher.java:139)"
6:  "java.lang.Thread.run(Unknown Source)" 

Any insight you can provide is greatly appreciated. 您能提供的任何见解都将不胜感激。

Have you followed the steps in the documentation ? 您是否遵循了文档中的步骤? I suspect you are probably missing something. 我怀疑您可能缺少了一些东西。

The documents state that the .jar file must include the file META-INF/services/org.neo4j.server.plugins.ServerPlugin . 文件指出the .jar file must include the file META-INF/services/org.neo4j.server.plugins.ServerPlugin Are you sure this has been included in the Jar? 您确定它已包含在Jar中吗?

You also need to make sure the directories listings are retained in the jarfile by either building with default Maven, or with jar -cvf myext.jar *, making sure to jar directories instead of specifying single files. 您还需要make sure the directories listings are retained in the jarfile by either building with default Maven, or with jar -cvf myext.jar *, making sure to jar directories instead of specifying single files.make sure the directories listings are retained in the jarfile by either building with default Maven, or with jar -cvf myext.jar *, making sure to jar directories instead of specifying single files.

If you do all of this and then place the jar in the plugins folder you should be good to go. 如果完成所有这些操作,然后将jar放在plugins文件夹中,那应该很好。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM