Error setting Spring

Asked

Viewed 46 times

2

Could someone help me with this mistake:

Invalid Namespacehandler class [org.springframework.data.jpa.Repository.config.Jparepositorynamespacehandler] for namespace [http://www.springframework.org/schema/data/jpa]: problem with Handler class file or dependent class; nested Exception is java.lang.Noclassdeffounderror: org/springframework/data/Repository/config/Repositoryconfigurationextension

Applicationcontext:

<?xml version='1.0' encoding='UTF-8' ?>
<!-- was: <?xml version="1.0" encoding="UTF-8"?> -->
<beans xmlns="http://www.springframework.org/schema/beans"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xmlns:p="http://www.springframework.org/schema/p"
   xmlns:aop="http://www.springframework.org/schema/aop"
   xmlns:tx="http://www.springframework.org/schema/tx"
   xmlns:context="http://www.springframework.org/schema/context"
   xmlns:jpa="http://www.springframework.org/schema/data/jpa"
   xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
   http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-4.0.xsd
   http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-4.0.xsd
   http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.0.xsd
   http://www.springframework.org/schema/data/jpa http://www.springframework.org/schema/data/jpa/spring-jpa-1.3.xsd">

<context:annotation-config />
<bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
    <property name="persistenceXmlLocation" value="classpath:META-INF/persistence.xml" />
</bean>
<bean id="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager">
    <property name="entityManagerFactory" ref="entityManagerFactory" />
</bean>
<tx:annotation-driven />
<jpa:repositories base-package="br.com.spring.JPA.Repository" entity-manager-factory-ref="entityManagerFactory" transaction-manager-ref="transactionManager" />

</beans>
  • 1

    Hello! It is a new project or made some change recently in it that started to cause error?

  • 1

    What version of spring-data of the application?

  • Version 1.3 of the new spring-date design

  • Could inform the dependencies of this project, with the versions?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.