org.xml.sax.SAXParseException

cvc-elt.1: Cannot find the declaration of elem ent 'beans'. [java] at org.springframework.beans.factory.xml.XmlBeanDefinitionReader .doLoadBeanDefinitions(XmlBeanDefinitionReader.java:404) [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)

Solutions on the web3173

  • via Spring JIRA by Andy Piper, 1 year ago
    cvc-elt.1: Cannot find the declaration of elem ent 'beans'. [java] at org.springframework.beans.factory.xml.XmlBeanDefinitionReader .doLoadBeanDefinitions(XmlBeanDefinitionReader.java:404) [java] at
  • via Spring JIRA by Andy Piper, 1 year ago
    cvc-elt.1: Cannot find the declaration of elem ent 'beans'. [java] at org.springframework.beans.factory.xml.XmlBeanDefinitionReader .doLoadBeanDefinitions(XmlBeanDefinitionReader.java:404) [java] at
  • cvc- elt.1: Cannot find the declaration of element 'beans'. at org .springframework .beans .factory .xml .XmlBeanDefinitionReader .doLoadBeanDefinitions(XmlBeanDefinitionReader.java:404) at org .springframework .beans .factory .xml
  • Stack trace

    • org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of elem ent 'beans'. [java] at org.springframework.beans.factory.xml.XmlBeanDefinitionReader .doLoadBeanDefinitions(XmlBeanDefinitionReader.java:404) [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)

    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

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