Spring Bean Factory Exception : BeanFactory not initialized or already closed