This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Spring and the fly likes XML name space error in Spring data JPA hibernate applicationContext.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "XML name space error in Spring data JPA hibernate applicationContext.xml" Watch "XML name space error in Spring data JPA hibernate applicationContext.xml" New topic
Author

XML name space error in Spring data JPA hibernate applicationContext.xml

Jagdish Gahlot
Greenhorn

Joined: Nov 17, 2011
Posts: 5
i have started learning spring as per my project requirement. right now we are using Spring data JPA with hibernate. I have created few samples with different approaches like using JpaRepository, Multiple datasource in Spring JPA with hibernate. I am stuck with a small problem in one of my example regarding XML Namespace in my applicationContext.xml. i couldn't find why this xml is causing problem at startup. Below is my applicationContext.xml file, can anyone have a look and tell me what exactly i am missing here?
Error : Cannot find the declaration of element 'beans'

Saifuddin Merchant
Ranch Hand

Joined: Feb 08, 2009
Posts: 605

You spring aop schema URL does not look correct. There is an extra 's' out there ...

xsi:schemaLocation="http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/sspring-aop-3.0.xsd


Also how are you running this code? Are you trying to create a single jar file and then trying to run the code?


Cheers - Sam.
Twisters - The new age Java Quiz || My Blog
Jagdish Gahlot
Greenhorn

Joined: Nov 17, 2011
Posts: 5
Thanks Sam, and sorry for this silly mistake done.
No i am learning spring data jpa so right now running few samples using main() method itself.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: XML name space error in Spring data JPA hibernate applicationContext.xml