IllegalStateException: BeanFactory not initialized or already closed - call 'refresh'
2018-05-17 00:23
288 查看
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:172)
at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1090)
at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1064)
at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:1010)
at org.springframework.web.context.ContextLoader.closeWebApplicationContext(ContextLoader.java:549)
at org.springframework.web.context.ContextLoaderListener.contextDestroyed(ContextLoaderListener.java:143)
at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:5014)
at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5659)
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:1559)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
阅读更多
at org.springframework.context.support.AbstractRefreshableApplicationContext.getBeanFactory(AbstractRefreshableApplicationContext.java:172)
at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1090)
at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1064)
at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:1010)
at org.springframework.web.context.ContextLoader.closeWebApplicationContext(ContextLoader.java:549)
at org.springframework.web.context.ContextLoaderListener.contextDestroyed(ContextLoaderListener.java:143)
at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:5014)
at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5659)
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:1559)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
这是我使用cxf与spring时出现的错误:
应该是没有读取到配置文件吧
解决方案:
希望有用!!
阅读更多
相关文章推荐
- java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' befo
- java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' befo
- 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 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解决
- java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' befo
- spring配置出错: BeanFactory not initialized or already closed - call 'refresh' before accessing beans vi
- ActiveMQ常见错误一: BeanFactory not initialized or already closed - call 'refresh' before accessing beans
- java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' befo
- java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' befo
- BeanFactory not initialized or already closed - call 'refresh' before accessing beans解决办法
- maven项目-加载不到spring文件,BeanFactory not initialized or already closed - call 'refresh' bef
- 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' befo
- java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' bef
- java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' befo
- java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' befo
- BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the Applic