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 Coderanch by Micheal John, 1 year ago
Document root element "web-app", must match DOCTY PE root "null".
via Coderanch by melina ser, 1 year ago
Document root element "web-app", must match DOCTY PE root "null".
via Coderanch by Micheal John, 1 year ago
Document root element "web-app", must match DOCTY PE root "null".
via Oracle Community by 843841, 1 year ago
Document root element "web-app", must match DOCTY PE root "null".
via hivmr.com by Unknown author, 1 year ago
Document root element "web-app", must match DOCTY PE root "null".
via Oracle Community by 843841, 1 year ago
Document root element "web-app", must match DOCTY PE root "null".
org.xml.sax.SAXParseException: Document root element "web-app", must match DOCTY
PE root "null".	at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)	at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)	at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)	at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)	at org.apache.xerces.impl.dtd.XMLDTDValidator.rootElementSpecified(Unknown Source)	at org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(Unknown Source)	at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)	at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook(Unknown Source)	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)	at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)	at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)	at org.apache.commons.digester.Digester.parse(Digester.java:1548)	at org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfig.java:282)	at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:639)	at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:243)	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)	at org.apache.catalina.core.StandardContext.start(StandardContext.java:3582)	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821)	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)	at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:307)	at org.apache.catalina.core.StandardHost.install(StandardHost.java:788)	at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:559)	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:401)	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:718)	at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:358)	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)	at org.apache.catalina.core.StandardHost.start(StandardHost.java:754)	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:363)	at org.apache.catalina.core.StandardService.start(StandardService.java:497)	at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)	at org.apache.catalina.startup.Catalina.start(Catalina.java:512)	at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)	at org.apache.catalina.startup.Catalina.process(Catalina.java:180)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)	at java.lang.reflect.Method.invoke(Method.java:585)	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)