java.lang.IllegalStateException: BeanFactory not initialized or already closed
来源:互联网 发布:nature数据库价格 编辑:程序博客网 时间:2024/06/11 07:28
今天整合spring和activiti,一直报错
报错
严重: 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: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:558)
at org.springframework.web.context.ContextLoaderListener.contextDestroyed(ContextLoaderListener.java:143)
at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:5035)
at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5687)
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(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
报错原因是spring的版本太低了
因为第一开始我用的是3.2.2的
之后把spring-core的这个jar包更换成最新版本的,就没有问题了
- java.lang.IllegalStateException: BeanFactory not initialized or already closed
- java.lang.IllegalStateException: BeanFactory not initialized or already closed
- java.lang.IllegalStateException: BeanFactory not initialized or already closed
- java.lang.IllegalStateException: BeanFactory not initialized or already closed
- java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' bef
- Spring报错java.lang.IllegalStateException: BeanFactory not initialized or already closed -call 'refres
- java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' befo
- ssh java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh'
- java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' befo
- java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' befo
- java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' befo
- java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' befo
- java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' befo
- 配置文件加载异常java.lang.IllegalStateException: BeanFactory not initialized or already closed
- spring整合jax-ws时报错(java.lang.IllegalStateException: BeanFactory not initialized or already closed)
- Spring报错java.lang.IllegalStateException: BeanFactory not initialized or already closed -call 'refres
- Spring报错java.lang.IllegalStateException: BeanFactory not initialized or already closed -call 'refres
- Spring报错java.lang.IllegalStateException: BeanFactory not initialized or already closed -call 'refres
- Linux 命令行使用技巧整理
- 清华大学2006年机试-最大序列和-1077
- Java 基础操作库 hoe 使用介绍
- STM8S105系列单片机管脚复用后不再支持正常功能使用
- C++学习之路 day3
- java.lang.IllegalStateException: BeanFactory not initialized or already closed
- 在虚拟机Centos7上安装Oracle重启机器,用root登录报Module is Unknown的解决方法
- 区块链ICO的红与黑
- hdu1175连连看 dfs深搜算法
- Ax 2012批量部署报表
- 树莓派学习系列——利用pigpio库来调用树莓派的硬件pwm,BCM 12,18,13,19
- 从代码层面优化系统性能的解决方案(下)
- 大白
- 1004:C语言考试练习题-排列