• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

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

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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'

 
Ranch Hand
Posts: 607
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Jagdish Gahlot
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
How do they get the deer to cross at the signs? Or to read this tiny ad?
create, convert, edit or print DOC and DOCX in Java
https://products.aspose.com/words/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!