org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 9 in XML document from class path resource [cxf.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 9; columnNumber: 64; cvc-elt.1.a: Cannot find the declaration of element 'beans'.


Solutions on the web

Solution icon of atlassian
via Atlassian JIRA by Markus Staudt, 1 year ago
Line 9 in XML document from class path resource [cxf.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 9; columnNumber: 64; cvc-elt.1.a: Cannot find the declaration of element 'beans'.

Solution icon of atlassian
via Atlassian JIRA by Markus Staudt, 1 year ago
Line 9 in XML document from class path resource [cxf.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 9; columnNumber: 64; cvc-elt.1.a: Cannot find the declaration of element 'beans'.

Solution icon of atlassian
via Atlassian JIRA by Markus Staudt, 1 year ago
Line 9 in XML document from class path resource [cxf.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 9; columnNumber: 64; cvc-elt.1.a: Cannot find the declaration of element 'beans'.

Solution icon of atlassian
via Atlassian JIRA by Markus Staudt, 1 year ago
Line 9 in XML document from class path resource [cxf.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 9; columnNumber: 64; cvc-elt.1.a: Cannot find the declaration of element 'beans'.

Solution icon of github
Line 9 in XML document from class path resource [org/opentripplanner/graph_builder/application-context.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 9; columnNumber: 132; cvc-elt.1: Cannot find the declaration of element 'beans'.

Solution icon of stackoverflow
via Stack Overflow by NewProger
, 1 year ago
Line 2 in XML document from class path resource [server/spring.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 2; columnNumber: 8; cvc-elt.1: Cannot find the declaration of element 'beans'.

Solution icon of web
Line 6 in XML document from class path resource [reso urces/applicationContext-DAO.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 6; columnNumber: 336; cvc- elt.1: Cannot find the declaration of element 'beans'.

Solution icon of web
via coderanch.com by Unknown author, 1 year ago
Line 2 in XML document from class path resource [jms-spring.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 2; columnNumber: 41; cvc-elt.1: Cannot find the declaration of element 'beans'.

Solution icon of stackoverflow
Line 7 in XML document from class path resource [applicationContext-default-cron.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 7; columnNumber: 225; cvc-elt.1: Cannot find the declaration of element 'beans'.

Solution icon of stackoverflow
Line 11 in XML document from class path resource [jms-spring-context.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 11; columnNumber: 116; cvc-elt.1: Cannot find the declaration of element 'beans'.

Stack trace

org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 9 in XML document from class path resource [cxf.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 9; columnNumber: 64; cvc-elt.1.a: Cannot find the declaration of element 'beans'.
	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:404)
	at org.apache.cxf.bus.spring.ControlledValidationXmlBeanDefinitionReader.doLoadBeanDefinitions(ControlledValidationXmlBeanDefinitionReader.java:108)
	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:342)
	at org.apache.cxf.bus.spring.ControlledValidationXmlBeanDefinitionReader.loadBeanDefinitions(ControlledValidationXmlBeanDefinitionReader.java:128)
	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)
	at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
	at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:109)
	at org.apache.cxf.bus.spring.BusApplicationContext.loadBeanDefinitions(BusApplicationContext.java:263)
	at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123)
	at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:422)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
	at org.apache.cxf.bus.spring.BusApplicationContext.<init>(BusApplicationContext.java:91)
	at org.apache.cxf.bus.spring.SpringBusFactory.createApplicationContext(SpringBusFactory.java:110)
	at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:93)
	at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:86)
	at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:64)
	at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:53)
	at org.apache.cxf.BusFactory.getDefaultBus(BusFactory.java:69)
	at org.apache.cxf.BusFactory.getThreadDefaultBus(BusFactory.java:106)
	at org.apache.cxf.BusFactory.getThreadDefaultBus(BusFactory.java:97)
	at org.apache.cxf.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:64)
	at javax.xml.ws.Service.<init>(Service.java:36)
	at com.microsoft.schemas.sharepoint.soap.Lists.Lists.<init>(Lists.java:42)
	at com.atlassian.confluence.extra.sharepoint.ws.cxf.CXFServiceFactory.getListsService(CXFServiceFactory.java:53)
	at com.atlassian.confluence.extra.sharepoint.ws.service.WebServiceCacheImpl.getListsServiceForSite(WebServiceCacheImpl.java:125)
	at com.atlassian.confluence.extra.sharepoint.ws.WebServiceAccessorImpl.getList(WebServiceAccessorImpl.java:484)
	at com.atlassian.confluence.extra.sharepoint.macros.DefaultSharePointListMacroRenderer.render(DefaultSharePointListMacroRenderer.java:202)
	at com.atlassian.confluence.extra.sharepoint.macros.xhtml.SharePointListMacro.execute(SharePointListMacro.java:56)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)
	at com.atlassian.confluence.macro.xhtml.XhtmlMacroManager$ResourceAwareMacroInvocationHandler.invoke(XhtmlMacroManager.java:229)
	at com.sun.proxy.$Proxy2992.execute(Unknown Source)
	at com.atlassian.confluence.content.render.xhtml.view.macro.ViewMacroMarshaller.executeMacro(ViewMacroMarshaller.java:208)
	at com.atlassian.confluence.content.render.xhtml.view.macro.ViewMacroMarshaller.marshalInternal(ViewMacroMarshaller.java:158)
	at com.atlassian.confluence.content.render.xhtml.view.macro.ViewMacroMarshaller.lambda$marshal$282(ViewMacroMarshaller.java:90)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
38 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
11 times, 1 year ago
11 more bugmates