信息: Initializing Spring root WebApplicationContext
2017-10-19 14:27:02,099  INFO (org.springframework.web.context.ContextLoader:285) - Root WebApplicationContext: initialization started
2017-10-19 14:27:02,162 DEBUG (org.springframework.web.context.support.StandardServletEnvironment:110) - Adding [servletConfigInitParams] PropertySource with lowest search precedence
2017-10-19 14:27:02,162 DEBUG (org.springframework.web.context.support.StandardServletEnvironment:110) - Adding [servletContextInitParams] PropertySource with lowest search precedence
2017-10-19 14:27:02,162 DEBUG (org.springframework.web.context.support.StandardServletEnvironment:110) - Adding [jndiProperties] PropertySource with lowest search precedence
2017-10-19 14:27:02,162 DEBUG (org.springframework.web.context.support.StandardServletEnvironment:110) - Adding [systemProperties] PropertySource with lowest search precedence
2017-10-19 14:27:02,178 DEBUG (org.springframework.web.context.support.StandardServletEnvironment:110) - Adding [systemEnvironment] PropertySource with lowest search precedence
2017-10-19 14:27:02,178 DEBUG (org.springframework.web.context.support.StandardServletEnvironment:126) - Initialized StandardServletEnvironment with PropertySources [servletConfigInitParams,servletContextInitParams,jndiProperties,systemProperties,systemEnvironment]
2017-10-19 14:27:02,178 DEBUG (org.springframework.web.context.support.StandardServletEnvironment:175) - Replacing [servletContextInitParams] PropertySource with [servletContextInitParams]
2017-10-19 14:27:02,178  INFO (org.springframework.web.context.support.XmlWebApplicationContext:515) - Refreshing Root WebApplicationContext: startup date [Thu Oct 19 14:27:02 CST 2017]; root of context hierarchy
2017-10-19 14:27:02,209 DEBUG (org.springframework.core.env.StandardEnvironment:110) - Adding [systemProperties] PropertySource with lowest search precedence
2017-10-19 14:27:02,209 DEBUG (org.springframework.core.env.StandardEnvironment:110) - Adding [systemEnvironment] PropertySource with lowest search precedence
2017-10-19 14:27:02,209 DEBUG (org.springframework.core.env.StandardEnvironment:126) - Initialized StandardEnvironment with PropertySources [systemProperties,systemEnvironment]
2017-10-19 14:27:02,209  INFO (org.springframework.beans.factory.xml.XmlBeanDefinitionReader:316) - Loading XML bean definitions from class path resource [applicationContext-database.xml]
2017-10-19 14:27:02,209 ERROR (org.springframework.web.context.ContextLoader:331) - Context initialization failed
org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [applicationContext-database.xml]; nested exception is java.io.FileNotFoundException: class path resource [applicationContext-database.xml] cannot be opened because it does not exist
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:343)
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:542)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:454)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:403)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.FileNotFoundException: class path resource [applicationContext-database.xml] cannot be opened because it does not exist
at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:172)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:329)
... 21 more
十月 19, 2017 2:27:02 下午 org.apache.catalina.core.StandardContext listenerStart
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [applicationContext-database.xml]; nested exception is java.io.FileNotFoundException: class path resource [applicationContext-database.xml] cannot be opened because it does not exist
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:343)
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:542)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:454)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:403)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1398)
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: java.io.FileNotFoundException: class path resource [applicationContext-database.xml] cannot be opened because it does not exist
at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:172)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:329)
... 21 more
十月 19, 2017 2:27:02 下午 org.apache.catalina.core.StandardContext startInternal
严重: One or more listeners failed to start. Full details will be found in the appropriate container log file
十月 19, 2017 2:27:02 下午 org.apache.catalina.core.StandardContext startInternal
严重: Context [/laoy] startup failed due to previous errors
2017-10-19 14:27:02,225  INFO (org.springframework.web.context.support.XmlWebApplicationContext:875) - Closing Root WebApplicationContext: startup date [Thu Oct 19 14:27:02 CST 2017]; root of context hierarchy
十月 19, 2017 2:27:02 下午 org.apache.catalina.core.ApplicationContext log
信息: Closing Spring root WebApplicationContext
2017-10-19 14:27:02,225  WARN (org.springframework.web.context.support.XmlWebApplicationContext:885) - Exception thrown from ApplicationListener handling ContextClosedEvent
java.lang.IllegalStateException: ApplicationEventMulticaster not initialized - call 'refresh' before multicasting events via the context: Root WebApplicationContext: startup date [Thu Oct 19 14:27:02 CST 2017]; root of context hierarchy
at org.springframework.context.support.AbstractApplicationContext.getApplicationEventMulticaster(AbstractApplicationContext.java:346)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:333)
at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:882)
at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:843)
2017-10-19 14:27:02,225  WARN (org.springframework.web.context.support.XmlWebApplicationContext:893) - Exception thrown from LifecycleProcessor on context close
java.lang.IllegalStateException: LifecycleProcessor not initialized - call 'refresh' before invoking lifecycle methods via the context: Root WebApplicationContext: startup date [Thu Oct 19 14:27:02 CST 2017]; root of context hierarchy
at org.springframework.context.support.AbstractApplicationContext.getLifecycleProcessor(AbstractApplicationContext.java:359)
十月 19, 2017 2:27:02 下午 org.apache.catalina.core.StandardContext listenerStop
严重: Exception sending context destroyed event 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.springframework.context.support.AbstractRefreshableApplicationContext.getBeanFactory(AbstractRefreshableApplicationContext.java:170)