spring配置出错: BeanFactory not initialized or already closed - call 'refresh' before accessing beans vi
来源:互联网 发布:mac webstorm怎么汉化 编辑:程序博客网 时间:2024/05/21 10:27
错误信息
2015-01-30 10:38:21,119 WARN [org.springframework.web.context.support.XmlWebApplicationContext] - 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 [Fri Jan 30 10:38:20 CST 2015]; root of context hierarchy
2015-1-30 10:38:21 org.apache.catalina.core.StandardContext listenerStop严重: 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 via the ApplicationContextat org.springframework.context.support.AbstractRefreshableApplicationContext.getBeanFactory(AbstractRefreshableApplicationContext.java:171)at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1093)at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1067)at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:1013)at org.springframework.web.context.ContextLoader.closeWebApplicationContext(ContextLoader.java:559)at org.springframework.web.context.ContextLoaderListener.contextDestroyed(ContextLoaderListener.java:115)at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4831)at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5478)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.addChildInternal(ContainerBase.java:901)at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1105)at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1664)at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)at java.util.concurrent.FutureTask.run(FutureTask.java:138)at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)at java.lang.Thread.run(Thread.java:662)
错误提示bean无法初始化,我检测上下文配置,找了很久,最后终于找到了错误
<property name="password" >password</property>
调用的时候竟然忘记加${}。。。
<property name="password" >${password}</property>
0 0
- spring配置出错: BeanFactory not initialized or already closed - call 'refresh' before accessing beans vi
- BeanFactory not initialized or already closed - call 'refresh' before accessing beans解决办法
- BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the Applic
- BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the Applic
- BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the Applic
- BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the Applic
- BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the Applic
- ActiveMQ常见错误一: BeanFactory not initialized or already closed - call 'refresh' before accessing beans
- BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the Applic
- BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the Applic
- BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the
- BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the Applic
- java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the A
- BeanFactory not initialized or already closed - call 'refresh' before access
- 问题BeanFactory not initialized or already closed - call 'refresh' before access
- maven项目-加载不到spring文件,BeanFactory not initialized or already closed - call 'refresh' bef
- java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' bef
- java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' befo
- 【再见久邦】总结一下自己从校招到离职的经历
- 关于构造方法的说明
- WebAPP的开发思路(一)
- <<人狼大战>> 观后感
- 设计模式-单例模式
- spring配置出错: BeanFactory not initialized or already closed - call 'refresh' before accessing beans vi
- 如何把eclipse的背景色改为豆沙色
- Linux线程属性
- Lock和Condition实现线程同步通信
- 1003:Hangover-条件是程序可以持续的条件-每一次循环sum要清零-for括号后不要;-float与double-除法不要除以0
- 在配置cas单点登录时报HTTP Status 500 - javax.net.ssl.SSLException 的解决方法
- C# 实现Base64+MD5 加密(整理)
- KVC 和 OC字典
- Shell编程-awk