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 MuleSoft JIRA by Cédric Vidal, 1 year ago
Line 11 in XML document from resource loaded through InputStream is invalid; nested exception is org.xml.sax.SAXParseException: Document root element "beans", must match DOCTYPE root "null".
via MuleSoft JIRA by Cédric Vidal, 2 years ago
Line 11 in XML document from resource loaded through InputStream is invalid; nested exception is org.xml.sax.SAXParseException: Document root element "beans", must match DOCTYPE root "null".
via Stack Overflow by Oneb
, 2 years ago
Line 9 in XML document from ServletContext resource [/WEB-INF/spring-security.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lin eNumber: 9; columnNumber: 79; cvc-elt.1: Cannot find the declaration of element 'beans:beans'.
via Stack Overflow by manish
, 2 years ago
Line 117 in XML document from ServletContext resource [/WEB-INF/config/spring-security.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 117; columnNumber: 51; cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'oauth:authorization-server'.
org.xml.sax.SAXParseException: Document root element "beans", must match DOCTYPE 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.XML11Configuration.parse(Unknown Source)	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)	at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)	at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)	at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:78)	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:351)	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:303)	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:280)	at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:142)	at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:158)	at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:184)	at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:112)	at org.mule.extras.spring.config.MuleApplicationContext.loadBeanDefinitions(MuleApplicationContext.java:65)	at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:101)	at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:395)	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:330)	at org.mule.extras.spring.config.MuleApplicationContext.(MuleApplicationContext.java:46)	at org.mule.extras.spring.config.MuleApplicationContext.(MuleApplicationContext.java:38)	at org.mule.extras.spring.config.SpringConfigurationBuilder.configure(SpringConfigurationBuilder.java:99)	at org.mule.extras.spring.config.SpringConfigurationBuilder.configure(SpringConfigurationBuilder.java:68)	at com.vecteurplus.synergies.esb.SynergiesEsb.(SynergiesEsb.java:31)	at com.vecteurplus.synergies.esb.SynergiesEsb.main(SynergiesEsb.java:21)