我想在NEO4j中创建一个服务器插件,为此我创建了一个包名为dummy.test.neo4j.NodeExploration.exploring
的插件。我已在META-INF.services
中注册了此插件,但是当我在NEO4j.conf文件中添加此包的引用为
dbms.unmanaged_extension_classes=dummy.test.neo4j.NodeExploration=/dummy/exploring
我收到以下错误。
Okt 16 16:59:58 gaurav-GB-BSi3-6100 neo4j[23592]: Caused by: javax.servlet.ServletException: org.neo4j.server.web.NeoServletContainer-70a4d58d@3429429d==org.neo4j.server.web.NeoServletContainer,-1,false
Okt 16 16:59:58 gaurav-GB-BSi3-6100 neo4j[23592]: org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:633)
Okt 16 16:59:58 gaurav-GB-BSi3-6100 neo4j[23592]: at org.eclipse.jetty.servlet.ServletHolder.initialize(ServletHolder.java:395)
Okt 16 16:59:58 gaurav-GB-BSi3-6100 neo4j[23592]: at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:871)
Okt 16 16:59:58 gaurav-GB-BSi3-6100 neo4j[23592]: at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:298)
Okt 16 16:59:58 gaurav-GB-BSi3-6100 neo4j[23592]: at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:741)
Okt 16 16:59:58 gaurav-GB-BSi3-6100 neo4j[23592]: at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
Okt 16 16:59:58 gaurav-GB-BSi3-6100 neo4j[23592]: at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
Okt 16 16:59:58 gaurav-GB-BSi3-6100 neo4j[23592]: at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
Okt 16 16:59:58 gaurav-GB-BSi3-6100 neo4j[23592]: at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
我想我不确定我是否在NEO4j.conf文件中添加了正确的引用
答案 0 :(得分:0)
当我们同时考虑服务器插件和非托管扩展概念时,会导致上述异常。因为我刚删除了行
dbms.unmanaged_extension_classes=dummy.test.neo4j.NodeExploration=/dummy/exploring
来自neo4j.conf的,只需在http://localhost:7474/db/data/ext/exploring/graphdb/exploring
上调用post get请求探索是我的类和函数名称