Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Spring data neo4j 3.3.1 and Neo4j 2.2.3 transaction builder error

I am currently using Spring Data Neo4j 3.3.0 with Play 2.3.8 using the tuxburner plugin and working remotely with a neo4j 2.1.7 DB.

I saw that the new spring data version supports neo4j 2.2 and i wanted to upgrade to it. I changed my dependencies to the new versions and am getting the following error:

BeanCreationException: Error creating bean with name 'restNeo4jConfig': Injection of autowired dependencies failed;
nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void org.springframework.data.neo4j.config.Neo4jConfiguration.setGraphDatabaseService(org.neo4j.graphdb.GraphDatabaseService);
nested exception is java.lang.NoClassDefFoundError: org/neo4j/kernel/TransactionBuilder

It seems to be an old issue that should be resolved in 3.3.1 since neo4j 2.2 changed a lot of their internal API and this class no longer exists.

Maybe the way I work with Spring Data is no longer right and needs to be changed.

I've created an example play app that shows the problem: https://github.com/OlympusTeam/Olympus

like image 512
Nachshon Schwartz Avatar asked Oct 31 '22 23:10

Nachshon Schwartz


1 Answers

Had the same problem while migrating from 2.1, seems to have been fixed in 3.3.2.

http://docs.spring.io/spring-data/neo4j/docs/current/changelog.txt

like image 118
Nati Sholman Oskar Avatar answered Dec 21 '22 12:12

Nati Sholman Oskar