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

前端 未结 7 1341
太阳男子
太阳男子 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-03 23:48

    I had this issue until I removed the project in question from the server's deployments (in JBoss Dev Studio, right-click the server and "Remove" the project in the Servers view), then did the following:

    1. Restarted the JBoss EAP 6.1 server without any projects deployed.
    2. Once the server had started, I then added the project in question to the server.

    After this, just restart the server (in debug or run mode) by selecting the server, NOT the project itself.

    This seemed to flush any previous settings/states/memory/whatever that was causing the issue, and I no longer got the error.

提交回复
热议问题