BeanFactory not initialized or already closed - call 'refresh' before accessing beans

前端 未结 7 1346
太阳男子
太阳男子 2021-01-03 23:09

I\'m trying to add spring security to a regular JSF application. After repeated tries and I\'m failing with the following error on tomcat bring-up.

Here is the entir

7条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-04 00:01

    I see this code in applicationContext-security.xml:

    
    

    You might be using incorrect spring version. For example, if you are using spring-xxx (spring-security-web.jar or spring-security-core.jar) version 3.1.xx in your library, this error will come out. Try change the code in applicationContext-security.xml from 3.0.xsd to 3.1.xsd (the version number in the code must match back to the version sit in the library folder).

    Hope this help.

提交回复
热议问题