问题
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