Announcement Announcement Module
Collapse
No announcement yet.
setMappingContext(Lorg/springframework/data/mapping/context/MappingContext Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • setMappingContext(Lorg/springframework/data/mapping/context/MappingContext

    Hi

    I have some jar dependency error. Any help appreciated:

    maven dependencies:->
    spring: 3.2.2-RELEASE
    spring-data:1.3.0-RELEASE
    hibernate:4.2.1.Final
    hibernate-validator.version:4.3.1.Final

    I get this exception loading the context:

    Code:
    Caused by: org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
    PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'entityManager' threw exception; nested exception is java.lang.NoSuchMethodError: org.springframework.data.jpa.repository.support.JpaRepositoryFactoryBean.setMappingContext(Lorg/springframework/data/mapping/context/MappingContext;)V
    	at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:101)
    presume i have dependency error? Anyone know how to help?
    Also any suggestions on best way to debug this sort of dependency issue as it is not obvious to me.
    Thanks in advance for any help.
    Best regards
    Paul

  • #2
    To get this to work i added:

    Code:
    <dependency>
    			<groupId>org.springframework</groupId>
    			<artifactId>spring-webmvc</artifactId>
    			<version>${spring.version}</version>
    		</dependency>
    This link was helpful see comment from NicoTexas

    http://forum.springsource.org/showth...g-Data-JPA-1-2

    Comment

    Working...
    X