org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaratio n of element 'beans'. [java] at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.c reateSAXParseException(ErrorHandlerWrapper.java:236) [java] at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.e rror(ErrorHandlerWrapper.java:172) [java] at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.repo rtError(XMLErrorReporter.java:382) [java] at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.repo rtError(XMLErrorReporter.java:316) [java] at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator .handleStartElement(XMLSchemaValidator.java:1944) [java] at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator .startElement(XMLSchemaValidator.java:705) [java] at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerI mpl.scanStartElement(XMLNSDocumentScannerImpl.java:330) [java] at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerI mpl$NSContentDispatcher.scanRootElementHook(XMLNSDocumentScannerImpl.java:779) [java] at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentSc annerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java :1794) [java] at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentSc annerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368) [java] at com.sun.org.apache.xerces.internal.parsers.XML11Configuration .parse(XML11Configuration.java:834) [java] at com.sun.org.apache.xerces.internal.parsers.XML11Configuration .parse(XML11Configuration.java:764) [java] at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XM LParser.java:148) [java] at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DO MParser.java:250) [java] at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.p arse(DocumentBuilderImpl.java:292) [java] at org.springframework.beans.factory.xml.DefaultDocumentLoader.l oadDocument(DefaultDocumentLoader.java:75) [java] at org.springframework.beans.factory.xml.XmlBeanDefinitionReader .doLoadBeanDefinitions(XmlBeanDefinitionReader.java:396) [java] at org.springframework.beans.factory.xml.XmlBeanDefinitionReader .loadBeanDefinitions(XmlBeanDefinitionReader.java:342) [java] at org.springframework.beans.factory.xml.XmlBeanDefinitionReader .loadBeanDefinitions(XmlBeanDefinitionReader.java:310) [java] at org.springframework.beans.factory.support.AbstractBeanDefinit ionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143) [java] at org.springframework.beans.factory.support.AbstractBeanDefinit ionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178) [java] at org.springframework.beans.factory.support.AbstractBeanDefinit ionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149) [java] at org.springframework.web.context.support.XmlWebApplicationCont ext.loadBeanDefinitions(XmlWebApplicationContext.java:124) [java] at org.springframework.web.context.support.XmlWebApplicationCont ext.loadBeanDefinitions(XmlWebApplicationContext.java:92) [java] at org.springframework.context.support.AbstractRefreshableApplic ationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123) [java] at org.springframework.context.support.AbstractApplicationContex t.obtainFreshBeanFactory(AbstractApplicationContext.java:423) [java] at org.springframework.context.support.AbstractApplicationContex t.refresh(AbstractApplicationContext.java:353) [java] at org.springframework.web.servlet.FrameworkServlet.createWebApp licationContext(FrameworkServlet.java:402) [java] at org.springframework.web.servlet.FrameworkServlet.initWebAppli cationContext(FrameworkServlet.java:316) [java] at org.springframework.web.servlet.FrameworkServlet.initServletB ean(FrameworkServlet.java:282) [java] at org.springframework.web.servlet.HttpServletBean.init(HttpServ letBean.java:126) [java] at javax.servlet.GenericServlet.init(GenericServlet.java:241) [java] at com.bea.core.jetty.internal.ServletHandler.init(ServletHandle r.java:121) [java] at com.bea.core.jetty.internal.OsgiContextHandler.registerServle t(OsgiContextHandler.java:163) [java] at com.bea.core.jetty.internal.OsgiHttpServiceWrapper.registerSe rvlet(OsgiHttpServiceWrapper.java:79) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces sorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet hodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:585) [java] at org.springframework.osgi.service.importer.support.internal.ao p.ServiceInvoker.doInvoke(ServiceInvoker.java:64) [java] at org.springframework.osgi.service.importer.support.internal.ao p.ServiceInvoker.invoke(ServiceInvoker.java:78) [java] at org.springframework.aop.framework.ReflectiveMethodInvocation. proceed(ReflectiveMethodInvocation.java:171) [java] at org.springframework.aop.support.DelegatingIntroductionInterce ptor.doProceed(DelegatingIntroductionInterceptor.java:131) [java] at org.springframework.aop.support.DelegatingIntroductionInterce ptor.invoke(DelegatingIntroductionInterceptor.java:119) [java] at org.springframework.aop.framework.ReflectiveMethodInvocation. proceed(ReflectiveMethodInvocation.java:171) [java] at org.springframework.osgi.service.util.internal.aop.ServiceTCC LInterceptor.invoke(ServiceTCCLInterceptor.java:36) [java] at org.springframework.aop.framework.ReflectiveMethodInvocation. proceed(ReflectiveMethodInvocation.java:171) [java] at org.springframework.osgi.service.importer.support.LocalBundle ContextAdvice.invoke(LocalBundleContextAdvice.java:59) [java] at org.springframework.aop.framework.ReflectiveMethodInvocation. proceed(ReflectiveMethodInvocation.java:171) [java] at org.springframework.aop.support.DelegatingIntroductionInterce ptor.doProceed(DelegatingIntroductionInterceptor.java:131) [java] at org.springframework.aop.support.DelegatingIntroductionInterce ptor.invoke(DelegatingIntroductionInterceptor.java:119) [java] at org.springframework.aop.framework.ReflectiveMethodInvocation. proceed(ReflectiveMethodInvocation.java:171) [java] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(J dkDynamicAopProxy.java:204) [java] at $Proxy51.registerServlet(Unknown Source) [java] at com.bea.wlevs.cluster.gbcast.impl.http.GBcastServlet.serviceA vailable(GBcastServlet.java:79) [java] at com.bea.wlevs.cluster.gbcast.impl.http.GBcastServlet.afterPro pertiesSet(GBcastServlet.java:66) [java] at org.springframework.beans.factory.support.AbstractAutowireCap ableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1366) [java] at org.springframework.beans.factory.support.AbstractAutowireCap ableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1332) [java] at org.springframework.beans.factory.support.AbstractAutowireCap ableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:471) [java] at org.springframework.beans.factory.support.AbstractAutowireCap ableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) [java] at java.security.AccessController.doPrivileged(Native Method)

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

