caused by:org.xml.sax.SAXParseException; linenumber:1; columnnumber:1; Content is not allowed in

Source: Internet
Author: User

1. Error description

Severity: Exception sending context initialized event to listener instance of class Org.springframework.web.context.ContextLoad ErListenerorg.springframework.beans.factory.xml.XmlBeanDefinitionStoreException:Line 1 in XML document from file [e:\ eclipse\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\sopss\web-inf\classes\spring\ Applicationcontext.xml] is invalid; Nested exception is org.xml.sax.SAXParseException; linenumber:1; columnnumber:1; Content is not allowed in prolog.at Org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions ( xmlbeandefinitionreader.java:398) at Org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions (Xmlbeandefinitionreader.java : 335) at Org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions ( xmlbeandefinitionreader.java:303) at Org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions ( abstractbeandefinitionreader.java:180) at Org.spriNgframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions ( abstractbeandefinitionreader.java:216) at Org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions ( abstractbeandefinitionreader.java:187) at Org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions ( xmlwebapplicationcontext.java:125) at Org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions ( xmlwebapplicationcontext.java:94) at Org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory ( abstractrefreshableapplicationcontext.java:129) at Org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory ( abstractapplicationcontext.java:540) at Org.springframework.context.support.AbstractApplicationContext.refresh ( abstractapplicationcontext.java:454) at Org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext (contextloader.java:403) At org.springFramework.web.context.ContextLoader.initWebApplicationContext (contextloader.java:306) at Org.springframework.web.context.ContextLoaderListener.contextInitialized (contextloaderlistener.java:106) at Org.apache.catalina.core.StandardContext.listenerStart (standardcontext.java:4992) at Org.apache.catalina.core.StandardContext.startInternal (standardcontext.java:5490) at Org.apache.catalina.util.LifecycleBase.start (lifecyclebase.java:150) at org.apache.catalina.core.containerbase$ Startchild.call (containerbase.java:1575) at Org.apache.catalina.core.containerbase$startchild.call ( containerbase.java:1565) at Java.util.concurrent.FutureTask.run (futuretask.java:262) at Java.util.concurrent.ThreadPoolExecutor.runWorker (threadpoolexecutor.java:1145) at Java.util.concurrent.threadpoolexecutor$worker.run (threadpoolexecutor.java:615) at Java.lang.Thread.run ( thread.java:745) caused by:org.xml.sax.SAXParseException; linenumber:1; columnnumber:1; Content is not allowed in prolog.at Org.apache.xerces.parsers.DOMParSer.parse (Unknown source) at Org.apache.xerces.jaxp.DocumentBuilderImpl.parse (Unknown source) at Org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument (defaultdocumentloader.java:76) at Org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadDocument (xmlbeandefinitionreader.java:428) At Org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions ( xmlbeandefinitionreader.java:390) ... $ April 26, 2015 10:10:18 pm org.apache.catalina.core.StandardContext startinternal severity: Error listenerstart April 26, 2015 10 : 10:18 PM Org.apache.catalina.core.StandardContext startinternal severity: Context [/SOPSS] startup failed due to previous error S April 26, 2015 10:10:18 pm org.apache.catalina.core.ApplicationContext Log Info: Closing Spring root Webapplicationcontext April 2  6, 2015 10:10:18 pm org.apache.catalina.core.StandardContext listenerstop severity: Exception sending context destroyed event to Listener instance of class Org.springframework.web.context.ContextLoaderListeneRjava.lang.IllegalStateException:BeanFactory not initialized or already closed-call ' refresh ' before accessing Beans VI A The Applicationcontextat Org.springframework.context.support.AbstractRefreshableApplicationContext.getBeanFactory ( abstractrefreshableapplicationcontext.java:170) at Org.springframework.context.support.AbstractApplicationContext.destroyBeans (Abstractapplicationcontext.java : 921) at Org.springframework.context.support.AbstractApplicationContext.doClose (Abstractapplicationcontext.java : 895) at Org.springframework.context.support.AbstractApplicationContext.close (Abstractapplicationcontext.java : 841) at Org.springframework.web.context.ContextLoader.closeWebApplicationContext (contextloader.java:579) at Org.springframework.web.context.ContextLoaderListener.contextDestroyed (contextloaderlistener.java:115) at Org.apache.catalina.core.StandardContext.listenerStop (standardcontext.java:5033) at Org.apache.catalina.core.StandardContext.stopInternal (standardcontext.java:5685) at Org.apachE.catalina.util.lifecyclebase.stop (lifecyclebase.java:232) at Org.apache.catalina.util.LifecycleBase.start ( lifecyclebase.java:160) at Org.apache.catalina.core.containerbase$startchild.call (ContainerBase.java:1575) at Org.apache.catalina.core.containerbase$startchild.call (containerbase.java:1565) at Java.util.concurrent.FutureTask.run (futuretask.java:262) at Java.util.concurrent.ThreadPoolExecutor.runWorker ( threadpoolexecutor.java:1145) at Java.util.concurrent.threadpoolexecutor$worker.run (ThreadPoolExecutor.java:615) At Java.lang.Thread.run (thread.java:745) April 26, 2015 10:10:18 pm org.apache.coyote.AbstractProtocol start Info: Starting Protocolhandler ["http-bio-8080"] April 26, 2015 10:10:18 pm org.apache.coyote.AbstractProtocol start Info: Starting Protocolhandler ["ajp-bio-8009"] April 26, 2015 10:10:18 pm Org.apache.catalina.startup.Catalina Start info: Server Startup in 2 5794 ms

2. Cause of error


3. Solutions

caused by:org.xml.sax.SAXParseException; linenumber:1; columnnumber:1; Content is not allowed in

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.