Uploaded image for project: 'Spring Data Commons'
  1. Spring Data Commons
  2. DATACMNS-687

Add section on dependency management for Spring Data modules and Spring Framework to the reference documentation

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.5 (Dijkstra SR5), 1.9.2 (Evans SR2), 1.10 GA (Fowler)
    • Component/s: None
    • Labels:
      None
    • Environment:
      Java 7, Spring 3.2.13
    • Sprint:
      57 - Fowler Aftermath

      Description

      I'm having trouble telling if this is a valid bug from the documentation because I'm not sure if Spring Data 1.7+ should actually work on 3.2, but it does say that it should work without spring so I assume Spring 3.2 is a valid target. This error does not exist in 1.6.5

      I'm getting the following exception trying to autowire an empty repository (meaning I haven't defined additional methods) that extends PagingAndSortingRepository

      org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'organizationActivityLogDtoSupplier' defined in file [/Users/ccushing/IdeaProjects/dex/dex-service-api/target/classes/com/mckesson/dex/service/resource/OrganizationActivityLogDtoSupplier.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [com.mckesson.dex.repository.OrganizationActivityLogRepository]: : Error creating bean with name 'organizationActivityLogRepository': Cannot resolve reference to bean 'jpaMappingContext' while setting bean property 'mappingContext'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jpaMappingContext': Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/springframework/core/DefaultParameterNameDiscoverer; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'organizationActivityLogRepository': Cannot resolve reference to bean 'jpaMappingContext' while setting bean property 'mappingContext'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jpaMappingContext': Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/springframework/core/DefaultParameterNameDiscoverer
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              olivergierke Oliver Drotbohm
              Reporter:
              xenoterracide Caleb Cushing
              Last updater:
              Oliver Drotbohm
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: