1. Error description
Serious: Exception sending context initialized event to listener instance of class Org.springframework.web.context.ContextLoad Erlistener org.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;
The Content is isn't 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; The 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) ... More April 26, 2015 10:10:18 pm org.apache.catalina.core.StandardContext startinternal serious: Error Listenerstart April 26, 201 5 10:10:18 pm Org.apache.catalina.core.StandardContext startinternal Serious: Context [/SOPSS] startup failed due to previous E Rrors April 26, 2015 10:10:18 pm org.apache.catalina.core.ApplicationContext Log Info: Closing Spring root Webapplicationcontex T April 26, 2015 10:10:18 pm org.apache.catalina.core.StandardContext listenerstop severity: Exception sending context destroyed EV ENT to Listener INstance of Class Org.springframework.web.context.ContextLoaderListener Java.lang.IllegalStateException:BeanFactory Not initialized or already closed-call ' refresh ' before accessing beans via the ApplicationContext at Org.springframewo Rk.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 25794 MS
2. Error reason
3. Solutions