org.xml.sax.SAXParseException: Document is invalid: no grammar found.

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 Icesoft by rimvydas.bin, 1 year ago
via Oracle Community by 843834, 1 year ago
Document is invalid: no grammar found.
via GitHub by mujahedsyed
, 2 years ago
cvc-complex-type.2.4.a: Invalid content was found starting with element 'mongo:elementAttributes'. One of '{"http://www.mulesoft.org/schema/mule/core":annotations}' 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 Coderanch by Xavier George, 1 year 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 by nachagoni rishi, 11 months ago
Document root element "form-validation", must match DOCTYPE root "null".
org.xml.sax.SAXParseException: Document is invalid: no grammar found.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)

Users with the same issue

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

Write tip

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