Solutions on the web

via Spring JIRA by Andy Piper, 1 year ago
cvc-elt.1: Cannot find the declaratio n of element 'beans'. [java] at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.c reateSAXParseException(ErrorHandlerWrapper.java:236) [java] at
via Spring JIRA by Andy Piper, 1 year ago
cvc-elt.1: Cannot find the declaratio n of element 'beans'. [java] at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.c reateSAXParseException(ErrorHandlerWrapper.java:236) [java] at
via apache.org by Unknown author, 2 years ago
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'ext:property-placeholder '.o at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadB eanDefinitions
via osdir.com by Unknown author, 1 year ago
cvc-elt.1: Cannot find the declaration of element 'beans'. at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:404) at
via osdir.com by Unknown author, 2 years ago
cvc-elt.1: Cannot find the declaration of element 'beans'. at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:404) at
via grokbase.com by Unknown author, 2 years ago
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'http:endpoint'. at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:404) at
org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaratio n of element 'beans'. [java] at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.c reateSAXParseException(ErrorHandlerWrapper.java:236) [java] at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.e rror(ErrorHandlerWrapper.java:172) [java] at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.repo rtError(XMLErrorReporter.java:382) [java] at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.repo rtError(XMLErrorReporter.java:316) [java] at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator .handleStartElement(XMLSchemaValidator.java:1944) [java] at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator .startElement(XMLSchemaValidator.java:705) [java] at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerI mpl.scanStartElement(XMLNSDocumentScannerImpl.java:330) [java] at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerI mpl$NSContentDispatcher.scanRootElementHook(XMLNSDocumentScannerImpl.java:779) [java] at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentSc annerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java :1794) [java] at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentSc annerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368) [java] at com.sun.org.apache.xerces.internal.parsers.XML11Configuration .parse(XML11Configuration.java:834) [java] at com.sun.org.apache.xerces.internal.parsers.XML11Configuration .parse(XML11Configuration.java:764) [java] at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XM LParser.java:148) [java] at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DO MParser.java:250) [java] at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.p arse(DocumentBuilderImpl.java:292) [java] at org.springframework.beans.factory.xml.DefaultDocumentLoader.l oadDocument(DefaultDocumentLoader.java:75) [java] at org.springframework.beans.factory.xml.XmlBeanDefinitionReader .doLoadBeanDefinitions(XmlBeanDefinitionReader.java:396) [java] at org.springframework.beans.factory.xml.XmlBeanDefinitionReader .loadBeanDefinitions(XmlBeanDefinitionReader.java:342) [java] at org.springframework.beans.factory.xml.XmlBeanDefinitionReader .loadBeanDefinitions(XmlBeanDefinitionReader.java:310) [java] at org.springframework.beans.factory.support.AbstractBeanDefinit ionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143) [java] at org.springframework.beans.factory.support.AbstractBeanDefinit ionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178) [java] at org.springframework.beans.factory.support.AbstractBeanDefinit ionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149) [java] at org.springframework.web.context.support.XmlWebApplicationCont ext.loadBeanDefinitions(XmlWebApplicationContext.java:124) [java] at org.springframework.web.context.support.XmlWebApplicationCont ext.loadBeanDefinitions(XmlWebApplicationContext.java:92) [java] at org.springframework.context.support.AbstractRefreshableApplic ationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123) [java] at org.springframework.context.support.AbstractApplicationContex t.obtainFreshBeanFactory(AbstractApplicationContext.java:423) [java] at org.springframework.context.support.AbstractApplicationContex t.refresh(AbstractApplicationContext.java:353) [java] at org.springframework.web.servlet.FrameworkServlet.createWebApp licationContext(FrameworkServlet.java:402) [java] at org.springframework.web.servlet.FrameworkServlet.initWebAppli cationContext(FrameworkServlet.java:316) [java] at org.springframework.web.servlet.FrameworkServlet.initServletB ean(FrameworkServlet.java:282) [java] at org.springframework.web.servlet.HttpServletBean.init(HttpServ letBean.java:126) [java] at javax.servlet.GenericServlet.init(GenericServlet.java:241) [java] at com.bea.core.jetty.internal.ServletHandler.init(ServletHandle r.java:121) [java] at com.bea.core.jetty.internal.OsgiContextHandler.registerServle t(OsgiContextHandler.java:163) [java] at com.bea.core.jetty.internal.OsgiHttpServiceWrapper.registerSe rvlet(OsgiHttpServiceWrapper.java:79) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces sorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet hodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:585) [java] at org.springframework.osgi.service.importer.support.internal.ao p.ServiceInvoker.doInvoke(ServiceInvoker.java:64) [java] at org.springframework.osgi.service.importer.support.internal.ao p.ServiceInvoker.invoke(ServiceInvoker.java:78) [java] at org.springframework.aop.framework.ReflectiveMethodInvocation. proceed(ReflectiveMethodInvocation.java:171) [java] at org.springframework.aop.support.DelegatingIntroductionInterce ptor.doProceed(DelegatingIntroductionInterceptor.java:131) [java] at org.springframework.aop.support.DelegatingIntroductionInterce ptor.invoke(DelegatingIntroductionInterceptor.java:119) [java] at org.springframework.aop.framework.ReflectiveMethodInvocation. proceed(ReflectiveMethodInvocation.java:171) [java] at org.springframework.osgi.service.util.internal.aop.ServiceTCC LInterceptor.invoke(ServiceTCCLInterceptor.java:36) [java] at org.springframework.aop.framework.ReflectiveMethodInvocation. proceed(ReflectiveMethodInvocation.java:171) [java] at org.springframework.osgi.service.importer.support.LocalBundle ContextAdvice.invoke(LocalBundleContextAdvice.java:59) [java] at org.springframework.aop.framework.ReflectiveMethodInvocation. proceed(ReflectiveMethodInvocation.java:171) [java] at org.springframework.aop.support.DelegatingIntroductionInterce ptor.doProceed(DelegatingIntroductionInterceptor.java:131) [java] at org.springframework.aop.support.DelegatingIntroductionInterce ptor.invoke(DelegatingIntroductionInterceptor.java:119) [java] at org.springframework.aop.framework.ReflectiveMethodInvocation. proceed(ReflectiveMethodInvocation.java:171) [java] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(J dkDynamicAopProxy.java:204) [java] at $Proxy51.registerServlet(Unknown Source) [java] at com.bea.wlevs.cluster.gbcast.impl.http.GBcastServlet.serviceA vailable(GBcastServlet.java:79) [java] at com.bea.wlevs.cluster.gbcast.impl.http.GBcastServlet.afterPro pertiesSet(GBcastServlet.java:66) [java] at org.springframework.beans.factory.support.AbstractAutowireCap ableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1366) [java] at org.springframework.beans.factory.support.AbstractAutowireCap ableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1332) [java] at org.springframework.beans.factory.support.AbstractAutowireCap ableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:471) [java] at org.springframework.beans.factory.support.AbstractAutowireCap ableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) [java] at java.security.AccessController.doPrivileged(Native Method)
at java.lang.Thread.run(Thread.java:595)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

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