BeanFactory not initialized or already closed

今天向weblogic部署项目的时候,webwork报了这么个异常:

Caught Exception while registering Interceptor class xxx……

往下接着看,发现是spring引起的:

Caused by: java.lang.IllegalStateException: BeanFactory not initialized or already closed - call ‘refresh’ before accessing bean

s via the ApplicationContext

于是上网google一番,在spring的官方论坛发现了这么一篇帖子,说到:

Actually, the problem does not come from Spring itself. It seems there is a bug in Weblogic 9.2 MP2 (not appearing in MP1) in development mode only.

The server tries for each request to recompile JSP and tag files, even if they are not modified. Our problem here comes from a tag file being recompiled, causing a destroy of the DispatcherServlet, then a reloading of the ApplicationContext.

重新启动了weblogic,终于正常了。

这么偏僻的bug给我遇见了,我真是荣幸啊。

加载评论框需要翻墙