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

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 Oracle Community by 843834, 1 year ago
cvc-elt.1: Cannot find the declaration of element 'Name'.
via hivmr.com by Unknown author, 1 year ago
cvc-elt.1: Cannot find the declaration of element 'Name'.
via Stack Overflow by Preethi Jain
, 2 years ago
cvc-elt.1: Cannot find the declaration of element 'beans'.
via Coderanch by Xavier George, 11 months ago
cvc-complex-type.2.4.a: Invalid content was found starting with element 'ejb-client-jar'. One of '{"http://java.sun.com/xml/ns/j2ee" isplay-name, "http://java.sun.com/xml/ns/j2ee":icon, "http://java.sun.com/xml/ns/j2ee":enterprise-beans}' is expected.
via coderanch.com by Unknown author, 2 years ago
cvc-complex-type.2.4.a: Invalid content was found starting with element 'ejb-client-jar'. One of '{"http://java.sun.com/xml/ns/j2ee" isplay-name, "http://java.sun.com/xml/ns/j2ee":icon, "http://java.sun.com/xml/ns/j2ee":enterprise-beans}' is expected.
via Google Groups by Angela Stempfel, 1 month ago
The content of element type "servlet" must match "(icon?,servlet-name,display-name?,description?,(servlet-class|jsp-file),init-param*,load-on-startup?,security-role-ref*)".
org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'Name'.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:232)
at org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:173)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 2 days ago
2 times, 2 weeks ago
2 times, 3 weeks ago
7 times, 6 months ago
2 times, 6 months ago
50 more bugmates

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