neo4j-contrib / authentication-extension

Neo4j Server Auth Extension
72 stars 28 forks source link

NoSuchMethodError: org.neo4j.server.configuration.Configurator.getThirdpartyJaxRsClasses()Ljava/util/Set #7

Closed scdicks closed 10 years ago

scdicks commented 11 years ago

I'm trying to set up neo4j on Amazon ECS. The template is failing to pull the Oracle JVM, so I manually installed OpenJDK and neo4j 1.9.2.

Then after installing the authentication extension and restarting neo4j, I get this error:

23:07:19.935 [main] WARN o.neo4j.kernel.EmbeddedGraphDatabase - WARNING! You are using an unsupported Java runtime. Please use Oracle(R) Java(TM) Runtime Environment 7. 7/24/13 11:07:20 PM org.neo4j.server.database.Database INFO: Successfully started database 7/24/13 11:07:20 PM org.neo4j.server.AbstractNeoServer INFO: Starting Neo Server on port [7474] with [20] threads available 7/24/13 11:07:21 PM org.neo4j.server.AbstractNeoServer INFO: Enabling HTTPS on port [7473] 7/24/13 11:07:21 PM org.neo4j.server.modules.DiscoveryModule INFO: Mounted discovery module at [/] 7/24/13 11:07:21 PM org.neo4j.server.plugins.PluginManager INFO: Loaded server plugin "CypherPlugin" 7/24/13 11:07:21 PM org.neo4j.server.plugins.PluginManager INFO: Loaded server plugin "GremlinPlugin" 7/24/13 11:07:21 PM org.neo4j.server.modules.RESTApiModule INFO: Mounted REST API at [/db/data/] 7/24/13 11:07:21 PM org.neo4j.server.modules.ManagementApiModule INFO: Mounted management API at [/db/manage/] 7/24/13 11:07:21 PM org.neo4j.server.extension.auth.AuthenticationExtensionInitializer INFO: START class org.neo4j.server.extension.auth.AuthenticationExtensionInitializer 7/24/13 11:07:21 PM org.neo4j.server.CommunityBootstrapper SEVERE: org.neo4j.server.ServerStartupException: Starting neo server failed, see nested exception. at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:214) at org.neo4j.server.Bootstrapper.start(Bootstrapper.java:86) at org.neo4j.server.Bootstrapper.main(Bootstrapper.java:49) Caused by: java.lang.NoSuchMethodError: org.neo4j.server.configuration.Configurator.getThirdpartyJaxRsClasses()Ljava/util/Set; at org.neo4j.server.extension.auth.AuthenticationExtensionInitializer.getMyMountpoint(AuthenticationExtensionInitializer.java:100) at org.neo4j.server.extension.auth.AuthenticationExtensionInitializer.start(AuthenticationExtensionInitializer.java:81) at org.neo4j.server.modules.ExtensionInitializer.initializePackages(ExtensionInitializer.java:60) at org.neo4j.server.modules.ThirdPartyJAXRSModule.start(ThirdPartyJAXRSModule.java:61) at org.neo4j.server.AbstractNeoServer.startModules(AbstractNeoServer.java:258) at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:181) ... 2 more 7/24/13 11:07:21 PM org.neo4j.server.CommunityBootstrapper SEVERE: Failed to start Neo Server on port [7474]

anassirk commented 11 years ago

got the same problem here.

simpsonjulian commented 11 years ago

Thanks for reporting that guys, we'll get onto it.

glsignal commented 11 years ago

I figure you've found this already, but should that method name really have changed on a minor release?

1.9.1 vs. 1.9.2

jexp commented 11 years ago

good point, it shouldn't

glsignal commented 11 years ago

I've made the necessary(?) changes to have the library build against 1.9.2 over on my fork

Edit: Kudos for making it so easy to build, by the way

jexp commented 11 years ago

Can you issue a PR against the 1.9 branch? That would be great. Thanks so much.

glsignal commented 11 years ago

Sure thing.

ghost commented 11 years ago

Does http://dist.neo4j.org.s3.amazonaws.com/authentication-extension/authentication-extension-1.9-SNAPSHOT-1.0-SNAPSHOT.jar actually contain the fix?

glsignal commented 11 years ago

I'm unsure; if it were a maven build it should be tagged 1.9.2 rather than 1.9.

Here's a build I've done if you want to use it until a maintainer posts one.