org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'log'.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,

The persistence_2_0.xsd enforces the order of the elements in the xml. Re-ordering them makes then error go away.

Solutions on the web

via xerces-j-users by Bernd Kolb (KolbW@re), 1 year ago
cvc-elt.1: Cannot find the declaration of element 'log'.
via xerces-j-users by Bernd Kolb (KolbW@re), 1 year ago
cvc-elt.1: Cannot find the declaration of element 'log'.
via xerces-j-users by Michael Glavassevich, 4 months ago
cvc-elt.1: Cannot find the declaration of element 'log'.
via Stack Overflow by Unknown author, 2 years ago
cvc-elt.1: Cannot find the declaration of element 'ns:Request'.
via java.net by Unknown author, 2 years ago
cvc-elt.1: Cannot find the declaration of element 'catalogue'.
org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'log'.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(UnknownSource)
at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(UnknownSource)
at org.apache.xerces.impl.XMLErrorReporter.reportError(UnknownSource)
at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(UnknownSource)
at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(UnknownSource)
at org.apache.xerces.jaxp.validation.DOMValidatorHelper.beginNode(UnknownSource)
at org.apache.xerces.jaxp.validation.DOMValidatorHelper.validate(UnknownSource)
at org.apache.xerces.jaxp.validation.DOMValidatorHelper.validate(UnknownSource)
at undefined.XMLValidation.(XMLValidation.java:52)
at undefined.XMLValidation.main(XMLValidation.java:23)

Users with the same issue

2 times, 11 months ago
Samebug visitor profile picture
Unknown user
2 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 week ago
2 times, 3 weeks ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.