Failed to load auth plugin

I have followed this link ,added the library to plugins folder and changed the neo4j.conf file but i get the below error in log

2019-11-21 16:05:56.641+0000 WARN [o.n.i.p.PageCache] The dbms.memory.pagecache.size setting has not been configured. It is recommended that this setting is always explicitly configured, to ensure the system has a balanced configuration. Until then, a computed heuristic value of 3109091328 bytes will be used instead. Run `neo4j-admin memrec` for memory configuration suggestions.
2019-11-21 16:05:56.944+0000 INFO [o.n.g.f.m.e.CommunityEditionModule] No locking implementation specified, defaulting to 'forseti'
2019-11-21 16:05:57.178+0000 ERROR [o.n.k.i.e.EnterpriseEditionModule] Failed to load security module. Caused by: Illegal configuration: Failed to load auth plugin 'plugin-AuthPlugin'. Illegal configuration: Failed to load auth plugin 'plugin-AuthPlugin'.
java.lang.IllegalArgumentException: Illegal configuration: Failed to load auth plugin 'plugin-AuthPlugin'.
	at org.neo4j.graphdb.factory.module.edition.AbstractEditionModule.setupSecurityModule(
	at com.neo4j.commercial.edition.CommercialEditionModule.createCommercialSecurityModule(
	at com.neo4j.commercial.edition.CommercialEditionModule.createSecurityModule(
	at org.neo4j.graphdb.facade.GraphDatabaseFacadeFactory.initFacade(
	at com.neo4j.commercial.edition.CommercialGraphDatabase.<init>(
	at com.neo4j.server.database.CommercialGraphFactory.newGraphDatabase(
	at org.neo4j.server.database.LifecycleManagingDatabase.start(
	at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(
	at org.neo4j.kernel.lifecycle.LifeSupport.start(
	at org.neo4j.server.AbstractNeoServer.start(
	at org.neo4j.server.ServerBootstrapper.start(
	at org.neo4j.server.ServerBootstrapper.start(
	at com.neo4j.server.enterprise.CommercialEntryPoint.main(

Jar file name:

AuthPlugin.jar (inside plugin folder)


Neo4j Version:

neo4j-enterprise : 3.5.12

The repo you're using is probably a bit out of date. In paticular if you're compiling it just as is, you're depending on a version of Neo4j that's too old to be loaded into Neo4j 3.5.12.

See your dependency versions here:

Update as appropriate -- I think your root issue is a mismatch between your plugin dependencies and the version of Neo4j you're actually running.

1 Like

learned how to compile maven on eclipse and now everything is fine, the problem is me not knowing how to do lol, i was creating a jar file of the whole project without following instructions (because lack of understanding of eclipse and java on eclipse), sorry for this, request you to delete the question :stuck_out_tongue: