异常BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the Appl

0人阅读 评论(0) 收藏 举报
分类:

异常:BeanFactory not initialized or already closed - call ‘refresh’ before accessing beans via the ApplicationContext

网上查了很多解决的方法,这里我说我的失误导致的这个异常.
我是刚从SVN获取的项目,获取下来后配好数据,然后启动项目,然后就是出现了这个异常,以前也遇到一次,但是忘记了怎么解决了,后来去看文档,发现自己漏了一个步骤,没有配置java build path,泪奔了。

问题原因:

没有为项目配置:java build path

解决步骤:

点击项目>>右键>>Properties>>然后java Build Path>>配置你的jDK吧>>然后重启项目,完成。

查看评论

java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the A

      全部的错误信息是这样的Exception in thread "main" java.lang.IllegalStateException: BeanFactory not initial...
  • wkcgy
  • wkcgy
  • 2011-02-23 15:37:00
  • 15810

idea报错:BeanFactory not initialized or already closed - call 'refresh' before accessing beans via ...

今天,将自己的项目从github上考下来时,报错:BeanFactory not initialized or already closed - call ‘refresh’ before acces...
  • qq_36596145
  • qq_36596145
  • 2017-08-05 17:52:00
  • 4768

spring配置出错: BeanFactory not initialized or already closed - call 'refresh' before accessing beans vi

错误信息 2015-01-30 10:38:21,119 WARN [org.springframework.web.context.support.XmlWebApplicationContext...
  • kaidishi
  • kaidishi
  • 2015-01-30 10:54:56
  • 8609

ActiveMQ常见错误一: BeanFactory not initialized or already closed - call 'refresh' before accessing beans

ActiveMQ 启动时错误: Caused by: java.lang.IllegalStateException: BeanFactory not initialized or alre...
  • vtopqx
  • vtopqx
  • 2016-06-30 09:58:19
  • 4551

tomacat 启动时报错 : BeanFactory not initialized or already closed - call 'refresh' before accessing bean

tomcat日志信息Dec 07, 2017 6:01:53 PM org.apache.catalina.core.ApplicationContext log INFO: No Spring We...
  • qq_33366229
  • qq_33366229
  • 2017-12-08 09:12:19
  • 319

BeanFactory not initialized or already closed - call 'refresh' before accessing beans解决办法

BeanFactory not initialized or already closed - call 'refresh' before accessing beans解决办法 今...
  • evilcry2012
  • evilcry2012
  • 2017-10-18 23:08:53
  • 299

BeanFactory not initialized or already closed - call 'refresh' before access

启用注解时, applicationContext.xml文件头部需要加入 xmlns:context="http://www.springframework.org/schema/context" ...
  • u010417178
  • u010417178
  • 2016-09-27 15:35:55
  • 8990

问题BeanFactory not initialized or already closed - call 'refresh' before access

在网上查找很久,很多人说是因为 错误写法:ApplicationContext ctx = new ClassPathXmlApplicationContext(); 时,没有指定配置文件...
  • H_Rhui
  • H_Rhui
  • 2016-08-23 14:22:17
  • 32132

spring注解过程中java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 're

在我们使用spring注解的方式的时候,可能会粗心导致出现如下问题java.lang.IllegalStateException: BeanFactory not initialized or alr...
  • qq_36414747
  • qq_36414747
  • 2017-12-22 21:28:35
  • 138

ssh整合常见的错误

1、报错信息:java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refres...
  • snn1410
  • snn1410
  • 2014-03-26 16:30:14
  • 39332
    个人资料
    持之以恒
    等级:
    访问量: 9405
    积分: 562
    排名: 9万+
    博客专栏
    最新评论