eans.factory.xml.XmlBeanDefinitionStoreException: Line 6 in XML document from Se rvletContext resource [/WEB-INF/com.bea.wlevs.cluster.gbcast.impl.http.GBcastSer vlet-servlet.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'beans'. [java] at org.springframework.beans.factory.support.AbstractAutowireCap ableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335) [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)

Spring JIRA | Andy Piper | 9 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    I know this is very weird, but I am seeing a consistent namespace error in a SpringDM bundle, but only when the network is not connected (as in internet). This worked fine under 1.0.x [java] org.springframework.beans.factory.BeanCreationException: Error creat ing bean with name 'servletBean' defined in URL [bundleentry://135/META-INF/spri ng/com.bea.wlevs.cluster.gcp.xml]: Invocation of init method failed; nested exce ption is org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 6 in XML document from ServletContext resource [/WEB-INF/com.bea.wlevs.clus ter.gbcast.impl.http.GBcastServlet-servlet.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'beans'. [java] at org.springframework.beans.factory.support.AbstractAutowireCap ableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335) [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) [java] at org.springframework.beans.factory.support.AbstractAutowireCap ableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) [java] at org.springframework.beans.factory.support.AbstractBeanFactory $1.getObject(AbstractBeanFactory.java:264) [java] at org.springframework.beans.factory.support.DefaultSingletonBea nRegistry.getSingleton(DefaultSingletonBeanRegistry.java:221) [java] at org.springframework.beans.factory.support.AbstractBeanFactory .doGetBean(AbstractBeanFactory.java:261) [java] at org.springframework.beans.factory.support.AbstractBeanFactory .getBean(AbstractBeanFactory.java:185) [java] at org.springframework.beans.factory.support.AbstractBeanFactory .getBean(AbstractBeanFactory.java:164) [java] at org.springframework.beans.factory.support.DefaultListableBean Factory.getBeansOfType(DefaultListableBeanFactory.java:308) [java] at org.springframework.context.support.AbstractApplicationContex t.getBeansOfType(AbstractApplicationContext.java:948) [java] at org.springframework.context.support.AbstractApplicationContex t.registerListeners(AbstractApplicationContext.java:702) [java] at org.springframework.osgi.context.support.AbstractDelegatedExe cutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationCo ntext.java:273) [java] at org.springframework.osgi.extender.internal.dependencies.start up.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(Dependency WaiterApplicationContextExecutor.java:145) [java] at java.lang.Thread.run(Thread.java:595) [java] org.springframework.beans.factory.xml.XmlBeanDefinitionStoreExceptio n: Line 6 in XML document from ServletContext resource [/WEB-INF/com.bea.wlevs.c luster.gbcast.impl.http.GBcastServlet-servlet.xml] is invalid; nested exception is 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) [java] at org.springframework.beans.factory.support.AbstractAutowireCap ableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) [java] at org.springframework.beans.factory.support.AbstractBeanFactory $1.getObject(AbstractBeanFactory.java:264) [java] at org.springframework.beans.factory.support.DefaultSingletonBea nRegistry.getSingleton(DefaultSingletonBeanRegistry.java:221) [java] at org.springframework.beans.factory.support.AbstractBeanFactory .doGetBean(AbstractBeanFactory.java:261) [java] at org.springframework.beans.factory.support.AbstractBeanFactory .getBean(AbstractBeanFactory.java:185) [java] at org.springframework.beans.factory.support.AbstractBeanFactory .getBean(AbstractBeanFactory.java:164) [java] at org.springframework.beans.factory.support.DefaultListableBean Factory.getBeansOfType(DefaultListableBeanFactory.java:308) [java] at org.springframework.context.support.AbstractApplicationContex t.getBeansOfType(AbstractApplicationContext.java:948) [java] at org.springframework.context.support.AbstractApplicationContex t.registerListeners(AbstractApplicationContext.java:702) [java] at org.springframework.osgi.context.support.AbstractDelegatedExe cutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationCo ntext.java:273) [java] at org.springframework.osgi.extender.internal.dependencies.start up.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(Dependency WaiterApplicationContextExecutor.java:145) [java] at java.lang.Thread.run(Thread.java:595) [java] 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) [java] at org.springframework.beans.factory.support.AbstractAutowireCap ableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) [java] at org.springframework.beans.factory.support.AbstractBeanFactory $1.getObject(AbstractBeanFactory.java:264) [java] at org.springframework.beans.factory.support.DefaultSingletonBea nRegistry.getSingleton(DefaultSingletonBeanRegistry.java:221) [java] at org.springframework.beans.factory.support.AbstractBeanFactory .doGetBean(AbstractBeanFactory.java:261) [java] at org.springframework.beans.factory.support.AbstractBeanFactory .getBean(AbstractBeanFactory.java:185) [java] at org.springframework.beans.factory.support.AbstractBeanFactory .getBean(AbstractBeanFactory.java:164) [java] at org.springframework.beans.factory.support.DefaultListableBean Factory.getBeansOfType(DefaultListableBeanFactory.java:308) [java] at org.springframework.context.support.AbstractApplicationContex t.getBeansOfType(AbstractApplicationContext.java:948) [java] at org.springframework.context.support.AbstractApplicationContex t.registerListeners(AbstractApplicationContext.java:702) [java] at org.springframework.osgi.context.support.AbstractDelegatedExe cutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationCo ntext.java:273) [java] at org.springframework.osgi.extender.internal.dependencies.start up.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(Dependency WaiterApplicationContextExecutor.java:145) [java] at java.lang.Thread.run(Thread.java:595) [java] > [java] Exception in thread "SpringOsgiExtenderThread-25" org.springframewor k.beans.factory.BeanCreationException: Error creating bean with name 'servletBea n' defined in URL [bundleentry://135/META-INF/spring/com.bea.wlevs.cluster.gcp.x ml]: Invocation of init method failed; nested exception is org.springframework.b eans.factory.xml.XmlBeanDefinitionStoreException: Line 6 in XML document from Se rvletContext resource [/WEB-INF/com.bea.wlevs.cluster.gbcast.impl.http.GBcastSer vlet-servlet.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'beans'. [java] at org.springframework.beans.factory.support.AbstractAutowireCap ableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335) [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) [java] at org.springframework.beans.factory.support.AbstractAutowireCap ableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) [java] at org.springframework.beans.factory.support.AbstractBeanFactory $1.getObject(AbstractBeanFactory.java:264) [java] at org.springframework.beans.factory.support.DefaultSingletonBea nRegistry.getSingleton(DefaultSingletonBeanRegistry.java:221) [java] at org.springframework.beans.factory.support.AbstractBeanFactory .doGetBean(AbstractBeanFactory.java:261) [java] at org.springframework.beans.factory.support.AbstractBeanFactory .getBean(AbstractBeanFactory.java:185) [java] at org.springframework.beans.factory.support.AbstractBeanFactory .getBean(AbstractBeanFactory.java:164) [java] at org.springframework.beans.factory.support.DefaultListableBean Factory.getBeansOfType(DefaultListableBeanFactory.java:308) [java] at org.springframework.context.support.AbstractApplicationContex t.getBeansOfType(AbstractApplicationContext.java:948) [java] at org.springframework.context.support.AbstractApplicationContex t.registerListeners(AbstractApplicationContext.java:702) [java] at org.springframework.osgi.context.support.AbstractDelegatedExe cutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationCo ntext.java:273) [java] at org.springframework.osgi.extender.internal.dependencies.start up.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(Dependency WaiterApplicationContextExecutor.java:145) [java] at java.lang.Thread.run(Thread.java:595) [java] Caused by: org.springframework.beans.factory.xml.XmlBeanDefinitionSt oreException: Line 6 in XML document from ServletContext resource [/WEB-INF/com. bea.wlevs.cluster.gbcast.impl.http.GBcastServlet-servlet.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declarat ion of element '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] ... 15 more [java] Caused by: org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration 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] ... 56 more

    Spring JIRA | 9 years ago | Andy Piper
    eans.factory.xml.XmlBeanDefinitionStoreException: Line 6 in XML document from Se rvletContext resource [/WEB-INF/com.bea.wlevs.cluster.gbcast.impl.http.GBcastSer vlet-servlet.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'beans'. [java] at org.springframework.beans.factory.support.AbstractAutowireCap ableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335) [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)
  2. 0

    I know this is very weird, but I am seeing a consistent namespace error in a SpringDM bundle, but only when the network is not connected (as in internet). This worked fine under 1.0.x [java] org.springframework.beans.factory.BeanCreationException: Error creat ing bean with name 'servletBean' defined in URL [bundleentry://135/META-INF/spri ng/com.bea.wlevs.cluster.gcp.xml]: Invocation of init method failed; nested exce ption is org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 6 in XML document from ServletContext resource [/WEB-INF/com.bea.wlevs.clus ter.gbcast.impl.http.GBcastServlet-servlet.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'beans'. [java] at org.springframework.beans.factory.support.AbstractAutowireCap ableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335) [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) [java] at org.springframework.beans.factory.support.AbstractAutowireCap ableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) [java] at org.springframework.beans.factory.support.AbstractBeanFactory $1.getObject(AbstractBeanFactory.java:264) [java] at org.springframework.beans.factory.support.DefaultSingletonBea nRegistry.getSingleton(DefaultSingletonBeanRegistry.java:221) [java] at org.springframework.beans.factory.support.AbstractBeanFactory .doGetBean(AbstractBeanFactory.java:261) [java] at org.springframework.beans.factory.support.AbstractBeanFactory .getBean(AbstractBeanFactory.java:185) [java] at org.springframework.beans.factory.support.AbstractBeanFactory .getBean(AbstractBeanFactory.java:164) [java] at org.springframework.beans.factory.support.DefaultListableBean Factory.getBeansOfType(DefaultListableBeanFactory.java:308) [java] at org.springframework.context.support.AbstractApplicationContex t.getBeansOfType(AbstractApplicationContext.java:948) [java] at org.springframework.context.support.AbstractApplicationContex t.registerListeners(AbstractApplicationContext.java:702) [java] at org.springframework.osgi.context.support.AbstractDelegatedExe cutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationCo ntext.java:273) [java] at org.springframework.osgi.extender.internal.dependencies.start up.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(Dependency WaiterApplicationContextExecutor.java:145) [java] at java.lang.Thread.run(Thread.java:595) [java] org.springframework.beans.factory.xml.XmlBeanDefinitionStoreExceptio n: Line 6 in XML document from ServletContext resource [/WEB-INF/com.bea.wlevs.c luster.gbcast.impl.http.GBcastServlet-servlet.xml] is invalid; nested exception is 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) [java] at org.springframework.beans.factory.support.AbstractAutowireCap ableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) [java] at org.springframework.beans.factory.support.AbstractBeanFactory $1.getObject(AbstractBeanFactory.java:264) [java] at org.springframework.beans.factory.support.DefaultSingletonBea nRegistry.getSingleton(DefaultSingletonBeanRegistry.java:221) [java] at org.springframework.beans.factory.support.AbstractBeanFactory .doGetBean(AbstractBeanFactory.java:261) [java] at org.springframework.beans.factory.support.AbstractBeanFactory .getBean(AbstractBeanFactory.java:185) [java] at org.springframework.beans.factory.support.AbstractBeanFactory .getBean(AbstractBeanFactory.java:164) [java] at org.springframework.beans.factory.support.DefaultListableBean Factory.getBeansOfType(DefaultListableBeanFactory.java:308) [java] at org.springframework.context.support.AbstractApplicationContex t.getBeansOfType(AbstractApplicationContext.java:948) [java] at org.springframework.context.support.AbstractApplicationContex t.registerListeners(AbstractApplicationContext.java:702) [java] at org.springframework.osgi.context.support.AbstractDelegatedExe cutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationCo ntext.java:273) [java] at org.springframework.osgi.extender.internal.dependencies.start up.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(Dependency WaiterApplicationContextExecutor.java:145) [java] at java.lang.Thread.run(Thread.java:595) [java] 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) [java] at org.springframework.beans.factory.support.AbstractAutowireCap ableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) [java] at org.springframework.beans.factory.support.AbstractBeanFactory $1.getObject(AbstractBeanFactory.java:264) [java] at org.springframework.beans.factory.support.DefaultSingletonBea nRegistry.getSingleton(DefaultSingletonBeanRegistry.java:221) [java] at org.springframework.beans.factory.support.AbstractBeanFactory .doGetBean(AbstractBeanFactory.java:261) [java] at org.springframework.beans.factory.support.AbstractBeanFactory .getBean(AbstractBeanFactory.java:185) [java] at org.springframework.beans.factory.support.AbstractBeanFactory .getBean(AbstractBeanFactory.java:164) [java] at org.springframework.beans.factory.support.DefaultListableBean Factory.getBeansOfType(DefaultListableBeanFactory.java:308) [java] at org.springframework.context.support.AbstractApplicationContex t.getBeansOfType(AbstractApplicationContext.java:948) [java] at org.springframework.context.support.AbstractApplicationContex t.registerListeners(AbstractApplicationContext.java:702) [java] at org.springframework.osgi.context.support.AbstractDelegatedExe cutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationCo ntext.java:273) [java] at org.springframework.osgi.extender.internal.dependencies.start up.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(Dependency WaiterApplicationContextExecutor.java:145) [java] at java.lang.Thread.run(Thread.java:595) [java] > [java] Exception in thread "SpringOsgiExtenderThread-25" org.springframewor k.beans.factory.BeanCreationException: Error creating bean with name 'servletBea n' defined in URL [bundleentry://135/META-INF/spring/com.bea.wlevs.cluster.gcp.x ml]: Invocation of init method failed; nested exception is org.springframework.b eans.factory.xml.XmlBeanDefinitionStoreException: Line 6 in XML document from Se rvletContext resource [/WEB-INF/com.bea.wlevs.cluster.gbcast.impl.http.GBcastSer vlet-servlet.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'beans'. [java] at org.springframework.beans.factory.support.AbstractAutowireCap ableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335) [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) [java] at org.springframework.beans.factory.support.AbstractAutowireCap ableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) [java] at org.springframework.beans.factory.support.AbstractBeanFactory $1.getObject(AbstractBeanFactory.java:264) [java] at org.springframework.beans.factory.support.DefaultSingletonBea nRegistry.getSingleton(DefaultSingletonBeanRegistry.java:221) [java] at org.springframework.beans.factory.support.AbstractBeanFactory .doGetBean(AbstractBeanFactory.java:261) [java] at org.springframework.beans.factory.support.AbstractBeanFactory .getBean(AbstractBeanFactory.java:185) [java] at org.springframework.beans.factory.support.AbstractBeanFactory .getBean(AbstractBeanFactory.java:164) [java] at org.springframework.beans.factory.support.DefaultListableBean Factory.getBeansOfType(DefaultListableBeanFactory.java:308) [java] at org.springframework.context.support.AbstractApplicationContex t.getBeansOfType(AbstractApplicationContext.java:948) [java] at org.springframework.context.support.AbstractApplicationContex t.registerListeners(AbstractApplicationContext.java:702) [java] at org.springframework.osgi.context.support.AbstractDelegatedExe cutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationCo ntext.java:273) [java] at org.springframework.osgi.extender.internal.dependencies.start up.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(Dependency WaiterApplicationContextExecutor.java:145) [java] at java.lang.Thread.run(Thread.java:595) [java] Caused by: org.springframework.beans.factory.xml.XmlBeanDefinitionSt oreException: Line 6 in XML document from ServletContext resource [/WEB-INF/com. bea.wlevs.cluster.gbcast.impl.http.GBcastServlet-servlet.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declarat ion of element '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] ... 15 more [java] Caused by: org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration 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] ... 56 more

    Spring JIRA | 9 years ago | Andy Piper
    eans.factory.xml.XmlBeanDefinitionStoreException: Line 6 in XML document from Se rvletContext resource [/WEB-INF/com.bea.wlevs.cluster.gbcast.impl.http.GBcastSer vlet-servlet.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'beans'. [java] at org.springframework.beans.factory.support.AbstractAutowireCap ableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335) [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)

    Root Cause Analysis

    1. eans.factory.xml.XmlBeanDefinitionStoreException

      Line 6 in XML document from Se rvletContext resource [/WEB-INF/com.bea.wlevs.cluster.gbcast.impl.http.GBcastSer vlet-servlet.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'beans'. [java] at org.springframework.beans.factory.support.AbstractAutowireCap ableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335) [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()
    2. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:595)
      1 frame