org.jboss.weld.exceptions.IllegalStateException: WELD-000227 after every change in code

前端 未结 1 1035
逝去的感伤
逝去的感伤 2021-02-13 09:27

I\'m developing a webapp with NetBeans and Glassfish 4.1.1. and I\'m using JSF and CDI to manage the backing beans for the facelets. Since shortly after changing anything in the

相关标签:
1条回答
  • 2021-02-13 09:57

    Disable beanIdentifierIndexOptimization in GlassFish as follows:

    1. Visit the admin console at http://localhost:4848 (or https://127.0.0.1:4848/).
    2. Click Configurations.
    3. Click server-config.
    4. Click System Properties.
    5. Click Add Property.
    6. Set Instance Variable Name to: org.jboss.weld.serialization.beanIdentifierIndexOptimization
    7. Set Default Value to: false
    8. Click Save.

    This should help with passivation and resolve the following WELD bug:

    WELD-000227: Bean identifier index inconsistency detected.

    0 讨论(0)
提交回复
热议问题