[英]Neo4j - No such ServerPlugin error
在這里轉動我的車輪,希望有人可以提供幫助。 我將以說我是Neo4j的新手作為開頭。 我花了很多時間在網上搜索此錯誤,但是看不到與所遇到的錯誤有關的任何內容。
我試圖通過Google的Advanced Rest Client實用程序在本地Neo4j版本上(使用端口7474)發起對Java類的調用。 進行呼叫時,將引發以下錯誤。
已創建一個jar文件並將其放置在plugins目錄中,一切看起來都已就緒,可以運行該文件。 這是用於從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)"
您能提供的任何見解都將不勝感激。
您是否遵循了文檔中的步驟? 我懷疑您可能缺少了一些東西。
文件指出the .jar file must include the file META-INF/services/org.neo4j.server.plugins.ServerPlugin
。 您確定它已包含在Jar中嗎?
您還需要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.
如果完成所有這些操作,然后將jar放在plugins文件夾中,那應該很好。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.