BeanFactory not initialized or already closed
Caught Exception while registering Interceptor class xxx……
Caused by: java.lang.IllegalStateException: BeanFactory not initialized or already closed - call ‘refresh’ before accessing bean
s via the ApplicationContext
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.