• 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
  • Devaka Cooray
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Cannot find the declaration of element 'constraint-mappings'  RSS feed

 
martin mucha
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Reading documentation:
https://docs.jboss.org/hibernate/stable/validator/reference/en-US/html_single/#section-mapping-xml-constraints

I removed one long bean definition for brevity, then source looks like below. When executed, I get: `Caused by: org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'constraint-mappings'.` Great, so there should be something wrong with schema or xml file.

But what. I never actually understood all that weird definition of namespaces. So first 3 http URLs leads nowhere and they probably serve some higher purpose, while the last one ending in xsd does exist and does define `constraint-mappings` element. And whole document is, according to Intellij IDEA valid, which it is I believe. I if I try to corrupt it, then IntellijIDEA sees it. So I'd presume that it actually is valid. So *why on earth* spring produces given error on startup???

validation.xml file:

 
martin mucha
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
into validation.xml belongs xml complying to http://xmlns.jcp.org/xml/ns/validation/configuration/validation-configuration-2.0.xsd
 
All of the world's problems can be solved in a garden - Geoff Lawton. Tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!