Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8779793
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T19:53:14+00:00 2026-06-13T19:53:14+00:00

I am am starting to learn spring-data-neo4j Very basic test case i am running

  • 0

I am am starting to learn spring-data-neo4j

Very basic test case i am running but unable to succeed.
the error is: java.lang.IllegalStateException: Failed to load ApplicationContext

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'neo4jRelationshipBacking' defined in class path resource [org/springframework/data/neo4j/aspects/config/Neo4jAspectConfiguration.class]: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public org.springframework.data.neo4j.aspects.support.relationship.Neo4jRelationshipBacking org.springframework.data.neo4j.aspects.config.Neo4jAspectConfiguration.neo4jRelationshipBacking() throws java.lang.Exception] threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'neo4jTemplate' defined in class path resource [org/springframework/data/neo4j/aspects/config/Neo4jAspectConfiguration.class]: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public org.springframework.data.neo4j.support.Neo4jTemplate org.springframework.data.neo4j.config.Neo4jConfiguration.neo4jTemplate() throws java.lang.Exception] threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mappingInfrastructure' defined in class path resource [org/springframework/data/neo4j/aspects/config/Neo4jAspectConfiguration.class]: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public org.springframework.data.neo4j.support.MappingInfrastructureFactoryBean org.springframework.data.neo4j.config.Neo4jConfiguration.mappingInfrastructure() throws java.lang.Exception] threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'neo4jTransactionManager' defined in class path resource [org/springframework/data/neo4j/aspects/config/Neo4jAspectConfiguration.class]: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public org.springframework.transaction.PlatformTransactionManager org.springframework.data.neo4j.config.Neo4jConfiguration.neo4jTransactionManager()] threw exception; nested exception is java.lang.NoSuchMethodError: org.neo4j.kernel.impl.transaction.SpringTransactionManager.<init>(Lorg/neo4j/graphdb/GraphDatabaseService;)V

User.java pojo annotated with @NodeEntity

@NodeEntity
public class User {
    @GraphId
    private Long id;

    User(String name){
        this.name = name;
    }
    private String name;

    public Long getId() {
        return id;
    }

    public String getName() {
        return name;
    }

}

configuration file is:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:context="http://www.springframework.org/schema/context"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:neo4j="http://www.springframework.org/schema/data/neo4j"
       xmlns:tx="http://www.springframework.org/schema/tx"
       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
        http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd
        http://www.springframework.org/schema/data/neo4j http://www.springframework.org/schema/data/neo4j/spring-neo4j-2.0.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd">

    <context:annotation-config/>
    <context:spring-configured/>

    <neo4j:config  storeDirectory="D:/data/db"/>
    <tx:annotation-driven mode="proxy"/>
    <context:component-scan base-package="com.neo4j.model"/>
</beans>

JUnit test case is :

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations={"classpath:/graph-test-context.xml"})
public class Neo4jUserTest {

    @Autowired
    Neo4jTemplate neo4jTemplate;
    @Test
    public void test() {
        User user = new User("test");
        neo4jTemplate.beginTx();
        neo4jTemplate.save(user);
    }
}

i have manually added below jar files from the eclipse buildpath:

