Neo4J 4 + Apoc : Unable to set up injection for procedure 'Static'

若如初见. 提交于 2021-02-11 17:54:35

问题


Getting the following error on neo4j server startup with the apoc plugin. Have copied the jar to the plugins folder.

Caused by: org.neo4j.kernel.api.exceptions.ComponentInjectionException: Unable to set up injection for procedure 'Static', the field 'apocConfig' has type 'class apoc.ApocConfig' which is not a known injectable component

Neo4j version: 4.0.4
Apoc version: 4.0.0.13

What could be the problem?


回答1:


I would suggest reviewing the installation procedure to see if you missed any steps,

https://neo4j.com/docs/operations-manual/current/installation/linux/

Also, double check the java version that neo4j is using, and check if there are any other local java environment factors specific to this install. class paths, other jars, etc.




回答2:


We were having the same issue with neo4j 4.x and custom plugin folder. Updating custom plugin folder in neo4j config didn't work, we had to add folder (or extension) into java CP (classpath) as well. It worked in 3.x neo4j version without adding a folder into the classpath.

Try to make sure that you have plugins folder listed in -cp and might work for you.



来源:https://stackoverflow.com/questions/63366803/neo4j-4-apoc-unable-to-set-up-injection-for-procedure-static

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