Friday, 15 January 2010

java - Setting up Spring Data Neo4j examples -



java - Setting up Spring Data Neo4j examples -

i'm new neo4j , java , trying spring info neo4j examples (http://projects.spring.io/spring-data-neo4j/) work.

apparently reason why of examples don't work anymore because there major changes latest version of spring info neo4j (sdn 3.0).

there post (errors of cineasts examples of spring info neo4j) mentioned adding "base-package" attribute in both neo4j:config , neo4j:repositories elements. tried doing , got additional error: "the prefix "neo4j" element "neo4j:config" not bound."

after days of research , much trial , error, able cineasts sample project work. save lot of time.

for 2 "error: cvc-complex-type.4:attribute 'bases-package' must appear on element 'neo4j:config'" errors, add together base-package attributes (base-package="org.neo4j.cineasts.domain") neo4j:config tags in applicationcontext.xml (in src/main/webapp/web-inf folder) , movies-test-context.xml (in test/resources folder).

the other error tx.close() beingness undefined can fixed changing tx.finish().

to run project, run maven build jetty:run goal. create sure using jdk , not jre. ran jre , got error , had run maven build jetty:stop kill server before re-deploy.

java spring neo4j spring-data-neo4j

No comments:

Post a Comment