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

  1. ,

    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 strutstestcase by nobody
, 1 year ago
Document root element "web-app", must match DOCTYPE root "null".
via Google Groups by luca passani, 6 months ago
Document root element "taglib", must match DOCTYP E root "null".
via Oracle Community by 843842, 1 year ago
Document root element "taglib", must match DOCTYPE root "null".
via Oracle Community by 807569, 1 year ago
Document root element "web-app", must match DOCTY PE root "null".
via hivmr.com by Unknown author, 2 years ago
Document root element "web-app", must match DOCTYPE root "null".
via Coderanch by abinash das, 1 year ago
Document root element "web-app", must match DOCTYPE root "null".
org.xml.sax.SAXParseException: Document root element "web-app", must match DOCTYPE root "null".	at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:232)	at org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:173)	at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:362)	at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:296)	at org.apache.xerces.impl.dtd.XMLDTDValidator.rootElementSpecified(XMLDTDValidator.java:1553)	at org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(XMLDTDValidator.java:1844)	at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java:752)	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:752)	at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook(XMLDocumentScannerImpl.java:942)	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1520)	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:333)	at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:524)	at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:580)	at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)	at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1169)	at org.apache.commons.digester.Digester.parse(Digester.java:1567)	at servletunit.struts.MockStrutsTestCase.setServletConfigFile(MockStrutsTestCase.java:603)	at test.TestSaveNestedActionTest.setUp(TestSaveNestedActionTest.java:22)	at junit.framework.TestCase.runBare(TestCase.java:125)	at junit.framework.TestResult$1.protect(TestResult.java:106)	at junit.framework.TestResult.runProtected(TestResult.java:124)	at junit.framework.TestResult.run(TestResult.java:109)	at junit.framework.TestCase.run(TestCase.java:118)	at junit.framework.TestSuite.runTest(TestSuite.java:208)	at junit.framework.TestSuite.run(TestSuite.java:203)	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:421)	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:305)	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:186)