commons-logging-1.0.4.jar
log4j-1.2.15.jar
jta.jar
cglib-2.1.3.jar
validation-api-1.0.0.GA.jar
lucene-core-3.5.0.jar
servlet-api.jar
org.springframework.aop-3.1.2.RELEASE.jar
org.springframework.asm-3.1.2.RELEASE.jar
org.springframework.aspects-3.1.2.RELEASE.jar
org.springframework.beans-3.1.2.RELEASE.jar
org.springframework.context.support-3.1.2.RELEASE.jar
org.springframework.context-3.1.2.RELEASE.jar
org.springframework.core-3.1.2.RELEASE.jar
org.springframework.expression-3.1.2.RELEASE.jar
org.springframework.instrument.tomcat-3.1.2.RELEASE.jar
org.springframework.instrument-3.1.2.RELEASE.jar
org.springframework.jdbc-3.1.2.RELEASE.jar
org.springframework.jms-3.1.2.RELEASE.jar
org.springframework.orm-3.1.2.RELEASE.jar
org.springframework.oxm-3.1.2.RELEASE.jar
org.springframework.test-3.1.2.RELEASE.jar
org.springframework.transaction-3.1.2.RELEASE.jar
org.springframework.web.portlet-3.1.2.RELEASE.jar
org.springframework.web.servlet-3.1.2.RELEASE.jar
org.springframework.web.struts-3.1.2.RELEASE.jar
org.springframework.web-3.1.2.RELEASE.jar
D:\JUnit\junit-4.6.jar
com.springsource.org.aopalliance-1.0.0.jar
aspectjtools-1.6.0.jar
asm-attrs.jar
asm.jar
spring-data-neo4j-2.1.0.RC1.jar
spring-data-neo4j-aspects-2.1.0.RC1.jar
spring-data-neo4j-cross-store-2.1.0.RC1.jar
spring-data-neo4j-rest-2.1.0.RC1.jar
slf4j-api-1.6.1.jar
slf4j-log4j12-1.7.2.jar
geronimo-jta_1.1_spec-1.1.1.jar
lucene-core-3.5.0.jar
org.apache.servicemix.bundles.jline-0.9.94_1.jar
scala-library-2.9.0-1.jar
server-api-1.7.2.jar
spring-data-commons-core-1.3.1.RELEASE.jar
hamcrest-all-1.3.jar
neo4j-cypher-dsl-1.6.M02.jar
neo4j-cypher-1.9-20120912.103508-32.jar
neo4j-kernel-1.9-20120912.102607-33.jar
neo4j-lucene-index-1.9-20120912.103015-33.jar
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T19:53:15+00:00Added an answer on June 13, 2026 at 7:53 pm

    Finally i solved it by using below jar files:

    aopalliance-1.0.jar
    asm-3.1.jar
    aspectjrt-1.6.12.jar
    backport-util-concurrent-3.1.jar
    cglib-2.2.jar
    codegen-0.5.5.jar
    commons-cli-1.0.jar
    ecj-3.7.2.jar
    guava-11.0.2.jar
    hamcrest-core-1.3.jar
    hamcrest-library-1.3.jar
    jakarta-regexp-1.4.jar
    javax.inject-1.jar
    jcl-over-slf4j-1.7.1.jar
    jsr305-1.3.9.jar
    jta.jar
    junit-3.8.1.jar
    junit-dep-4.10.jar
    logback-classic-1.0.6.jar
    logback-core-1.0.6.jar
    lucene-core-3.5.0.jar
    lucene-queries-3.5.0.jar
    mysema-commons-lang-0.2.4.jar
    neo4j-1.8.jar
    neo4j-cypher-1.8.jar
    neo4j-cypher-dsl-1.8.jar
    neo4j-graph-algo-1.8.jar
    neo4j-graph-matching-1.8.jar
    neo4j-jmx-1.8.jar
    neo4j-kernel-1.8.jar
    neo4j-lucene-index-1.8.jar
    neo4j-udc-1.8.jar
    plexus-compiler-api-1.9.1.jar
    plexus-compiler-javac-1.9.1.jar
    plexus-compiler-manager-1.9.1.jar
    plexus-interactivity-api-1.0-alpha-4.jar
    plexus-interpolation-1.11.jar
    plexus-interpolation-1.13.jar
    plexus-utils-1.5.15.jar
    plexus-utils-2.0.5.jar
    plexus-utils-3.0.jar
    querydsl-apt-2.8.2.jar
    querydsl-codegen-2.8.2.jar
    querydsl-core-2.8.2.jar
    querydsl-lucene-2.8.2.jar
    scala-library-2.9.1-1.jar
    slf4j-api-1.7.1.jar
    spring-aop-3.2.0.M2.jar
    spring-aspects-3.2.0.M2.jar
    spring-beans-3.2.0.M2.jar
    spring-context-3.2.0.M2.jar
    spring-core-3.2.0.M2.jar
    spring-data-commons-core-1.4.0.RELEASE.jar
    spring-data-neo4j-2.1.0.RELEASE.jar
    spring-expression-3.2.0.M2.jar
    spring-jdbc-3.2.0.M2.jar
    spring-orm-3.2.0.M2.jar
    spring-test-3.2.0.M2.jar
    spring-tx-3.2.0.M2.jar
    validation-api-1.0.0.GA.jar
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm just starting to learn to use HashMap and reading the java tutorial, but
I'm starting to learn the Spring framework and when i run the application i
I'm just starting to learn AspectJ, and I have use-case for say, User login.
I am just starting to learn about spring and was looking at the difference
I am starting to learn PHP and have a decent Java background. I came
I'm starting to learn c++ but I'm stuck in the destructor. We need to
I'm a noob at programming, but I'm starting to learn. I'm writing for iPhone,
I'm just starting to learn Java database persistence using Hibernate ORM and have run
I'm recently starting to learn Java and have had success writing and compiling my
I'm just starting to learn C# and ASP.NETMVC, but every example I've found puts

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.