sarmbruster / neo4jsample

Sample application for the neo4j grails plugin
http://blog.armbruster-it.de/tag/neo4j/
19 stars 12 forks source link

using the REST server with neo4j-grails #2

Closed kindofwhat closed 12 years ago

kindofwhat commented 12 years ago

Hi Stefan

Not sure, if this is the right place to ask/submit:

I am trying to use the 1.0.0.M2 of the neo4j-plugin with the REST server and trying to start the grails app gives me:

Cannot cast object 'org.neo4j.rest.graphdb.RestGraphDatabase' with class 'java.lang.String' to class 'java.lang.Class' due to: java.lang.ClassNotFoundException: org.neo4j.rest.graphdb.RestGraphDatabase Message: Cannot cast object 'org.neo4j.rest.graphdb.RestGraphDatabase' with class 'java.lang.String' to class 'java.lang.Class' due to: java.lang.ClassNotFoundException: org.neo4j.rest.graphdb.RestGraphDatabase

I cannot figure out exactly where the problem is, since I cannot find this class

sarmbruster commented 12 years ago

do you have

compile("org.neo4j:neo4j-rest-graphdb:1.6.1")

in the dependencies section of your BuildConfig.groovy ? If so, use grails dependency-report to check if neo4j-rest-graphdb is on the classpath.

kindofwhat commented 12 years ago

hmm, can't find this dependency. Do I need a special repository?

sarmbruster commented 12 years ago

see https://github.com/sarmbruster/neo4jsample/blob/master/grails-app/conf/BuildConfig.groovy#L25

kindofwhat commented 12 years ago

Thx very much, it worked, after removing the ivy cache. *Now" it really rocks, keep up the great work!