spring - getting error Invalid NamespaceHandler class org.springframework.data.jpa.repository.config.JpaRepositoryNameSpaceHandler -
while running spring getting error that
unexpected exception parsing xml document class path resource [spring/tx-annotation-app-context.xml]; nested exception org.springframework.beans.fatalbeanexception: invalid namespacehandler class [org.springframework.data.jpa.repository.config.jparepositorynamespacehandler] namespace [http://www.springframework.org/schema/data/jpa]: problem handler class file or dependent class; nested exception java.lang.noclassdeffounderror: org/springframework/data/repository/config/repositoryconfigurationextension
here file
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xmlns:context="http://www.springframework.org/schema/context" xmlns:jdbc="http://www.springframework.org/schema/jdbc" xmlns:tx="http://www.springframework.org/schema/tx" xmlns:jpa="http://www.springframework.org/schema/data/jpa" xsi:schemalocation="http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc-3.1.xsd http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.1.xsd http://www.springframework.org/schema/data/jpa http://www.springframework.org/schema/data/jpa/spring-jpa-1.2.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd"> <description>example configuration started.</description> .... </beans>
here screen shot of included jars
what doing wrong namespace ?
thanks
i think problem using spring-data-commons-core
version 1.1 , spring-data-jpa
version 1.2. align versions of these libraries.
looking @ pom.xml file 1 of projects see.
<dependency> <groupid>org.springframework.data</groupid> <artifactid>spring-data-jpa</artifactid> <version>1.2.0.release</version> </dependency>
and uses spring-data-commons-core-1.4.0.release.jar
if switch packaging of spring-data-jpa
pom, should download necessary dependencies, switch jar
.
Comments
Post a Comment