码迷,mamicode.com
首页 > 编程语言 > 详细

java.lang.IllegalStateException: BeanFactory not i

时间:2015-04-24 17:00:38      阅读:121      评论:0      收藏:0      [点我收藏+]

标签:

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:171)

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:586)

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.addChildInternal(ContainerBase.java:901)

at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)

at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)

at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1229)

at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1875)

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)

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)


java.lang.IllegalStateException: BeanFactory not i

标签:

原文地址:http://my.oschina.net/ydsakyclguozi/blog/406000

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!