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

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

 
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
 
Won't you be my neighbor? - Fred Rogers. tiny ad:
Create Edit Print & Convert PDF Using Free API with Java
https://coderanch.com/wiki/703735/Create-Convert-PDF-Free-Spire
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!